New to Django, Question about Admin Page

24 views
Skip to first unread message

judy ngai

unread,
Aug 13, 2012, 6:15:48 PM8/13/12
to django...@googlegroups.com
I apologize if I ended up sending this twice. I hit submit when google
logged me out.

I am new to django. Right now I am going through the tutorial. I am
stuck on the creating admin page section.

Here are the settings.py , you can see that the admin and the
admindocs are uncommented.

INSTALLED_APPS = (
'django.contrib.auth', #an authentication system
'django.contrib.contenttypes', #framework for content types
'django.contrib.sessions', #a session framework
'django.contrib.messages', #a messaging framework
'django.contrib.staticfiles', #framework for managing static files
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin documentation:
'django.contrib.admindocs',
'budget'
)

Here at the urls.py, the three lines are also uncommented

from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
admin.autodiscover()


urlpatterns = patterns('',
# Examples:
# url(r'^$', 'budgetmanager.views.home', name='home'),
# url(r'^budgetmanager/', include('budgetmanager.foo.urls')),

# Uncomment the admin/doc line below to enable admin documentation:
# url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

# Uncomment the next line to enable the admin:
# url(r'^admin/', include(admin.site.urls)),
)

The django page is up and running when I start the server. However no
matter how much I try
/admin or /admin/ or /admin/auth, the page just won't go to the admin
page and gets stuck on the django welcome page instead

Can anyone help me out? Do you need to show you guys any other code?

Melvyn Sopacua

unread,
Aug 13, 2012, 6:19:13 PM8/13/12
to django...@googlegroups.com
On 14-8-2012 0:15, judy ngai wrote:

> Here at the urls.py, the three lines are also uncommented

But this one is not:
> # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

and should be.
--
Melvyn Sopacua

Daniel Roseman

unread,
Aug 13, 2012, 6:20:27 PM8/13/12
to django...@googlegroups.com
You haven't uncommented the admin URL itself - the second to last line of the code you posted.
--
DR.

maha

unread,
Aug 31, 2012, 6:44:22 AM8/31/12
to django...@googlegroups.com


   uncomment  the admin url: url(r'^admin/', include(admin.site.urls)),

Reply all
Reply to author
Forward
0 new messages