mirror of
https://github.com/Rushilwiz/spaceout.git
synced 2025-04-08 14:00:16 -04:00
added whitenoise
This commit is contained in:
parent
a725445f8b
commit
fa11563c30
6
app/.gitignore
vendored
Normal file
6
app/.gitignore
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
.vscode/
|
||||
.idea/
|
||||
venv/
|
||||
.venv/
|
||||
env/
|
||||
.env/
|
55
app/Pipfile
Normal file
55
app/Pipfile
Normal file
|
@ -0,0 +1,55 @@
|
|||
[[source]]
|
||||
name = "pypi"
|
||||
url = "https://pypi.org/simple"
|
||||
verify_ssl = true
|
||||
|
||||
[dev-packages]
|
||||
|
||||
[packages]
|
||||
altgraph = "==0.17"
|
||||
beautifulsoup4 = "==4.9.3"
|
||||
cachetools = "==4.2.0"
|
||||
certifi = "==2020.12.5"
|
||||
chardet = "==3.0.4"
|
||||
comtypes = "==1.1.7"
|
||||
fbs = "==0.9.0"
|
||||
future = "==0.18.2"
|
||||
google = "==3.0.0"
|
||||
google-api-core = "==1.23.0"
|
||||
google-auth = "==1.24.0"
|
||||
google-cloud = "==0.34.0"
|
||||
google-cloud-speech = "==2.0.1"
|
||||
googleapis-common-protos = "==1.52.0"
|
||||
grpcio = "==1.34.0"
|
||||
idna = "==2.10"
|
||||
keyring = "==21.5.0"
|
||||
libcst = "==0.3.15"
|
||||
macholib = "==1.14"
|
||||
mypy-extensions = "==0.4.3"
|
||||
pefile = "==2019.4.18"
|
||||
proto-plus = "==1.13.0"
|
||||
protobuf = "==3.14.0"
|
||||
pyasn1 = "==0.4.8"
|
||||
pyasn1-modules = "==0.2.8"
|
||||
pyinstaller = "==3.4"
|
||||
pyinstaller-hooks-contrib = "==2020.10"
|
||||
pytz = "==2020.4"
|
||||
pyuic5-tool = "==0.0.1"
|
||||
pywin32 = "==300"
|
||||
pywin32-ctypes = "==0.2.0"
|
||||
pywinauto = "==0.6.8"
|
||||
requests = "==2.25.0"
|
||||
rsa = "==4.6"
|
||||
six = "==1.15.0"
|
||||
soupsieve = "==2.1"
|
||||
typing-extensions = "==3.7.4.3"
|
||||
typing-inspect = "==0.6.0"
|
||||
urllib3 = "==1.26.2"
|
||||
PyQt5 = "==5.15.2"
|
||||
PyAudio = "*"
|
||||
PyQt5-sip = "==12.8.1"
|
||||
PyQtWebEngine = "==5.15.2"
|
||||
PyYAML = "==5.3.1"
|
||||
|
||||
[requires]
|
||||
python_version = "3.6"
|
Binary file not shown.
|
@ -10,7 +10,8 @@ django-cockroachdb = "*"
|
|||
psycopg2 = "*"
|
||||
pillow = "*"
|
||||
django-crispy-forms = "*"
|
||||
djoser = "*"
|
||||
whitenoise = "*"
|
||||
gunicorn = "*"
|
||||
|
||||
[dev-packages]
|
||||
isort = "*"
|
||||
|
|
|
@ -55,6 +55,7 @@ REST_FRAMEWORK = {
|
|||
|
||||
MIDDLEWARE = [
|
||||
"django.middleware.security.SecurityMiddleware",
|
||||
'whitenoise.middleware.WhiteNoiseMiddleware',
|
||||
"django.contrib.sessions.middleware.SessionMiddleware",
|
||||
"django.middleware.common.CommonMiddleware",
|
||||
"django.middleware.csrf.CsrfViewMiddleware",
|
||||
|
@ -94,16 +95,16 @@ DATABASES = {
|
|||
}
|
||||
}
|
||||
|
||||
# DATABASES = {
|
||||
# 'default': {
|
||||
# 'ENGINE' : 'django_cockroachdb',
|
||||
# 'NAME' : 'spaceout',
|
||||
# 'USER' : 'spaceout',
|
||||
# 'PASSWORD': r"eVYfYQ`W.`y3AW%'[hdyVR.cn,_[mP5h,$~.7#(8SM8@Z8=T:(",
|
||||
# 'HOST' : 'spaceout-86g.gcp-us-east4.cockroachlabs.cloud',
|
||||
# 'PORT' : 26257,
|
||||
# }
|
||||
# }
|
||||
#DATABASES = {
|
||||
# 'default': {
|
||||
# 'ENGINE' : 'django_cockroachdb',
|
||||
# 'NAME' : 'spaceout',
|
||||
# 'USER' : 'spaceout',
|
||||
# 'PASSWORD': r"eVYfYQ`W.`y3AW%'[hdyVR.cn,_[mP5h,$~.7#(8SM8@Z8=T:(",
|
||||
# 'HOST' : 'spaceout-86g.gcp-us-east4.cockroachlabs.cloud',
|
||||
# 'PORT' : 26257,
|
||||
# }
|
||||
#}
|
||||
|
||||
|
||||
# Password validation
|
||||
|
@ -141,13 +142,9 @@ USE_TZ = True
|
|||
|
||||
# Static files (CSS, JavaScript, Images)
|
||||
# https://docs.djangoproject.com/en/3.1/howto/static-files/
|
||||
|
||||
STATIC_URL = "/static/"
|
||||
|
||||
## Custom
|
||||
STATICFILES_DIRS = [
|
||||
BASE_DIR / "static",
|
||||
]
|
||||
import os
|
||||
STATIC_URL = '/static/'
|
||||
STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
|
||||
|
||||
LOGIN_REDIRECT_URL = "landing_page"
|
||||
LOGIN_URL = "login"
|
||||
|
|
Loading…
Reference in New Issue
Block a user