Loïc Dachary 2022-07-07 09:50:47 +02:00
parent b4183c1790
commit 30143774af
Signed by: dachary
GPG Key ID: 992D23B392F9E4F2
2 changed files with 6 additions and 6 deletions

View File

@ -25,6 +25,7 @@ docker: ## Build Docker image from source
env: ## Install all dependencies
@-virtualenv venv
. ./venv/bin/activate && pip install -r requirements.txt
. ./venv/bin/activate && yes yes | python manage.py collectstatic
. ./venv/bin/activate && ./integration/ci.sh init
freeze: ## Freeze python dependencies

View File

@ -23,7 +23,7 @@ BASE_DIR = Path(__file__).resolve().parent.parent
SECRET_KEY = "django-insecure-44zt@)$td7_yh(01q^hrce%h(311n!djn%%#s1b7$cvfy!pf7y"
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
#DEBUG = True
ALLOWED_HOSTS = []
@ -48,7 +48,6 @@ INSTALLED_APPS = [
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",
"whitenoise.middleware.WhiteNoiseMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware",
"oauth2_provider.middleware.OAuth2TokenMiddleware",
"django.middleware.common.CommonMiddleware",
@ -131,11 +130,11 @@ USE_TZ = True
STATIC_URL = "static/"
STATIC_ROOT = BASE_DIR / "static"
# STATICFILES_DIRS = [
#STATICFILES_DIRS = [
# BASE_DIR / "static",
# ]
#]
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage"
# Default primary key field type
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field