Permalink
Browse files

apparently i did something…

  • Loading branch information...
francois
francois committed Nov 18, 2016
1 parent 0661b8e commit fa357003f66262e51f144ab5a2771764ea16428a
Showing with 15 additions and 4 deletions.
  1. +2 −1 .gitignore
  2. +6 −3 helpmepyz/helpmepyz/settings.py
  3. +4 −0 helpmepyz/manage.py
  4. +3 −0 helpmepyz/requirements.txt
@@ -2,4 +2,5 @@ env
*.DS_Store
*.pyc
__pycache__

.env
.idea
@@ -11,6 +11,7 @@
"""

import os
from dotenv import parse_dotenv

# 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,7 +24,7 @@
SECRET_KEY = 'g%=0c6z%-#0k6$ty3+1ykb2trz#dzo(f6x7)bg3@3o(dr%sbnm'

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DEBUG = parse_dotenv('APP_DEBUG')

ALLOWED_HOSTS = []

@@ -75,8 +76,10 @@

DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
'ENGINE': parse_dotenv('DB_CONNECTION'),
'NAME': parse_dotenv('DB_DATABASE'),
'USER': parse_dotenv('DB_USER'),
'PASSWORD': parse_dotenv('DB_PASSWORD'),
}
}

@@ -1,8 +1,12 @@
#!/usr/bin/env python
import os
import sys
import dotenv



if __name__ == "__main__":
dotenv.read_dotenv()
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "helpmepyz.settings")
try:
from django.core.management import execute_from_command_line
@@ -0,0 +1,3 @@
Django==1.10.3
django-dotenv==1.4.1
mysqlclient==1.3.9

0 comments on commit fa35700

Please sign in to comment.