Giter Club home page Giter Club logo

flask_assets_tutorial's Introduction

taken from here with some miscellaneous bug fixes:

http://maximebf.com/blog/2012/10/building-websites-in-python-with-flask/

The full list of packages I installed in the virtualenv used during this tutorial are as follows:

Flask==0.9
Flask-Assets==0.8
Flask-SQLAlchemy==0.16
Flask-Script==0.5.1
Jinja2==2.6
SQLAlchemy==0.8.0b2
Werkzeug==0.8.3
closure==20120305
cssmin==0.1.4
webassets==0.8
wsgiref==0.1.2

you'll need the cssmin and closure python packages if you want to play with Flask-Assets (these packages will not automatically be picked up as dependencies)

pip install Flask Flask-Assets SQLAlchemy Flask-SQLAlchemy Flask-Script
pip install cssmin
pip install closure

Note you'll also need to install the less compiler (lessc) if you haven't already

-g flag below will install in a globally available path

sudo npm install less -g

or you could probably stick a symlink in your virtualenv's bin directory maybe(?)

To use Flask-Assets from the manage.py script:

./manage.py assets build

To run the included webserver using the development environment (which uses sqlite and asset debugging):

EXAMPLE_ENV='dev' ./manage.py runserver

flask_assets_tutorial's People

Contributors

jbarratt avatar trtg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.