mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-07-30 01:03:44 +00:00
Refactoring the code
- Use Flask blueprint - Split model and views into smaller parts - Bug fixes - API adjustment
This commit is contained in:
7
run.py
7
run.py
@@ -1,7 +1,6 @@
|
||||
#!/usr/bin/env python3
|
||||
from app import app
|
||||
from config import PORT
|
||||
from config import BIND_ADDRESS
|
||||
from powerdnsadmin import create_app
|
||||
|
||||
if __name__ == '__main__':
|
||||
app.run(debug = True, host=BIND_ADDRESS, port=PORT)
|
||||
app = create_app()
|
||||
app.run(debug = True, host=app.config.get('BIND_ADDRESS', '127.0.0.1'), port=app.config.get('PORT', '9191'))
|
||||
|
Reference in New Issue
Block a user