Permalink
Browse files

bifurcation

  • Loading branch information...
francois
francois committed Nov 29, 2016
1 parent fa35700 commit 78540e61081b5395b9402fb5c9884966d636511e
@@ -11,22 +11,20 @@
"""
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__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/1.10/howto/deployment/checklist/
# SECURITY WARNING: keep the secret key used in production secret!
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 = parse_dotenv('APP_DEBUG')
DEBUG = True
ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']
# Application definition
@@ -38,6 +36,8 @@
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'home',
]
MIDDLEWARE = [
@@ -76,10 +76,10 @@
DATABASES = {
'default': {
'ENGINE': parse_dotenv('DB_CONNECTION'),
'NAME': parse_dotenv('DB_DATABASE'),
'USER': parse_dotenv('DB_USER'),
'PASSWORD': parse_dotenv('DB_PASSWORD'),
'ENGINE': os.getenv('DBCONNECTION'),
'NAME': os.getenv('DBDATABASE'),
'USER': os.getenv('DBUSERNAME'),
'PASSWORD': os.getenv('DBPASSWORD'),
}
}
@@ -15,7 +15,9 @@
"""
from django.conf.urls import url
from django.contrib import admin
from home import views
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^$', views.index)
]
No changes.
@@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.
@@ -0,0 +1,5 @@
from django.apps import AppConfig
class HomeConfig(AppConfig):
name = 'home'
@@ -0,0 +1,3 @@
from django.db import models
# Create your models here.
@@ -0,0 +1,5 @@
{% extends 'layout.html' %}
{% block content %}
<p>Hello world</p>
{% endblock content %}
@@ -0,0 +1,14 @@
{% load staticfiles %}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<title>Coucou</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="{% static 'css/blog.css' %}">
</head>
<body>
{% block content %}{% endblock %}
</body>
</html>
@@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.
@@ -0,0 +1,7 @@
from django.shortcuts import render
# Create your views here.
def index(request):
context = {}
return render(request, 'home/index.html', context)
@@ -3,8 +3,6 @@
import sys
import dotenv
if __name__ == "__main__":
dotenv.read_dotenv()
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "helpmepyz.settings")

0 comments on commit 78540e6

Please sign in to comment.