Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.34 KB

README.textile

File metadata and controls

34 lines (23 loc) · 1.34 KB
                   
                # # # # #
              __#_#_#_#_#__
             {_` ` ` ` ` `_}
            _{_._._._._._._}_
           {_  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