Admin interface for snippets
This commit is contained in:
parent
45df60cfc6
commit
53ce827b17
15 changed files with 214 additions and 83 deletions
|
|
@ -1,4 +1,5 @@
|
|||
from flask import Flask, session, g, render_template
|
||||
from flaskext.openid import OpenID
|
||||
|
||||
import websiteconfig as config
|
||||
|
||||
|
|
@ -6,6 +7,9 @@ app = Flask(__name__)
|
|||
app.debug = config.DEBUG
|
||||
app.secret_key = config.SECRET_KEY
|
||||
|
||||
from flask_website.openid_auth import DatabaseOpenIDStore
|
||||
oid = OpenID(store_factory=DatabaseOpenIDStore)
|
||||
|
||||
@app.errorhandler(404)
|
||||
def not_found(error):
|
||||
return render_template('404.html'), 404
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue