Skip to content

Instantly share code, notes, and snippets.

View sdiepend's full-sized avatar

Stijn Diependaele sdiepend

View GitHub Profile
@sdiepend
sdiepend / draftissue.py
Created June 13, 2024 07:32
Create a draftissue in Github Projects
import requests
query_draftissue = f'''
mutation {{
addProjectV2DraftIssue(input: {{ projectId: "{gh_project_id}" title: "{title}" body: "{body}" }}) {{
projectItem {{
id
}}
}}
}}
@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)
# 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.