Options
- class bobtail.options.BaseOptions[source]
To define port, static directory, template directory etc. you can create a concrete version of the BaseOptions abstract class. For Example:
from bobtail.options import BaseOptions class Options(BaseOptions): PORT = 8001 app = Bobtail(Options)
- PORT = 8000
The port by default is set to 8000
- STATIC_DIR = 'static'
The static directory relative path is set by default to static
- TEMPLATE_DIR = 'templates'
The template directory relative path is set by default to templates