🚨 format python code using black
This commit is contained in:
1 parent
9c4a5b3d84
commit
a052397990
24 files changed
+643
-407
No files matched your search
+15
-8
@@ -11,17 +11,24 @@ from main import urls as main_urls
|
||||
admin.autodiscover()
|
||||
|
||||
urlpatterns = [
|
||||
re_path(r'', include(main_urls)),
|
||||
path('accounts/login/', LoginView.as_view(), name='django.contrib.auth.views.login'),
|
||||
path('accounts/logout/', LogoutView.as_view(), name='django.contrib.auth.views.logout'),
|
||||
|
||||
path('admin/', admin.site.urls),
|
||||
re_path(r"", include(main_urls)),
|
||||
path("accounts/login/", LoginView.as_view(), name="django.contrib.auth.views.login"),
|
||||
path(
|
||||
"accounts/logout/",
|
||||
LogoutView.as_view(),
|
||||
name="django.contrib.auth.views.logout",
|
||||
),
|
||||
path("admin/", admin.site.urls),
|
||||
]
|
||||
urlpatterns += staticfiles_urlpatterns()
|
||||
|
||||
if settings.DEBUG:
|
||||
urlpatterns += [
|
||||
re_path(r'^media/(?P<path>.*)$', serve, {
|
||||
'document_root': settings.MEDIA_ROOT,
|
||||
})
|
||||
re_path(
|
||||
r"^media/(?P<path>.*)$",
|
||||
serve,
|
||||
{
|
||||
"document_root": settings.MEDIA_ROOT,
|
||||
},
|
||||
)
|
||||
]
|
||||
Reference in new issue
Block a user