Skip to content

Instantly share code, notes, and snippets.

Avatar

Stijn Diependaele sdiepend

View GitHub Profile
@sdiepend
sdiepend / __init__.py
Last active December 21, 2016 14:06
example init
View __init__.py
from flask import Flask
from config import Config
from extensions import db
def create_app():
app = Flask(__name__)
app.config.from_object(Config)
db.init_app(app)
View lwc django 1.8
# LECTURE 19 - 1.8 UPDATED
# Django 1.6 & 1.7
# https://docs.djangoproject.com/en/1.6/ref/templates/api/#the-template-dirs-setting
# https://docs.djangoproject.com/en/1.7/ref/templates/api/#the-template-dirs-setting
#
# TEMPLATE_DIRS = (
# os.path.join(BASE_DIR, 'templates'),
# )
#
# Django 1.8 has a different way of defining template locations.