Skip to content

Instantly share code, notes, and snippets.

View sdiepend's full-sized avatar

Stijn Diependaele sdiepend

View GitHub Profile
# 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.
@sdiepend
sdiepend / __init__.py
Last active December 21, 2016 14:06
example init
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)