Skip to content

Commit

Permalink
Mod: Change 'user' app to 'system' folder
Browse files Browse the repository at this point in the history
  • Loading branch information
doraemonext committed Sep 13, 2014
1 parent ad9a680 commit 97c6367
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ nosetests.xml
*.mo
*.pot

# Media
wechat_platform/media

# Pycharm
.idea

Expand Down
9 changes: 7 additions & 2 deletions wechat_platform/config/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,17 @@ class Common(Configuration):

# Apps specific for this project go here.
LOCAL_APPS = (
'users', # custom users app
'system.users', # custom users app
# Your stuff: custom apps go here
)

# Wechat Plugin App
PLUGIN_APPS = (

)

# See: https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS
INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS + PLUGIN_APPS
# END APP CONFIGURATION

# MIDDLEWARE CONFIGURATION
Expand Down
1 change: 1 addition & 0 deletions wechat_platform/system/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__author__ = 'Doraemonext'
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url

from users import views
import views

urlpatterns = patterns('',
# URL pattern for the UserListView # noqa
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion wechat_platform/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
url(r'^admin/', include(admin.site.urls)),

# User management
url(r'^users/', include("users.urls", namespace="users")),
url(r'^users/', include("system.users.urls", namespace="users")),
url(r'^accounts/', include('allauth.urls')),

# Uncomment the next line to enable avatars
Expand Down

0 comments on commit 97c6367

Please sign in to comment.