Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
RECIRCLE
/
portal
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
11
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6329bd43
authored
Jun 09, 2020
by
Chif Gergő
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separate testing lib to local settings
parent
47e38116
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
recircle/recircle/settings/base.py
+0
-1
recircle/recircle/settings/local.py
+4
-0
recircle/recircle/settings/production.py
+11
-1
No files found.
recircle/recircle/settings/base.py
View file @
6329bd43
...
...
@@ -41,7 +41,6 @@ INSTALLED_APPS = [
"djoser"
,
"corsheaders"
,
"guardian"
,
"django_nose"
,
"channels"
,
"django_celery_beat"
]
...
...
recircle/recircle/settings/local.py
View file @
6329bd43
...
...
@@ -10,6 +10,10 @@ for i in LOCAL_APPS:
ADMIN_ENABLED
=
True
INSTALLED_APPS
+=
[
'django_nose'
]
ALLOWED_HOSTS
=
[
'*'
]
AUTH_PASSWORD_VALIDATORS
=
[]
...
...
recircle/recircle/settings/production.py
View file @
6329bd43
...
...
@@ -6,7 +6,7 @@ DEBUG = False
DATABASES
=
{
"default"
:
{
"ENGINE"
:
"django.db.backends.postgresql"
,
"HOST"
:
"db"
,
"HOST"
:
os
.
getenv
(
"DATABASE_HOST"
)
,
"PORT"
:
"5432"
,
"NAME"
:
os
.
getenv
(
"DATABASE_NAME"
),
"USER"
:
os
.
getenv
(
"DATABASE_USER"
),
...
...
@@ -18,3 +18,12 @@ STATIC_ROOT = "/static/"
CELERY_BROKER_URL
=
'redis://redis:6379'
CELERY_RESULT_BACKEND
=
"redis://redis:6379"
CHANNEL_LAYERS
=
{
'default'
:
{
'BACKEND'
:
'channels_redis.core.RedisChannelLayer'
,
'CONFIG'
:
{
"hosts"
:
[(
os
.
getenv
(
'REDIS_HOST'
,
'redis'
),
6379
)],
},
},
}
\ No newline at end of file
Write
Preview
Markdown
is supported
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