Commit d3ade15c authored by Aatish Neupane's avatar Aatish Neupane

add python decouple

parent 730b02f6
DEBUG=True
ALLOWED_HOSTS=.localhost, .ipv6.work
docker build -t ipv6dotwork .
docker run -d -p 8000:8000 --name ipv6dotwork ipv6dotwork
docker run -d -p 127.0.0.1:8001:8000 --name ipv6dotwork ipv6dotwork
......@@ -11,6 +11,7 @@ https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
from decouple import config, Csv
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
......@@ -23,10 +24,9 @@ BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = '+0t^onasc-b+_ry$!6@hpf4o79rw6m%q7dow5#ia+@nla&2@0-'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
ALLOWED_HOSTS = []
DEBUG = config('DEBUG', cast=bool, default=False)
ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=Csv(), default="*")
# Application definition
......
......@@ -2,3 +2,4 @@ Django==2.1.2
django-crispy-forms==1.7.2
git+https://github.com/yourlabs/django-autocomplete-light.git#egg=django-autocomplete-light
rules==2.0
python-decouple==3.1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment