mirror of
https://github.com/rjNemo/villafleurie
synced 2026-06-06 02:16:47 +00:00
requirements changed again
This commit is contained in:
parent
b8a388f512
commit
0c6a4e3595
3 changed files with 20 additions and 8 deletions
14
Dockerfile
14
Dockerfile
|
|
@ -0,0 +1,14 @@
|
|||
FROM python:3.7
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends \
|
||||
postgresql-client \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
COPY requirements.txt ./
|
||||
RUN pip install -r requirements.txt
|
||||
COPY . .
|
||||
|
||||
EXPOSE 8000
|
||||
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
|
||||
|
|
@ -1,8 +1,9 @@
|
|||
dj-database-url==0.5.0
|
||||
Django==2.2.6
|
||||
django-debug-toolbar==2.0
|
||||
gunicorn==19.9.0
|
||||
Django==2.2.7
|
||||
django-phonenumber-field==3.0.1
|
||||
gunicorn==20.0.4
|
||||
phonenumbers==8.11.0
|
||||
psycopg2==2.8.4
|
||||
pytz==2019.3
|
||||
sqlparse==0.3.0
|
||||
whitenoise==4.1.4
|
||||
whitenoise==4.1.4
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import os
|
|||
|
||||
BASE_DIR = os.path.dirname(os.path.dirname(__file__))
|
||||
|
||||
SECRET_KEY = 'q00_4wqdc^n=7)p2lm)!gy&fms8md_b4#1aqysllvqq==2c9!$'
|
||||
# SECRET_KEY = 'q00_4wqdc^n=7)p2lm)!gy&fms8md_b4#1aqysllvqq==2c9!$'
|
||||
|
||||
if os.environ.get('ENV') == 'PRODUCTION':
|
||||
DEBUG = False
|
||||
|
|
@ -38,9 +38,6 @@ MIDDLEWARE = [
|
|||
]
|
||||
|
||||
if os.environ.get('ENV') == 'PRODUCTION':
|
||||
# ...
|
||||
# Simplified static file serving.
|
||||
# https://warehouse.python.org/project/whitenoise/
|
||||
STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
|
||||
|
||||
INTERNAL_IPS = ['127.0.0.1']
|
||||
|
|
|
|||
Loading…
Reference in a new issue