tmp
parent
b4183c1790
commit
30143774af
1
Makefile
1
Makefile
|
@ -25,6 +25,7 @@ docker: ## Build Docker image from source
|
||||||
env: ## Install all dependencies
|
env: ## Install all dependencies
|
||||||
@-virtualenv venv
|
@-virtualenv venv
|
||||||
. ./venv/bin/activate && pip install -r requirements.txt
|
. ./venv/bin/activate && pip install -r requirements.txt
|
||||||
|
. ./venv/bin/activate && yes yes | python manage.py collectstatic
|
||||||
. ./venv/bin/activate && ./integration/ci.sh init
|
. ./venv/bin/activate && ./integration/ci.sh init
|
||||||
|
|
||||||
freeze: ## Freeze python dependencies
|
freeze: ## Freeze python dependencies
|
||||||
|
|
|
@ -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"
|
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!
|
# SECURITY WARNING: don't run with debug turned on in production!
|
||||||
DEBUG = True
|
#DEBUG = True
|
||||||
|
|
||||||
ALLOWED_HOSTS = []
|
ALLOWED_HOSTS = []
|
||||||
|
|
||||||
|
@ -48,7 +48,6 @@ INSTALLED_APPS = [
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
"django.middleware.security.SecurityMiddleware",
|
"django.middleware.security.SecurityMiddleware",
|
||||||
"whitenoise.middleware.WhiteNoiseMiddleware",
|
|
||||||
"django.contrib.sessions.middleware.SessionMiddleware",
|
"django.contrib.sessions.middleware.SessionMiddleware",
|
||||||
"oauth2_provider.middleware.OAuth2TokenMiddleware",
|
"oauth2_provider.middleware.OAuth2TokenMiddleware",
|
||||||
"django.middleware.common.CommonMiddleware",
|
"django.middleware.common.CommonMiddleware",
|
||||||
|
@ -131,11 +130,11 @@ USE_TZ = True
|
||||||
|
|
||||||
STATIC_URL = "static/"
|
STATIC_URL = "static/"
|
||||||
STATIC_ROOT = BASE_DIR / "static"
|
STATIC_ROOT = BASE_DIR / "static"
|
||||||
# STATICFILES_DIRS = [
|
#STATICFILES_DIRS = [
|
||||||
# BASE_DIR / "static",
|
# BASE_DIR / "static",
|
||||||
# ]
|
#]
|
||||||
|
|
||||||
STATICFILES_STORAGE = "whitenoise.storage.CompressedManifestStaticFilesStorage"
|
STATICFILES_STORAGE = "django.contrib.staticfiles.storage.StaticFilesStorage"
|
||||||
|
|
||||||
# Default primary key field type
|
# Default primary key field type
|
||||||
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
|
# https://docs.djangoproject.com/en/4.0/ref/settings/#default-auto-field
|
||||||
|
|
Loading…
Reference in New Issue