Browse Source

remove venv

master
parent
commit
50d206e10b
  1. 2
      .gitignore
  2. 0
      config/__init__.py
  3. 1
      config/settings.py
  4. 8
      guestwifi/__init__.py
  5. 0
      guestwifi/views/__init__.py
  6. 13
      guestwifi/views/frontend.py
  7. 3
      run.py

2
.gitignore

@ -57,4 +57,4 @@ docs/_build/
# PyBuilder
target/
venv/

0
config/__init__.py

1
config/settings.py

@ -0,0 +1 @@
DEBUG=True

8
guestwifi/__init__.py

@ -0,0 +1,8 @@
from flask import Flask
from guestwifi.views import frontend
app = Flask(__name__)
app.config.from_object('config.settings')
app.register_blueprint(frontend.page)

0
guestwifi/views/__init__.py

13
guestwifi/views/frontend.py

@ -0,0 +1,13 @@
from flask import Blueprint, request, json
#from dicttoxml import dicttoxml
from flask import render_template
page = Blueprint('frontend', __name__)
@page.route('/enable')
def enable_wifi():
return "test"
@page.route('/disable')
def disable_wifi():
return "test"

3
run.py

@ -0,0 +1,3 @@
from guestwifi import app
app.run()
Loading…
Cancel
Save