Small code style improvements

This commit is contained in:
Andrew Smirnov
2021-02-11 20:15:46 +03:00
parent c3f9e6626b
commit ac99a23a3b
3 changed files with 16 additions and 20 deletions

View File

@@ -26,13 +26,10 @@ urlpatterns = [
path('admin/', admin.site.urls, name='admin'),
path('', main_page),
path('register/', CustomRegistrationView.as_view(), name='registration'),
#path('', include('django_registration.backends.one_step.urls')),
# path('', include('django_registration.backends.one_step.urls')),
path('profile/', profile_page, name='profile'),
path('accounts/login/', LoginView.as_view(extra_context={})), # TODO add extra context
path('accounts/', include('django.contrib.auth.urls'))
]
]
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)