Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

Commit

Permalink
Django 2.0 compatibility pinax#252
Browse files Browse the repository at this point in the history
  • Loading branch information
cezio committed May 11, 2017
1 parent 635fee0 commit 6ba4863
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion account/tests/urls.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import django
from django.conf.urls import include, url
from django.contrib import admin

admin.autodiscover()

# D 2.0 compatibility
if django.VERSION[0] < 2:
admin_urls = url(r"admin/", include(admin.site.urls))
else:
admin_urls = url(r"admin/", include(admin.site.urls))


urlpatterns = [
url(r"admin/", include(admin.site.urls)),
admin_urls,
url(r"^", include("account.urls")),
]

0 comments on commit 6ba4863

Please sign in to comment.