Skip to content

Instantly share code, notes, and snippets.

@jarvys
Forked from crackcell/app.conf
Last active August 29, 2015 14:07
Show Gist options
  • Save jarvys/9b1780f63d5e657131bf to your computer and use it in GitHub Desktop.
Save jarvys/9b1780f63d5e657131bf to your computer and use it in GitHub Desktop.
handlers:
- url: /static/(.*)
static_files: templates/static/$1
- url : /.*
script: app.py
#!/usr/bin/env python
# -*- encoding: utf-8; indent-tabs-mode: nil -*-
#
# Copyright 2013 Menglong TAN <tanmenglong@gmail.com>
#
import os
from flask import Flask, g, request, config, session, render_template
# set static file path
app = Flask(__name__,
static_folder=os.path.join(os.path.dirname(__file__),
"templates/static"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment