Skip to content

Commit

Permalink
Fix: add missing Django 2.0 syntax on urls
Browse files Browse the repository at this point in the history
  • Loading branch information
smaniotto committed Feb 14, 2018
1 parent d64ce6a commit a737e18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@


urlpatterns = [
path(r'^admin/', admin.site.urls),
path('admin/', admin.site.urls),

# Enables the DRF browsable API page
path(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
path('api-auth/', include('rest_framework.urls', namespace='rest_framework')),

path(r'', include('cklauth.urls', namespace='cklauth')),
path('', include('cklauth.urls', namespace='cklauth')),
]
4 changes: 4 additions & 0 deletions src/cklauth/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
from allauth.socialaccount import views as social_views
from django.conf import settings


app_name = 'cklauth'


urlpatterns = [
# Auth API endpoints
url(r'^api/v1/', include('cklauth.api.v1.urls')),
Expand Down

0 comments on commit a737e18

Please sign in to comment.