update reqs, add django-extensions for easier debugging
This commit is contained in:
parent
353d9b05b5
commit
f7c129340a
|
@ -1,8 +1,3 @@
|
|||
appdirs==1.4.4
|
||||
attrs==19.3.0
|
||||
black==19.10b0
|
||||
Click==7.1.2
|
||||
pathspec==0.8.0
|
||||
regex==2020.6.8
|
||||
toml==0.10.1
|
||||
typed-ast==1.4.1
|
||||
black
|
||||
Werkzeug
|
||||
django-extensions
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
amqp==2.6.0
|
||||
asgiref==3.2.10
|
||||
billiard==3.6.3.0
|
||||
celery==4.4.5
|
||||
celery==4.4.6
|
||||
certifi==2020.6.20
|
||||
cffi==1.14.0
|
||||
chardet==3.0.4
|
||||
cryptography==2.9.2
|
||||
decorator==4.4.2
|
||||
Django==3.0.7
|
||||
Django==3.0.8
|
||||
django-cors-headers==3.4.0
|
||||
django-rest-knox==4.1.0
|
||||
djangorestframework==3.11.0
|
||||
future==0.18.2
|
||||
idna==2.9
|
||||
importlib-metadata==1.6.1
|
||||
kombu==4.6.10
|
||||
idna==2.10
|
||||
importlib-metadata==1.7.0
|
||||
kombu==4.6.11
|
||||
loguru==0.5.1
|
||||
more-itertools==8.4.0
|
||||
packaging==20.4
|
||||
|
|
|
@ -13,6 +13,11 @@ AUTH_USER_MODEL = "accounts.User"
|
|||
# to alert user they need to manually refresh their browser
|
||||
APP_VER = "0.0.7"
|
||||
|
||||
try:
|
||||
from .local_settings import *
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
INSTALLED_APPS = [
|
||||
"django.contrib.admin",
|
||||
"django.contrib.auth",
|
||||
|
@ -39,6 +44,9 @@ INSTALLED_APPS = [
|
|||
"scripts",
|
||||
]
|
||||
|
||||
if DEBUG and not "TRAVIS" in os.environ and not "AZPIPELINE" in os.environ:
|
||||
INSTALLED_APPS += ("django_extensions",)
|
||||
|
||||
MIDDLEWARE = [
|
||||
"django.middleware.security.SecurityMiddleware",
|
||||
"django.contrib.sessions.middleware.SessionMiddleware",
|
||||
|
@ -109,11 +117,6 @@ LOG_CONFIG = {
|
|||
"handlers": [{"sink": os.path.join(LOG_DIR, "debug.log"), "serialize": False}]
|
||||
}
|
||||
|
||||
try:
|
||||
from .local_settings import *
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
if "TRAVIS" in os.environ:
|
||||
DATABASES = {
|
||||
"default": {
|
||||
|
|
|
@ -23,7 +23,7 @@ EXPOSE 80
|
|||
RUN apt-get update && apt-get install -y gettext-base
|
||||
COPY ./api/tacticalrmm/requirements.txt .
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install --no-cache-dir --upgrade setuptools wheel
|
||||
RUN pip install --no-cache-dir setuptools==47.3.2 wheel==0.34.2
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
COPY ./api/tacticalrmm/ .
|
||||
COPY ./docker/api/prestart.sh .
|
||||
|
|
|
@ -240,7 +240,7 @@ python3 -m venv env
|
|||
source /rmm/api/env/bin/activate
|
||||
cd /rmm/api/tacticalrmm
|
||||
pip install --no-cache-dir --upgrade pip
|
||||
pip install --no-cache-dir --upgrade setuptools wheel
|
||||
pip install --no-cache-dir setuptools==47.3.2 wheel==0.34.2
|
||||
pip install --no-cache-dir -r /rmm/api/tacticalrmm/requirements.txt
|
||||
python manage.py migrate
|
||||
python manage.py collectstatic
|
||||
|
|
|
@ -17,7 +17,7 @@ python3 -m venv env
|
|||
source /rmm/api/env/bin/activate
|
||||
cd /rmm/api/tacticalrmm
|
||||
pip install --no-cache-dir --upgrade pip
|
||||
pip install --no-cache-dir --upgrade setuptools wheel
|
||||
pip install --no-cache-dir setuptools==47.3.2 wheel==0.34.2
|
||||
pip install --no-cache-dir -r requirements.txt
|
||||
python manage.py migrate
|
||||
python manage.py delete_tokens
|
||||
|
|
Loading…
Reference in New Issue