/beautiful-bottle

Bottle web application skeleton website which I'm sure you'll agree looks rather beautiful.

Primary LanguageCSSMIT LicenseMIT

Beautiful Bottle Skeleton

Screenshot of homepage

  • Very BASIC skeleton, no external python libraries required than 'bottle'
  • Does not impose on or force you to develop your app in any particular way
  • Example includes basic CSS, HTML boilerplate code, including Google Analytics Tracking

Why?

Because there aren't enough Bottle skeleton web applications already in existence that look beautiful.

If you want a starting-point for your own experiments in making websites in Python, this isn't the worst place that you could start. It was the starting point for the development of my Beautifully Simple Static Bottle Blog Generator.

Check the TODO.md or ROADMAP.md to see what's left to do and if you make some CHANGES.md I'll be sure to add you to the CREDITS.md and humans.txt files.

Easy Setup

  • pip install -r requirements.txt
  • Copy config file: cp config.py.example config.py - this is done automatically the first time app.py is run if the config.py file does not exist
  • Edit config.py as needed
  • Edit the page template in views/index.tpl

Running

  • python app.py
  • Browse to localhost:8080

config.py explained

CONFIG = {
    'debug': False,                  # debug mode
    'ga_code': 'UA-00000000-1',      # google analytics code UA-XXXX-Y
    'title': 'Welcome',              # name of the site
    'author': 'Vijay Mahrra'         # author of the site
}

Credits

### CSS

Images

Other

Documentation

  • Everything's in the docs/ folder.