This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
query_draftissue = f''' | |
mutation {{ | |
addProjectV2DraftIssue(input: {{ projectId: "{gh_project_id}" title: "{title}" body: "{body}" }}) {{ | |
projectItem {{ | |
id | |
}} | |
}} | |
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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. |