Saturday, December 29, 2012

Re: Admin page not found error

I added a record to the django_site table (which Django on the first syncdb run for the Sites app) and then I could view the admin fine.

So you can either try this or just delete the sqlite.db file and run syncdb again which will also fix the problem.

Also, you don't need to specify the database path as an absolute path. It's relative to the Django project root folder so just "sqlite.db" would be fine.

Happy coding.


On 29/12/2012, at 12:14 AM, Shahjalal Hossain <> wrote:

On Friday, December 28, 2012 9:29:50 AM UTC+1, Shahjalal Hossain wrote:

Hi, I am new at Django. I am learning Django from instruction manual "a basic poll application". I was doing step by step. But, at a certain point I stacked.

It does not shows admin page as "2.4 Writing your first Django app, part 2". I have done all the steps, like uncomment and and run the syncdb. I am writing on code on Aptana Studio 3. For convenient, I have given some images. and source files.

Thanks, in advance.

    # Uncomment the next line to enable the admin:
    # Uncomment the next line to enable admin documentation:
    # 'django.contrib.admindocs',

from django.conf.urls import patterns, include, url

# Uncomment the next two lines to enable the admin:
from django.contrib import admin

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

    # 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(,

You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment