This commit is contained in:
parent
4c5d0e30ab
commit
3dde14614f
8
Makefile
8
Makefile
|
@ -35,11 +35,5 @@ poetry_lock:
|
|||
poetry_command:
|
||||
${DOCKER_RUN} ${DOCKER_CONTAINER_NAME} poetry ${COMMAND}
|
||||
|
||||
build_dev_docker_image:
|
||||
build_docker_image:
|
||||
${DOCKER_COMPOSE} build ${DOCKER_CONTAINER_NAME}
|
||||
|
||||
tailwind_install:
|
||||
${MANAGE_COMMAND} tailwind install --no-input
|
||||
|
||||
tailwind_build:
|
||||
${MANAGE_COMMAND} tailwind build --no-input
|
||||
|
|
2
env
2
env
|
@ -4,4 +4,4 @@ POSTGRES_PASSWORD=postgres
|
|||
POSTGRES_PORT=5432
|
||||
DATABASE_URL=postgres://postgres:postgres@postgres:5432/postgres
|
||||
DEBUG=True
|
||||
DJANGO_ENV=all
|
||||
DJANGO_ENV=development
|
||||
|
|
8
poetry.lock
generated
8
poetry.lock
generated
|
@ -162,14 +162,14 @@ python-versions = "*"
|
|||
|
||||
[[package]]
|
||||
name = "django-debug-toolbar"
|
||||
version = "3.2"
|
||||
version = "3.5.0"
|
||||
description = "A configurable set of panels that display various debug information about the current request/response."
|
||||
category = "dev"
|
||||
optional = false
|
||||
python-versions = ">=3.6"
|
||||
python-versions = ">=3.7"
|
||||
|
||||
[package.dependencies]
|
||||
Django = ">=2.2"
|
||||
Django = ">=3.2"
|
||||
sqlparse = ">=0.2.0"
|
||||
|
||||
[[package]]
|
||||
|
@ -503,7 +503,7 @@ brotli = ["brotli"]
|
|||
[metadata]
|
||||
lock-version = "1.1"
|
||||
python-versions = "^3.10"
|
||||
content-hash = "b9c94675105cfb9daa966cd4b3de9971cdbc6480c833aa7176514fd6ea67a70c"
|
||||
content-hash = "36626d533a72d4a8597cc1109cf41e383ef0f3663e36770cfe00feac0679ac7d"
|
||||
|
||||
[metadata.files]
|
||||
asgiref = []
|
||||
|
|
|
@ -17,7 +17,7 @@ whitenoise = "^5.2"
|
|||
[tool.poetry.dev-dependencies]
|
||||
pytest = "^5.1"
|
||||
pytest-django = "^3.5"
|
||||
django-debug-toolbar = "^3.2"
|
||||
django-debug-toolbar = "^3.5"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry>=0.12"]
|
||||
|
|
|
@ -16,7 +16,9 @@ SECRET_KEY = env.str("SECRET_KEY", default="something-very-secret")
|
|||
DEBUG = env.bool("DEBUG", default=False)
|
||||
|
||||
ALLOWED_HOSTS = env.list("ALLOWED_HOSTS", default=["*"])
|
||||
CSRF_TRUSTED_ORIGINS = env.list("CSRF_TRUSTED_ORIGINS", default=["*"])
|
||||
CSRF_TRUSTED_ORIGINS = env.list(
|
||||
"CSRF_TRUSTED_ORIGINS", default=["http://localhost:8000"]
|
||||
)
|
||||
|
||||
ADMINS = [tuple(x.split(":")) for x in env.list("DJANGO_ADMINS", default=[])]
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
"""URLs for the membersystem"""
|
||||
import debug_toolbar
|
||||
from django.conf import settings
|
||||
from django.contrib import admin
|
||||
from django.contrib.auth.decorators import login_required
|
||||
|
@ -20,5 +19,5 @@ urlpatterns = [
|
|||
|
||||
if settings.DEBUG:
|
||||
urlpatterns += [
|
||||
path("__debug__/", include(debug_toolbar.urls)),
|
||||
path("__debug__/", include("debug_toolbar.urls")),
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue