Admin site not compatible with Django 1.0

Bug #331259 reported by AaronS
2
Affects Status Importance Assigned to Milestone
Graphite
Fix Released
Low
chrismd

Bug Description

Per Django 1.0, it seems that you need to change the way the admin site is setup. More details here:
http://docs.djangoproject.com/en/dev/releases/1.0-porting-guide/

I changed urls.py to:

---------------------------------------------------
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
  ('^admin/(.*)', admin.site.root), #include('admin.site.urls')),
  ('^render/?', include('web.render.urls')),
.....

And an admin.py needs to be created in the accounts directory.

This is obviously a very minor issue, but I thought I'd bring it up anyways. While I'm at it, there's a few helpful lines that you can add to the vhost file that's created to make the admin site work with the Django included media, so it's all graphically nice:
<VirtualHost 127.0.1.1:80>
...
        <Location "/media/">
                SetHandler None
        </Location>
...

        Alias /media/ "/usr/lib/python2.5/site-packages/django/contrib/admin/media/"
</VirtualHost>

Revision history for this message
chrismd (chrismd) wrote :

Thanks for the report and patch. Just committed this to trunk.

Changed in graphite:
assignee: nobody → chrismd
importance: Undecided → Low
status: New → Fix Committed
chrismd (chrismd)
Changed in graphite:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.