Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GuiΩ
ActivitesMentales_Django
Commits
d50e7b78
Commit
d50e7b78
authored
Jul 04, 2022
by
GuiΩ
Browse files
fix(config_prod): fix config
parent
d8d8adfd
Pipeline
#520803
failed with stages
in 1 minute
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
config/settings_prod.py
View file @
d50e7b78
...
...
@@ -43,9 +43,10 @@ INSTALLED_APPS = [
'django.contrib.sessions'
,
'django.contrib.messages'
,
'django.contrib.staticfiles'
,
'password_reset'
,
#
'password_reset',
'rest_framework'
,
'webpack_loader'
,
# 'webpack_loader',
'django_vite'
,
'am'
,
# 'gunicorn',
]
...
...
@@ -129,7 +130,6 @@ DEFAULT_FROM_EMAIL = 'no_reply@ac-grenoble.fr'
EMAIL_USE_TLS
=
False
EMAIL_USE_SSL
=
True
SESSION_EXPIRE_AT_BROWSER_CLOSE
=
True
# Internationalization
# https://docs.djangoproject.com/en/3.1/topics/i18n/
...
...
@@ -144,6 +144,17 @@ USE_L10N = True
USE_TZ
=
True
### Vite ###
VITE_BASE_DIR
=
BASE_DIR
/
'frontend'
# the absolute path to where the assets are built.
# This must correspond to the build.outDir in ViteJS configuration.
# The DJANGO_VITE_ASSETS_PATH must be included in STATICFILES_DIRS
DJANGO_VITE_ASSETS_PATH
=
VITE_BASE_DIR
/
'dist'
DJANGO_VITE_DEV_MODE
=
False
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/3.1/howto/static-files/
...
...
@@ -151,10 +162,11 @@ USE_TZ = True
# where they are
STATICFILES_DIRS
=
[
# os.path.join(BASE_DIR, "dist"),
os
.
path
.
join
(
BASE_DIR
,
"static/"
),
# os.path.join(BASE_DIR, "static/"),
DJANGO_VITE_ASSETS_PATH
]
# where place them
#
STATIC_ROOT = os.path.join(BASE_DIR, '
publ
ic')
STATIC_ROOT
=
os
.
path
.
join
(
BASE_DIR
,
'
stat
ic'
)
# STATICFILES_DIRS = [
# os.path.join(BASE_DIR, "public"),
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment