Mercurial > hg > bts-webui
changeset 59:8c11eb7ecd99 draft
Get the admin module to work in Django 1.0
author | marga |
---|---|
date | Thu, 09 Apr 2009 23:22:00 +0000 |
parents | 0359b8074835 |
children | 486b021d7d44 |
files | bts_webui/urls.py |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/bts_webui/urls.py +++ b/bts_webui/urls.py @@ -1,7 +1,14 @@ from django.conf.urls.defaults import * +# The next two lines enable the admin and load each admin.py file: +from django.contrib import admin +admin.autodiscover() + urlpatterns = patterns('', + # The admin interface + (r'^admin/(.*)', admin.site.root), + # The amancay app (r'^amancay/', include('bts_webui.amancay.urls')), @@ -9,9 +16,6 @@ (r'^accounts/profile/', include('bts_webui.amancay.urls')), (r'^accounts/', include('bts_webui.registration.urls')), - # Uncomment this for admin: - (r'^admin/', include('django.contrib.admin.urls')), - # amancay is the main site here. (r'^/?', include('bts_webui.amancay.urls')),