aboutsummaryrefslogtreecommitdiffstats
path: root/config/settings/local.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-05-28 15:15:44 +0100
committerMatthew Lemon <y@yulqen.org>2024-05-28 15:15:44 +0100
commit2037c6b87564772c7ac3f3ece3e4b2df5bc44cdc (patch)
tree222bb552655033468af47818a072096999cd03d9 /config/settings/local.py
parent2b4181aecadbbad988cd80f97ef71b42d47a3cb1 (diff)
Should be a buildable Django container
Diffstat (limited to 'config/settings/local.py')
-rw-r--r--config/settings/local.py70
1 files changed, 0 insertions, 70 deletions
diff --git a/config/settings/local.py b/config/settings/local.py
deleted file mode 100644
index 8abae6f..0000000
--- a/config/settings/local.py
+++ /dev/null
@@ -1,70 +0,0 @@
-# ruff: noqa: E501
-from .base import * # noqa: F403
-from .base import INSTALLED_APPS
-from .base import env
-
-# GENERAL
-# ------------------------------------------------------------------------------
-# https://docs.djangoproject.com/en/dev/ref/settings/#debug
-DEBUG = True
-# https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
-SECRET_KEY = env(
- "DJANGO_SECRET_KEY",
- default="4MZuqVXy7rToppiUhiTBxzlQH8OxPDDmu4rsTqFiyAyLF50WPBVzX5ZFBLpwJPyY",
-)
-# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
-ALLOWED_HOSTS = ["localhost", "0.0.0.0", "127.0.0.1"] # noqa: S104
-
-# CACHES
-# ------------------------------------------------------------------------------
-# https://docs.djangoproject.com/en/dev/ref/settings/#caches
-CACHES = {
- "default": {
- "BACKEND": "django.core.cache.backends.locmem.LocMemCache",
- "LOCATION": "",
- },
-}
-
-# EMAIL
-# ------------------------------------------------------------------------------
-# https://docs.djangoproject.com/en/dev/ref/settings/#email-host
-EMAIL_HOST = env("EMAIL_HOST", default="mailpit")
-# https://docs.djangoproject.com/en/dev/ref/settings/#email-port
-EMAIL_PORT = 1025
-
-# WhiteNoise
-# ------------------------------------------------------------------------------
-# http://whitenoise.evans.io/en/latest/django.html#using-whitenoise-in-development
-#INSTALLED_APPS = ["whitenoise.runserver_nostatic", *INSTALLED_APPS]
-
-
-# django-debug-toolbar
-# ------------------------------------------------------------------------------
-# https://django-debug-toolbar.readthedocs.io/en/latest/installation.html#prerequisites
-#INSTALLED_APPS += ["debug_toolbar"]
-# https://django-debug-toolbar.readthedocs.io/en/latest/installation.html#middleware
-#MIDDLEWARE += ["debug_toolbar.middleware.DebugToolbarMiddleware"]
-# https://django-debug-toolbar.readthedocs.io/en/latest/configuration.html#debug-toolbar-config
-# DEBUG_TOOLBAR_CONFIG = {
-# # "DISABLE_PANELS": ["debug_toolbar.panels.redirects.RedirectsPanel"],
-# "SHOW_TEMPLATE_CONTEXT": True,
-# }
-# https://django-debug-toolbar.readthedocs.io/en/latest/installation.html#internal-ips
-INTERNAL_IPS = ["127.0.0.1", "10.0.2.2"]
-if env("USE_DOCKER") == "yes":
- import socket
-
- hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
- INTERNAL_IPS += [".".join(ip.split(".")[:-1] + ["1"]) for ip in ips]
-
-# django-extensions
-# ------------------------------------------------------------------------------
-# https://django-extensions.readthedocs.io/en/latest/installation_instructions.html#configuration
-# INSTALLED_APPS += ["django_extensions"]
-# Celery
-# ------------------------------------------------------------------------------
-
-# https://docs.celeryq.dev/en/stable/userguide/configuration.html#task-eager-propagates
-CELERY_TASK_EAGER_PROPAGATES = True
-# Your stuff...
-# ------------------------------------------------------------------------------