-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
65da5ae
commit e196f89
Showing
11 changed files
with
51 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# *-* coding: utf-8 *-* | ||
|
||
import os | ||
basedir = os.path.abspath(os.path.dirname(__file__)) | ||
|
||
CSRF_ENABLED = True | ||
SECRET_KEY = '\x93\xb9\x80\xba\xba\t\xc0\xf8\xbc\x1d\x9c+g\x10\xc3\xb3\xefx\xaf\xa0.B\xbc@\x0b\xc4\xc32\xe9\xd1k' | ||
|
Binary file not shown.
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,19 @@ | ||
# *-* coding: utf-8 *-* | ||
# Set the path | ||
import os, sys | ||
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) | ||
|
||
from flask.ext.script import Manager, Server | ||
from core import app | ||
|
||
manager = Manager(app) | ||
|
||
# Turn on debugger by default and reloader | ||
manager.add_command("runserver", Server( | ||
use_debugger = True, | ||
use_reloader = True, | ||
host = '0.0.0.0') | ||
) | ||
|
||
if __name__ == "__main__": | ||
manager.run() |
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,11 @@ | ||
# *-* coding: utf-8 *-* | ||
from flask import Flask, render_template, abort, Response, url_for, Blueprint | ||
from imports import * | ||
|
||
app = Flask(__name__) | ||
app.config.from_object('config') | ||
|
||
#app.register_blueprint(cpu) | ||
from blue_register import * | ||
|
||
import core.views |
Binary file not shown.
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,5 @@ | ||
from core import app | ||
from imports import * | ||
|
||
app.register_blueprint(cpu) | ||
app.register_blueprint(net) |
Binary file not shown.
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,2 @@ | ||
from cpus import cpu | ||
from nets import net |
Binary file not shown.
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,6 @@ | ||
# *-* coding: utf-8 *-* | ||
from core import app | ||
|
||
@app.route('/') | ||
def index(): | ||
return 'Index' |
Binary file not shown.