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-22 09:47:13 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9f148dc4d272c3fcdedd3cfee2267ea592fa0f45
9f148dc4
1 parent
1d0f41cb
Agrega configuracion
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
project/settings/base.py
project/settings/base.py
View file @
9f148dc
...
...
@@ -29,6 +29,9 @@ 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'
)
}
...
...
@@ -94,10 +97,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