alectrocute / flasksaas Goto Github PK
View Code? Open in Web Editor NEWA great starting point to build your SaaS in Flask & Python, with Stripe subscription billing ๐
License: MIT License
A great starting point to build your SaaS in Flask & Python, with Stripe subscription billing ๐
License: MIT License
#There are some indentation errors + mixed tabs and spaces in the app vies #17
When running:
python manage.py runserver
this error. PLEASE HELP.
Hello, I am trying to build the project on Ubuntu 18.04 and I am getting an error when trying to launch the server with the command python manage.py runserver
. The project was built successfully and I am using Python 3 with conda and a virtual environment. The full error I get is the following:
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
Traceback (most recent call last):
File "manage.py", line 33, in <module>
manager.run()
File "/home/username/miniconda3/envs/myenv/lib/python3.7/site-packages/flask_script/__init__.py", line 412, in run
result = self.handle(sys.argv[0], sys.argv[1:])
File "/home/username/miniconda3/envs/myenv/lib/python3.7/site-packages/flask_script/__init__.py", line 383, in handle
res = handle(*args, **config)
File "/home/username/miniconda3/envs/myenv/lib/python3.7/site-packages/flask_script/commands.py", line 425, in __call__
**self.server_options)
File "/home/username/miniconda3/envs/myenv/lib/python3.7/site-packages/flask/app.py", line 772, in run
run_simple(host, port, self, **options)
File "/home/username/miniconda3/envs/myenv/lib/python3.7/site-packages/werkzeug/serving.py", line 988, in run_simple
run_with_reloader(inner, extra_files, reloader_interval, reloader_type)
File "/home/username/miniconda3/envs/myenv/lib/python3.7/site-packages/werkzeug/_reloader.py", line 332, in run_with_reloader
sys.exit(reloader.restart_with_reloader())
File "/home/username/miniconda3/envs/myenv/lib/python3.7/site-packages/werkzeug/_reloader.py", line 176, in restart_with_reloader
exit_code = subprocess.call(args, env=new_environ, close_fds=False)
File "/home/username/miniconda3/envs/myenv/lib/python3.7/subprocess.py", line 323, in call
with Popen(*popenargs, **kwargs) as p:
File "/home/username/miniconda3/envs/myenv/lib/python3.7/subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "/home/username/miniconda3/envs/myenv/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
Do you have any idaa of what could be wrong?
Hello,
I am comming from Siraj's video. I would like to get this running, but I am on windows.. What would be the steps equivalant to the "make install && make dev" on windows ?
Thanks
Do you guys have this problem? I have python 3, and should I run the program on python 2?
C:\Users\ying\Downloads\flaskSaaS-master\flaskSaaS-master>python manage.py initdb
Traceback (most recent call last):
File "manage.py", line 33, in
manager.run()
File "C:\Users\ying\AppData\Roaming\Python\Python35\site-packages\flask_script_init_.py", line 412, in run
result = self.handle(sys.argv[0], sys.argv[1:])
File "C:\Users\ying\AppData\Roaming\Python\Python35\site-packages\flask_script_init_.py", line 383, in handle
res = handle(*args, **config)
File "C:\Users\ying\AppData\Roaming\Python\Python35\site-packages\flask_script\commands.py", line 215, in call
with app.test_request_context():
File "C:\Users\ying\AppData\Roaming\Python\Python35\site-packages\flask\app.py", line 1780, in test_request_context
from flask.testing import make_test_environ_builder
File "C:\ProgramData\Anaconda3\lib\site-packages\flask\testing.py", line 17, in
from flask.cli import ScriptInfo
File "C:\ProgramData\Anaconda3\lib\site-packages\flask\cli.py", line 29, in
from ._compat import getargspec, iteritems, reraise, text_type
ImportError: cannot import name 'getargspec'
C:\Users\ying\Downloads\flaskSaaS-master\flaskSaaS-master>python --version
Python 3.5.6 :: Anaconda, Inc.
After runserver:
$ python manage.py runserver
File "F:\python3.7\lib\site-packages\flask_debugtoolbar\panels\versions.py", line 12, in relpath
relative = os.path.relpath(location, python_lib)
File "F:\python3.7\lib\ntpath.py", line 564, in relpath
path_drive, start_drive))
ValueError: path is on mount 'c:', start on mount 'F:'
failed with error code 1 in /tmp/pip-install-wye5s2cp/cffi/
You need python3-cffi...
sudo apt-get install python3-cffi
Then the installation completes.
Next battle appears to be
ImportError: No module named flask.ext.script
And FYI, here from Siraj! Thanks for posting this repository!
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.