nknganda / django-mailer

Automatically exported from code.google.com/p/django-mailer
MIT License
0 stars 0 forks source link

Most recent version of django trunk requires admin.autodiscover() #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Run the tutorial
2. Login
3. Access to all tables is disabled.

From
http://code.djangoproject.com/wiki/BackwardsIncompatibleChanges#Mergednewforms-a
dminintotrunk
I had to add
admin.autodiscover() to urls.py:
from django.conf.urls.defaults import *
from django.contrib import admin

admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^mailerdev/', include('mailerdev.foo.urls')),

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

Original issue reported on code.google.com by jon.stoc...@gmail.com on 28 Jul 2008 at 1:50

GoogleCodeExporter commented 8 years ago
admin.autodiscover() should be added to your project level urls.py. It should 
only be run once per project. It 
would be wrong to add it to django-mailer.

Original comment by bros...@gmail.com on 28 Jul 2008 at 4:25

GoogleCodeExporter commented 8 years ago
agreed.  It's not an app level thing.

Original comment by mtr...@gmail.com on 28 Jul 2008 at 4:26

GoogleCodeExporter commented 8 years ago
Makes sense.  But you do need it to run the example in the README.txt.

Original comment by jon.stoc...@gmail.com on 28 Jul 2008 at 5:13

GoogleCodeExporter commented 8 years ago
If you created a Django project via django-admin.py startproject then 
admin.autodiscover() would be there for 
you to uncomment to activate the admin interface :)

Original comment by bros...@gmail.com on 28 Jul 2008 at 5:18