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
5c86b708
Commit
5c86b708
authored
Jan 21, 2025
by
Alexandr Dzehil
😎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add whitenoise
parent
c21ce94f
Pipeline
#6859
canceled with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
settings.py
cp_video/settings.py
+6
-1
requirements.txt
requirements.txt
+3
-2
No files found.
cp_video/settings.py
View file @
5c86b708
...
@@ -35,7 +35,6 @@ DEBUG = env('DEBUG', default=True)
...
@@ -35,7 +35,6 @@ DEBUG = env('DEBUG', default=True)
DEVELOPMENT_MODE
=
env
(
'DEVELOPMENT_MODE'
,
default
=
True
)
DEVELOPMENT_MODE
=
env
(
'DEVELOPMENT_MODE'
,
default
=
True
)
ALLOWED_HOSTS
=
env
(
'ALLOWED_HOSTS'
,
default
=
[])
ALLOWED_HOSTS
=
env
(
'ALLOWED_HOSTS'
,
default
=
[])
print
(
'Allowed hosts:'
,
ALLOWED_HOSTS
)
# Application definition
# Application definition
...
@@ -57,6 +56,7 @@ INSTALLED_APPS = [
...
@@ -57,6 +56,7 @@ INSTALLED_APPS = [
MIDDLEWARE
=
[
MIDDLEWARE
=
[
'django.middleware.security.SecurityMiddleware'
,
'django.middleware.security.SecurityMiddleware'
,
'whitenoise.middleware.WhiteNoiseMiddleware'
,
'django.contrib.sessions.middleware.SessionMiddleware'
,
'django.contrib.sessions.middleware.SessionMiddleware'
,
'django.middleware.common.CommonMiddleware'
,
'django.middleware.common.CommonMiddleware'
,
'django.middleware.csrf.CsrfViewMiddleware'
,
'django.middleware.csrf.CsrfViewMiddleware'
,
...
@@ -151,6 +151,11 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
...
@@ -151,6 +151,11 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static/')
MEDIA_URL
=
'/media/'
MEDIA_URL
=
'/media/'
MEDIA_ROOT
=
os
.
path
.
join
(
BASE_DIR
,
'media/'
)
MEDIA_ROOT
=
os
.
path
.
join
(
BASE_DIR
,
'media/'
)
STORAGES
=
{
'staticfiles'
:
{
'BACKEND'
:
'whitenoise.storage.CompressedManifestStaticFilesStorage'
,
},
}
# Celery
# Celery
REDIS_URL
=
env
(
'REDIS_URL'
,
default
=
f
'redis://127.0.0.1:6379'
)
REDIS_URL
=
env
(
'REDIS_URL'
,
default
=
f
'redis://127.0.0.1:6379'
)
...
...
requirements.txt
View file @
5c86b708
...
@@ -17,16 +17,16 @@ click-repl==0.2.0
...
@@ -17,16 +17,16 @@ click-repl==0.2.0
decorator
==4.4.2
decorator
==4.4.2
Django
==4.1.7
Django
==4.1.7
django-celery-beat
==2.4.0
django-celery-beat
==2.4.0
django-debug-toolbar
==3.8.1
django-environ
==0.10.0
django-environ
==0.10.0
django-ffmpeg
==0.1.6
django-ffmpeg
==0.1.6
django-redis
==5.2.0
django-redis
==5.2.0
django-s3direct
==2.0.3
django-s3direct
==2.0.3
django-storages
==1.13.2
django-storages
==1.13.2
django-timezone-field
==5.0
django-timezone-field
==5.0
django_debug_toolbar
==3.8.1
djangorestframework
==3.14.0
djangorestframework
==3.14.0
environs
==9.5.0
environs
==9.5.0
ez
-
setup
==0.9
ez
_
setup
==0.9
gevent
==22.10.2
gevent
==22.10.2
google-api-core
==2.11.0
google-api-core
==2.11.0
google-api-python-client
==2.84.0
google-api-python-client
==2.84.0
...
@@ -75,5 +75,6 @@ urlparse3==1.1
...
@@ -75,5 +75,6 @@ urlparse3==1.1
vine
==5.0.0
vine
==5.0.0
wcwidth
==0.2.6
wcwidth
==0.2.6
whatever
==0.7
whatever
==0.7
whitenoise
==6.8.2
zope.event
==4.6
zope.event
==4.6
zope.interface
==5.5.2
zope.interface
==5.5.2
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