make format
This commit is contained in:
parent
dae7ad1c6a
commit
ad62170e87
5
Makefile
5
Makefile
@ -3,7 +3,10 @@
|
||||
test:
|
||||
nix flake check
|
||||
|
||||
# Dev.
|
||||
.PHONY: format
|
||||
format:
|
||||
autopep8 -a -a --recursive --in-place --exclude app/signup/migrations app
|
||||
|
||||
.PHONY: run
|
||||
run:
|
||||
app/manage.py runserver
|
||||
|
@ -59,14 +59,15 @@ INSTALLED_APPS = (['debug_toolbar'] if DEBUG else []) + [
|
||||
'django.contrib.staticfiles',
|
||||
]
|
||||
|
||||
MIDDLEWARE = (['debug_toolbar.middleware.DebugToolbarMiddleware'] if DEBUG else []) + [
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
'django.contrib.messages.middleware.MessageMiddleware',
|
||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||
MIDDLEWARE = (
|
||||
['debug_toolbar.middleware.DebugToolbarMiddleware'] if DEBUG else []) + [
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
'django.middleware.csrf.CsrfViewMiddleware',
|
||||
'django.contrib.auth.middleware.AuthenticationMiddleware',
|
||||
'django.contrib.messages.middleware.MessageMiddleware',
|
||||
'django.middleware.clickjacking.XFrameOptionsMiddleware',
|
||||
]
|
||||
|
||||
ROOT_URLCONF = 'e11sync.urls'
|
||||
|
@ -21,8 +21,8 @@ from django.conf import settings
|
||||
|
||||
urlpatterns = [
|
||||
path('admin/', admin.site.urls),
|
||||
] + [
|
||||
path("__debug__/", include("debug_toolbar.urls"))
|
||||
] if settings.DEBUG else [] + [
|
||||
] + [
|
||||
path("__debug__/", include("debug_toolbar.urls"))
|
||||
] if settings.DEBUG else [] + [
|
||||
path('', include('signup.urls')),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user