[dev] install django-extensions for shell_plus and show_urls
This commit is contained in:
parent
92e38ffb37
commit
8cc5d405b4
3 changed files with 32 additions and 4 deletions
|
|
@ -12,19 +12,23 @@ import environ
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
BASE_DIR = Path(__file__).resolve().parent.parent
|
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")
|
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/
|
# See https://docs.djangoproject.com/en/5.1/howto/deployment/checklist/
|
||||||
|
|
||||||
SECRET_KEY = env("SECRET_KEY")
|
SECRET_KEY = env("SECRET_KEY")
|
||||||
DEBUG = env("DEBUG")
|
DEBUG = env("DEBUG")
|
||||||
|
|
||||||
ALLOWED_HOSTS = []
|
ALLOWED_HOSTS = []
|
||||||
|
SESSION_COOKIE_SECURE = True
|
||||||
|
CSRF_COOKIE_SECURE = True
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
INSTALLED_APPS = [
|
INSTALLED_APPS = [
|
||||||
"django.contrib.admin",
|
"django.contrib.admin",
|
||||||
"django.contrib.auth",
|
"django.contrib.auth",
|
||||||
|
|
@ -33,6 +37,11 @@ INSTALLED_APPS = [
|
||||||
"django.contrib.messages",
|
"django.contrib.messages",
|
||||||
"django.contrib.staticfiles",
|
"django.contrib.staticfiles",
|
||||||
]
|
]
|
||||||
|
if env("DEV") is True:
|
||||||
|
INSTALLED_APPS.extend([
|
||||||
|
"django_extensions",
|
||||||
|
])
|
||||||
|
SHELL_PLUS = "ipython"
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
"django.middleware.security.SecurityMiddleware",
|
"django.middleware.security.SecurityMiddleware",
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
-r base.in
|
-r base.in
|
||||||
|
|
||||||
|
django-extensions
|
||||||
|
ipython
|
||||||
pip-compile-multi
|
pip-compile-multi
|
||||||
pytest
|
pytest
|
||||||
pytest-django
|
pytest-django
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# SHA1:b7996e1effaeec9ddefc86a6bee3a8229778b21d
|
# SHA1:aa7b36eb9246ae7340ef96f0a56cbc388bf1e992
|
||||||
#
|
#
|
||||||
# This file is autogenerated by pip-compile-multi
|
# This file is autogenerated by pip-compile-multi
|
||||||
# To update, run:
|
# To update, run:
|
||||||
|
|
@ -6,19 +6,36 @@
|
||||||
# pip-compile-multi
|
# pip-compile-multi
|
||||||
#
|
#
|
||||||
-r base.txt
|
-r base.txt
|
||||||
|
asttokens==3.0.0
|
||||||
build==1.2.2.post1
|
build==1.2.2.post1
|
||||||
click==8.1.8
|
click==8.1.8
|
||||||
|
decorator==5.2.1
|
||||||
|
django-extensions==3.2.3
|
||||||
|
executing==2.2.0
|
||||||
iniconfig==2.0.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
|
packaging==24.2
|
||||||
|
parso==0.8.4
|
||||||
|
pexpect==4.9.0
|
||||||
pip==25.0.1
|
pip==25.0.1
|
||||||
pip-compile-multi==2.8.0
|
pip-compile-multi==2.8.0
|
||||||
pip-tools==7.4.1
|
pip-tools==7.4.1
|
||||||
pluggy==1.5.0
|
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
|
pyproject-hooks==1.2.0
|
||||||
pytest==8.3.5
|
pytest==8.3.5
|
||||||
pytest-django==4.10.0
|
pytest-django==4.10.0
|
||||||
ruff==0.9.10
|
ruff==0.9.10
|
||||||
setuptools==76.0.0
|
setuptools==76.0.0
|
||||||
|
stack-data==0.6.3
|
||||||
toposort==1.10
|
toposort==1.10
|
||||||
|
traitlets==5.14.3
|
||||||
uv==0.6.6
|
uv==0.6.6
|
||||||
|
wcwidth==0.2.13
|
||||||
wheel==0.45.1
|
wheel==0.45.1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue