Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
oser-backend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hamza Touizrat
oser-backend
Commits
60079d8c
Commit
60079d8c
authored
Mar 18, 2018
by
florimondmanca
Browse files
Options
Downloads
Patches
Plain Diff
quick settings update
parent
d04fe080
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
oser_backend/oser_backend/settings/dev.py
+1
-1
1 addition, 1 deletion
oser_backend/oser_backend/settings/dev.py
oser_backend/oser_backend/settings/production.py
+3
-1
3 additions, 1 deletion
oser_backend/oser_backend/settings/production.py
with
4 additions
and
2 deletions
oser_backend/oser_backend/settings/dev.py
+
1
−
1
View file @
60079d8c
"""
Django settings for oser_backend project.
Base settings common to all environment
s.
Development settings used as a base for the production setting
s.
"""
import
os
...
...
This diff is collapsed.
Click to expand it.
oser_backend/oser_backend/settings/production.py
+
3
−
1
View file @
60079d8c
"""
Production settings.
"""
import
os
import
django_heroku
...
...
@@ -18,7 +20,7 @@ STATICFILES_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
# Credentials
AWS_ACCESS_KEY_ID
=
os
.
environ
.
get
(
'
AWS_ACCESS_KEY_ID
'
)
AWS_SECRET_ACCESS_KEY
=
os
.
environ
.
get
(
'
AWS_SECRET_ACCESS_KEY
'
)
AWS_STORAGE_BUCKET_NAME
=
'
oser
_
backend
_
files
'
AWS_STORAGE_BUCKET_NAME
=
'
oser
-
backend
-
files
'
AWS_S3_OBJECT_PARAMETERS
=
{
'
CacheControl
'
:
'
max-age=86400
'
,
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment