1. Esteban Feldman
  2. flask-skel

Commits

Esteban Feldman  committed 7c591b0

Simplified things, removed no needed dependencies for a quickstarter

  • Participants
  • Parent commits c312bca
  • Branches default

Comments (0)

Files changed (3)

File flaskskel/templates/default_project/+flask_project_name+/__init__.py_tmpl

View file
  • Ignore whitespace
 from flask import Flask
-from flaskext.mongoengine import MongoEngine
 from blueprints import register_blue_prints
 
 def create_app():
     # create app
     app = Flask(__name__)
     app.config.from_object('{{ flask_project_name }}.config')
-    db = MongoEngine(app)
     # import views
     # views are handled at blueprint level
     # blueprints

File flaskskel/templates/default_project/+flask_project_name+/config.py_tmpl

View file
  • Ignore whitespace
 HOST = '0.0.0.0'
 SECRET_KEY = '{{ secret_key }}'
 
-MONGODB_DB = 'dbname'
-MONGODB_HOST = 'hostname'
-MONGODB_PORT = 27017
+# MONGODB_DB = 'dbname'
+# MONGODB_HOST = 'hostname'
+# MONGODB_PORT = 27017
 
 try:
     from local_config import *

File flaskskel/templates/default_project/requirements.txt

View file
  • Ignore whitespace
 Flask
-Beaker
-Flask-DebugToolbar
-Flask-Login
 Flask-Testing
 Flask-WTF
 ipython
 ipdb
-tweepy
-https://github.com/eka/flask-mongoengine/tarball/master
--e git+http://github.com/facebook/python-sdk.git#egg=facebook-sdk
 http://bitbucket.org/eka/flask-script/get/tip.gz