Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove admin.autodiscover() for URLconf example #16

Closed
aaugustin opened this issue Oct 6, 2015 · 0 comments
Closed

Remove admin.autodiscover() for URLconf example #16

aaugustin opened this issue Oct 6, 2015 · 0 comments

Comments

@aaugustin
Copy link

I suggest to replace:

from ratelimitbackend import admin

admin.autodiscover()

urlpatterns += patterns('',
    (r'^admin/', include(admin.site.urls)),
)

with:

from ratelimitbackend import admin

urlpatterns += [
    (r'^admin/', include(admin.site.urls)),
]

which is the recommended style as of Django 1.7, the oldest currently
supported Django version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant