Skip to content

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

Notifications You must be signed in to change notification settings

higs4281/django-bakery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

                   
                # # # # #
              __#_#_#_#_#__
             {_` ` ` ` ` `_}
            _{_._._._._._._}_
           {_  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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published