Personal tools
You are here: Home Blog Archive 2008 October 08 Django 1.0 'admin' interface
Document Actions

Django 1.0 'admin' interface

Filed Under:

We've had a few customers asking about why their Django admin interface is no longer working, since the upgrade to Django 1.0.

Changes in Django 1.0 required a couple changes to the url.py file in order to access the admin view.  Here is an example of how to modify the file:

# Add following lines for 1.0 compat, to top of file
from django.conf.urls.defaults import *
from django.contrib import admin
import os
admin.autodiscover()

# and then under urlpatterns, eg:
urlpatterns = patterns('',
    # Remove old entry, eg:
    # (r'^admin/', include('django.contrib.admin.urls')),
    # Add new entry, eg:
     ('^admin/(.*)', admin.site.root),


Syndication
Tag cloud
upgrade vps xen howto rails django ajax virtualization security mason software
Log in


Forgot your password?
New user?
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: