This repository has been archived by the owner on May 2, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
130 additions
and
37 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/python | ||
# coding: utf-8 | ||
|
||
import argparse | ||
import os | ||
|
||
os.environ["HEROKU_SHARED_POSTGRESQL_ORANGE_URL"] = "sqlite:///../db.sqlite" | ||
os.environ["SECRET_KEY"] = "development server not so secret key" | ||
|
||
port = int( os.environ.get( "PORT", "5000" ) ) | ||
|
||
parser = argparse.ArgumentParser( description = "HouseRule Development Server" ) | ||
parser.add_argument( "--initdb", action="store_true", help="Create initial database" ) | ||
parser.add_argument( "--debug", action="store_true", help="Start with debugging and reloading" ) | ||
args = parser.parse_args() | ||
|
||
from houserule import app, db | ||
|
||
if args.initdb: | ||
db.create_all() | ||
|
||
app.run( "0.0.0.0", port, debug=args.debug ) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% extends "layout.html" %} | ||
{% from "_formhelpers.html" import render_field %} | ||
|
||
{% block body %} | ||
<form method="POST" action="{{ url_for( "bggtest" ) }}"> | ||
{{ form.hidden_tag() }} | ||
{{ form.submit }} | ||
</form> | ||
|
||
{% endblock %} |
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