Personal tools
You are here: Home Blog django

django

2008-10-08

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
Facebook
GrokThis.net on Facebook
Twitter
Tag cloud
upgrade vps contest xen howto feature rails django hardware failure ajax virtualization security mason support cloud software
Log in


Forgot your password?
New user?
Archives
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: