ozanonurtek / flask-now Goto Github PK
View Code? Open in Web Editor NEWFlask-Now is a Flask Application Generator/Build-Tool runs via CLI
License: BSD 3-Clause "New" or "Revised" License
Flask-Now is a Flask Application Generator/Build-Tool runs via CLI
License: BSD 3-Clause "New" or "Revised" License
What's better than a good old flask reference anyway
Flask Up! ๐ป
I was unable to create the flask initial project with MVC architecture in python 2.7 environment. Below is the stack trace for the same. The library is working fine with simple mode.
(venv) โ mastering-flask flask-now -mvc
Creating extensionless flask app with mvc architecture pattern.
Installing requirements...
Freezing requirements...
Traceback (most recent call last):
File "/usr/local/bin/flask-now", line 10, in
sys.exit(main())
File "/usr/local/lib/python2.7/site-packages/flask_now/now.py", line 12, in main
build()
File "/usr/local/lib/python2.7/site-packages/flask_now/now.py", line 9, in build
architect.build()
File "/usr/local/lib/python2.7/site-packages/flask_now/architect.py", line 109, in build
self.__identify()
File "/usr/local/lib/python2.7/site-packages/flask_now/architect.py", line 14, in __identify
self.__create_mvc_architecture()
File "/usr/local/lib/python2.7/site-packages/flask_now/architect.py", line 20, in __create_mvc_architecture
self.__create_mvc_app()
File "/usr/local/lib/python2.7/site-packages/flask_now/architect.py", line 44, in __create_mvc_app
self.__create_config_file(filename="project/config.py")
File "/usr/local/lib/python2.7/site-packages/flask_now/architect.py", line 30, in __create_config_file
os.makedirs(os.path.dirname(filename), exist_ok=True)
TypeError: makedirs() got an unexpected keyword argument 'exist_ok'
There are different conventions for virtual environments.
Like creating all the virtual environments on a folder ( "~/virtualenvs/" ),
or naming the virtual environment with a leading dot ( ".../project/path/.venv" ),
right now the virtual environment is created inside the project folder with a default name "venv"
I follow the How to use instructions and a get this error:
(venv) afiloso@r518u:~/devs/flask-now-example$ flask-now -mvc
Creating extensionless flask app with mvc architecture pattern.
Installing requirements...
Freezing requirements...
Traceback (most recent call last):
File "/home/afiloso/.local/bin/flask-now", line 11, in <module>
sys.exit(main())
File "/home/afiloso/.local/lib/python2.7/site-packages/flask_now/now.py", line 12, in main
build()
File "/home/afiloso/.local/lib/python2.7/site-packages/flask_now/now.py", line 9, in build
architect.build()
File "/home/afiloso/.local/lib/python2.7/site-packages/flask_now/architect.py", line 109, in build
self.__identify()
File "/home/afiloso/.local/lib/python2.7/site-packages/flask_now/architect.py", line 14, in __identify
self.__create_mvc_architecture()
File "/home/afiloso/.local/lib/python2.7/site-packages/flask_now/architect.py", line 20, in __create_mvc_architecture
self.__create_mvc_app()
File "/home/afiloso/.local/lib/python2.7/site-packages/flask_now/architect.py", line 44, in __create_mvc_app
self.__create_config_file(filename="project/config.py")
File "/home/afiloso/.local/lib/python2.7/site-packages/flask_now/architect.py", line 30, in __create_config_file
os.makedirs(os.path.dirname(filename), exist_ok=True)
TypeError: makedirs() got an unexpected keyword argument 'exist_ok'
(venv) afiloso@r518u:~/devs/flask-now-example$
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.