esbullington / flask-bootstrap Goto Github PK
View Code? Open in Web Editor NEWA Flask app template with integrated SQLAlchemy, authentication, and Bootstrap frontend
License: Other
A Flask app template with integrated SQLAlchemy, authentication, and Bootstrap frontend
License: Other
When I try to run createdb, I get the following error:
(venv)/Users/joe/projects/flask-bootstrap (development) $ python manage.py createdb
Traceback (most recent call last):
File "manage.py", line 5, in <module>
from app.database import db
File "/Users/joe/projects/flask-bootstrap/app/__init__.py", line 7, in <module>
from app.login import login_manager, login_view, logout_view, user_create
File "/Users/joe/projects/flask-bootstrap/app/login.py", line 5, in <module>
from app.models.user import User, ROLE_USER, ROLE_ADMIN
File "/Users/joe/projects/flask-bootstrap/app/models/__init__.py", line 1, in <module>
from user import User
ImportError: No module named 'user'
I followed the instructions step by step and I can't seem to get past this point.
hi! is this project abandoned?
txs!
I input python run.py in pychram ,it Prompt error like this
(venv) C:\Users\Ming\Downloads\flask-bootstrap-master>python run.py C:\Users\Ming\Downloads\flask-bootstrap-master\app\__init__.py:3: ExtDeprecationWarning: Importing flask.ext.sqlalchemy is deprecated, use flask_sqlalchemy instead. from flask.ext.sqlalchemy import SQLAlchemy C:\Users\Ming\Downloads\flask-bootstrap-master\app\__init__.py:4: ExtDeprecationWarning: Importing flask.ext.login is deprecated, use flask_login instead. from flask.ext.login import LoginManager, current_user C:\Users\Ming\Downloads\flask-bootstrap-master\app\__init__.py:5: ExtDeprecationWarning: Importing flask.ext.assets is deprecated, use flask_assets instead. from flask.ext.assets import Environment, Bundle C:\Users\Ming\Downloads\flask-bootstrap-master\app\database.py:3: ExtDeprecationWarning: Importing flask.ext.bcrypt is deprecated, use flask_bcrypt instead. from flask.ext.bcrypt import Bcrypt C:\Users\Ming\Downloads\flask-bootstrap-master\app\mod_users\controllers.py:15: FlaskWTFDeprecationWarning: "flask_wtf.CsrfProtect" has been renamed to "CSRFProtect" and will be removed in 1.0. csrf = CsrfProtect() Traceback (most recent call last): File "run.py", line 5, in <module> app = create_app() File "C:\Users\Ming\Downloads\flask-bootstrap-master\app\__init__.py", line 21, in create_app config = os.path.join(app.root_path, os.environ.get('FLASK_APPLICATION_SETTINGS')) File "C:\Users\Ming\Downloads\flask-bootstrap-master\venv\lib\ntpath.py", line 67, in join p_drive, p_path = splitdrive(p) File "C:\Users\Ming\Downloads\flask-bootstrap-master\venv\lib\ntpath.py", line 115, in splitdrive if len(p) > 1: TypeError: object of type 'NoneType' has no len()
In my limited in Python I can fix it , please help or try to give some ideas how to achieve this
On Ubuntu 14.04 LXDE, getting this error when running pip install -r config/requirements.txt: Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-EwQkuR/psycopg2.
What could be the issue?
Are there any objections if I change the license from Apache to 3-clause BSD? I actually prefer the MIT or Apache, but on retrospect I'd like for the project license to match Flask's license so that folks don't have to deal with more licenses that necessary for a single project.
In the words of the Flask license information page, the 3-clause BSD license basically means: "do whatever you want with it as long as the copyright in Flask sticks around, the conditions are not modified and the disclaimer is present. Furthermore you must not use the names of the authors to promote derivatives of the software without written consent".
So you're free to use this skeleton for closed-source proprietary projects under both Apache and BSD, as long as you keep the copyright.
Note that the 3-clause BSD is FSF-compatible, as well as OSD-compliant.
Any existing code that's already been used for a project would of course remain Apache-licensed. The BSD license would only apply to new projects.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.