Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Marta Miranda
/
boletin_api
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Vm Django
2023-06-12 19:26:39 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f9b32e8f3fd2d4f9c3dcda4c5a5ee15e32c7112a
f9b32e8f
1 parent
7b51bfd3
Add configurations
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
project/settings/base.py
project/settings/base.py
View file @
f9b32e8
...
...
@@ -28,6 +28,10 @@ DEBUG = env.bool('DJANGO_DEBUG', False)
SECRET_KEY
=
env
(
'DJANGO_SECRET_KEY'
,
default
=
'CHANGEME!!!'
)
# noqa
ALLOWED_HOSTS
=
env
.
list
(
'DJANGO_ALLOWED_HOSTS'
,
default
=
'*'
)
# noqa
FORCE_SCRIPT_NAME
=
env
.
str
(
'DJANGO_FORCE_SCRIPT_NAME'
,
default
=
None
)
USE_X_FORWARDED_HOST
=
env
.
bool
(
'DJANGO_USE_X_FORWARDED_HOST'
,
default
=
False
)
DATABASES
=
{
'default'
:
env
.
db
(
'DATABASE_URL'
)
...
...
@@ -87,10 +91,11 @@ LANGUAGES = [
# https://docs.djangoproject.com/en/1.7/howto/static-files/
STATIC_ROOT
=
str
(
PROJECT_DIR
.
path
(
'static'
))
STATIC_URL
=
'/static/'
STATIC_URL
=
env
.
str
(
'DJANGO_STATIC_URL'
,
default
=
'/static/'
)
STATICFILES_DIRS
=
[
str
(
PROJECT_DIR
.
path
(
'assets'
)),
]
MEDIA_ROOT
=
str
(
PROJECT_DIR
.
path
(
'media'
))
MEDIA_URL
=
env
.
str
(
'MEDIA_URL'
,
default
=
'/media/'
)
MEDIA_URL
=
env
.
str
(
'
DJANGO_
MEDIA_URL'
,
default
=
'/media/'
)
CORS_ORIGIN_ALLOW_ALL
=
True
...
...
Please
register
or
login
to post a comment