jackstouffer / flask-foundation Goto Github PK
View Code? Open in Web Editor NEWA solid foundation for your flask app
Home Page: https://jackstouffer.com/flask-foundation/
License: Other
A solid foundation for your flask app
Home Page: https://jackstouffer.com/flask-foundation/
License: Other
Thanks for a great template.
modernizr lib isn't actually included in your repo but the pages reference it. From what I understand you have to go to the modernizr website and build it for the features you need to check for. Is there a reason it's referenced but nothing is in static/js/vendor
?
This may be the wrong forum for this report, but the docs this repo links to force-redirect to HTTPS with an expired Lets Encrypt cert. Chrome gives very scary warnings about your website.
Can you give any recommendation for the best way to integrate Flask-SocketIO into the Flask-Foundation structure?
In manage.py, I added socketio = SocketIO(app)
, then I created a new Flask-Script command to run socketio.run(app)
instead of the built-in debug server.
However, now I'm unsure how to import/access socketio
from another file so that I can use @socketio.on('message')
and socketio.start_background_task()
. Is there a better place than manage.py for me to create socketio = SocketIO(app)
?
From a fresh clone:
$ ./manage.py
Traceback (most recent call last):
File "./manage.py", line 13, in <module>
app = create_app('appname.settings.%sConfig' % env.capitalize(), env=env)
TypeError: create_app() got an unexpected keyword argument 'env'
So I'm trying to load some example templates using foundation docs for my Python flask app and noticed that it wasn't looking the same.
Then found that it looks like I'm missing any SCSS in the installed module which from my understanding is what foundation is built on.
One example is that callouts just render with the text with no border or other styling as exampled in the docs.
Am I meant to import this another way, or is there something else I'm missing with this one?
I can provide more info or pictures if needed.
Thanks.
I have used Flask-Foundation. I would like to create a production server. I searched for a tutorial but I found tutorials for simple Flask apps that don't use the Flask-Script extension. Do you know of any tutorial that I can follow?
I love the layout of this boilerplate, is there away to switch from SQL Alchemy to MongoDb?
I am looking for flask skeleton that could accelerate the development of flask webpage or webapp. There are two candidate, one is Flask-Foundation, the other is overholt. Both of them use flask-assets for assets bundle. But I think that the frontend tasks should be done with frontend toolchains. So I think that flask-assets should be removed and add npm package.json which contains gulp/webpack or something else.
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.