Added Flask-Demo and Flask AppBuilder tutorial
This commit is contained in:
23
fab/config.py
Normal file
23
fab/config.py
Normal file
@@ -0,0 +1,23 @@
|
||||
"""Configure application settings such as the database URI, secret key, etc."""
|
||||
|
||||
import socket
|
||||
|
||||
# Determine whether connecting from on/off campus
|
||||
try:
|
||||
socket.gethostbyname("data.cs.jmu.edu")
|
||||
HOST = "data.cs.jmu.edu"
|
||||
except socket.gaierror:
|
||||
HOST = "localhost"
|
||||
|
||||
|
||||
# See https://flask-appbuilder.readthedocs.io/en/latest/config.html
|
||||
|
||||
SQLALCHEMY_DATABASE_URI = "postgresql+psycopg://tamassno:113880616@localhost/sec2"
|
||||
|
||||
SECRET_KEY = "c46096d07cfae2ef311332eb98bc8336acaacf162427122b285ceb388a1cade1"
|
||||
|
||||
AUTH_TYPE = 1 # Database style (user/password)
|
||||
|
||||
APP_NAME = "Conference Review System"
|
||||
|
||||
APP_THEME = "readable.css"
|
||||
Reference in New Issue
Block a user