Estructura de un proyecto

De WikiEducator
Saltar a: navegación, buscar



Icon activity.jpg

Estructura de un proyecto

manage.py
requirements.txt
sched/
  app.py
  config.py
  filters.py
  forms.py
  __init__.py
  models.py
  static/
  templates/





manage.py

Icon present.gif
Tip: Requiere Flask-Script
 pip install flask-script


from flask.ext.script import Manager
from sched.app import app
 
manager = Manager(app)
app.config['DEBUG'] = True # Ensure debugger will load.
 
if __name__ == '__main__':
    manager.run()
 $ python manage.py runserver –t 0.0.0.0 –p 8080