A set of helpers for baking your Django site out as flat files
Pull request Compare This branch is 548 commits behind datadesk:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bakery
.gitignore
AUTHORS.textile
README.textile
setup.py

README.textile

                   
                # # # # #
              __#_#_#_#_#__
             {_` ` ` ` ` `_}
            _{_._._._._._._}_
           {_  D J A N G O  _}
          _{_._._._._._._._._}_
         {_    B A K E R Y    _}
     .---{_._._._._._._._._._._}---.
    (   `"""""""""""""""""""""""`   )
     `~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`

A set of helpers for baking your Django site out as flat files

Features

  • Models, views and management commands to will build your site as flat files.
  • Management commands to sync your flat files with a bucket on Amazon S3.

Getting started

Simply install bakery, create models using the BuildableModel class, and write your views using the BuildableDetailView class. Edit your settings.py, and add those views to your BAKERY_VIEWS setting as a list of strings, eg [‘example.views.AlbumDetailView’,].

Now on the command line, run python manage.py build. Your views should bake into a build folder as flat pages. Optionally, you can publish these files to S3 for cheap hosting.

For an example app written using bakery, check out the example branch: https://github.com/datadesk/django-bakery/tree/example

Documentation

Credits

ASCII art by Joan Stark