material system for AU website.separated from AUN
- work with AUN(run.py)
from werkzeug.wsgi import DispatcherMiddleware
from werkzeug.serving import run_simple
from aun import aun_app
from material import app as material
application = DispatcherMiddleware(aun_app, {
'/material': material
})
run_simple('localhost', 5000, application, use_reloader=True) #or you can use apache through mod_wsgi
- database init
- python manage.py db init
- python manage.py db migrate
- python manage.py db upgrade
- create super user
- python manage.py create_super_role
- python manage.py create_super_user -n name -p password -e email