rvanlaar/djangorecipe — Issue #41: Admin site not working against Django trunk
Author: rvanlaar
Created: 2011-12-27 21:40:48+00:00
State: open
Labels: Fix Released, Undecided

The urls.py that is generated by djangorecipe does not work with Django trunk. (Or any version of Django > 1.0?)

When you hit http://127.0.0.1:8000/admin/ a 500 error is thrown:
AttributeError at /
'AdminSite' object has no attribute 'root'

The fix is to update ~jvloothuis/djangorecipe/trunk/files/head:/src/djangorecipe/urls.py at line 127 to say:
...
(r'^admin/(.*)', include(admin.site.urls)),
...

I'm not including a patch because I'm not sure how you'd like to handle backwards compatibility -- also, this seems like something that would have been found a long time ago and I can't help but think I'm missing something.