[dev] install django-extensions for shell_plus and show_urls

This commit is contained in:
bronsen 2025-03-12 21:39:43 +01:00
parent 92e38ffb37
commit 8cc5d405b4
3 changed files with 32 additions and 4 deletions
config
requirements

View file

@ -12,19 +12,23 @@ import environ
from pathlib import Path
BASE_DIR = Path(__file__).resolve().parent.parent
env = environ.Env(DEBUG=(bool, False))
env = environ.Env(
DEBUG=(bool, False),
DEV=(bool, False),
)
environ.Env.read_env(BASE_DIR / ".env")
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/
SECRET_KEY = env("SECRET_KEY")
DEBUG = env("DEBUG")
ALLOWED_HOSTS = []
SESSION_COOKIE_SECURE = True
CSRF_COOKIE_SECURE = True
# Application definition
INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
@ -33,6 +37,11 @@ INSTALLED_APPS = [
"django.contrib.messages",
"django.contrib.staticfiles",
]
if env("DEV") is True:
INSTALLED_APPS.extend([
"django_extensions",
])
SHELL_PLUS = "ipython"
MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware",

View file

@ -1,5 +1,7 @@
-r base.in
django-extensions
ipython
pip-compile-multi
pytest
pytest-django

View file

@ -1,4 +1,4 @@
# SHA1:b7996e1effaeec9ddefc86a6bee3a8229778b21d
# SHA1:aa7b36eb9246ae7340ef96f0a56cbc388bf1e992
#
# This file is autogenerated by pip-compile-multi
# To update, run:
@ -6,19 +6,36 @@
# pip-compile-multi
#
-r base.txt
asttokens==3.0.0
build==1.2.2.post1
click==8.1.8
decorator==5.2.1
django-extensions==3.2.3
executing==2.2.0
iniconfig==2.0.0
ipython==9.0.2
ipython-pygments-lexers==1.1.1
jedi==0.19.2
matplotlib-inline==0.1.7
packaging==24.2
parso==0.8.4
pexpect==4.9.0
pip==25.0.1
pip-compile-multi==2.8.0
pip-tools==7.4.1
pluggy==1.5.0
prompt-toolkit==3.0.50
ptyprocess==0.7.0
pure-eval==0.2.3
pygments==2.19.1
pyproject-hooks==1.2.0
pytest==8.3.5
pytest-django==4.10.0
ruff==0.9.10
setuptools==76.0.0
stack-data==0.6.3
toposort==1.10
traitlets==5.14.3
uv==0.6.6
wcwidth==0.2.13
wheel==0.45.1