Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
C
cp_video_dokku
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alexandr Dzehil
cp_video_dokku
Commits
ba7db591
Commit
ba7db591
authored
Mar 11, 2025
by
Ilya Simonov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix database settings
parent
74bc925a
Pipeline
#7003
failed with stage
in 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
+4
-16
settings.py
cp_video/settings.py
+4
-16
No files found.
cp_video/settings.py
View file @
ba7db591
"""
Django settings for cp_video project.
Generated by 'django-admin startproject' using Django 3.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import
os
import
environ
import
sys
...
...
@@ -93,10 +81,10 @@ if DEVELOPMENT_MODE is True:
DATABASES
=
{
'default'
:
{
'ENGINE'
:
'django.db.backends.postgresql_psycopg2'
,
'NAME'
:
'cp_video'
,
'USER'
:
'postgres'
,
'PASSWORD'
:
'postgres'
,
'HOST'
:
'127.0.0.1'
,
'NAME'
:
env
(
'DATABASE_NAME'
)
,
'USER'
:
env
(
'DATABASE_USER'
)
,
'PASSWORD'
:
env
(
'DATABASE_PASSWORD'
)
,
'HOST'
:
env
(
'DATABASE_HOST'
)
}
}
elif
len
(
sys
.
argv
)
>
0
and
sys
.
argv
[
1
]
!=
'collectstatic'
:
...
...
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