Submit templates for repl.it/templates here.

← Back to all posts
Flask Template
h
DillonB07

Flask Template

Starting a Flask App and setting up all of the files can be tedious! Use this template to get a basic boilerplate for your flask app!

Usage

Go to https://replit.com/@DillonB07/Flask-Template and Fork the repl!

Modifying

This template sets everything up for you! All you need to do is create your routes, templates and css, upload your images and run the repl!

License

This is licensed under the LGPL v3.0 by default. To modify this, go to https://choosealicense.com, choose a license, and replace the contents of LICENSE.txt. For open source, I recommend keeping LGPL v3.0.

  • Permissions
    • Commercial use
    • Distribution
    • Modification
    • Patent use
    • Private use
  • Conditions
    • Disclose source
    • License and copyright notice
    • Same license (library)
    • State changes
  • Limitations
    • Liability
    • Warranty

Learn more about GNU Lesser General Public License v3.0: https://choosealicense.com/licenses/lgpl-3.0/

Template created by DillonB07
Voters
nbash
VulcanWM
DillonB07
Comments
hotnewtop
nbash

Nice! Keep up the good work! :)

VulcanWM

this is nice!
i normally don't use blueprint for a flask app, what does that do?

DillonB07

@VulcanWM It let's you use routes in separate files. It's generally better, because all of your routes for one thing are in one place. For example, you would have all the authentication routes in an auth.py blueprint. And you can give each blueprint it's own url prefix like /blueprint and then an @blueprint.route('/') refers to domain.tld/blueprint. Saves you typing /blueprint on each route.

Flask documentation - https://flask.palletsprojects.com/en/2.0.x/blueprints/

VulcanWM

ah makes sense ty! @DillonB07