Thursday, September 18, 2008

Tried change_stage in module django.contrib.admin.views.main. Error was: 'module' object has no attribute 'change_stage'

(permalink)
Another Django upgrade hint:
Tried change_stage in module django.contrib.admin.views.main. Error was: 'module' object has no attribute 'change_stage'



Your forgot to update urls.conf as follows:

# OLD:
from django.conf.urls.defaults import *

urlpatterns = patterns('',
(r'^admin/', include('django.contrib.admin.urls')),
)



# NEW:
from django.conf.urls.defaults import *
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
(r'^admin/(.*)', admin.site.root),
)

Labels:

blog comments powered by Disqus

Links to this post:

Create a Link

<< Home