Tuesday, January 7, 2014

django administration: You don't have permission to edit anything.

Yep! it seems you are locked out of your own application. Is this how django treats its followers ?
Trust me Django is right, because after it is for your own good against the www attacks.

This is a minor issue just good to ursl.py and add the following line:
admin.autodiscover()

Finally your urls.py will look ask follow:
from django.conf.urls import patterns, include, url
from django.contrib import admin

admin.autodiscover()

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

    url(r'^admin/', include(admin.site.urls)),
)
Happy coding !!!

1 comment: