Created
July 11, 2014 06:57
-
-
Save xiaotangyuan/b791e8e958a37b039ffd to your computer and use it in GitHub Desktop.
django多app的urls配置
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# project下的urls.py | |
urlpatterns = patterns('', | |
url(r'^admin/', include(admin.site.urls)), | |
url(r'', include('account.urls')), | |
# url(r'^ac/', include('account.urls')), | |
) | |
#account的app下urls.py文件 | |
urlpatterns = patterns('account.views', | |
url(r'^$','index',name='indexpage'), | |
url(r'^login/$','login',name='login'), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment