ismail-s / fireblog

A basic blog (in Python)
https://ismail-s.github.io/fireblog
GNU General Public License v2.0
0 stars 0 forks source link

Feature/refactor init code #66

Closed ismail-s closed 8 years ago

ismail-s commented 8 years ago

Move as much stuff from the fireblog/__init__.py file into new files. Then, in __init__.py, we just confi.include all of these new files (which each have an includeme function). This provides several benefits:

  1. Code is easier to read
  2. Code is better separated into related sections
  3. There is more control over the order of importing and setting up different parts of the webapp. This is the main driving reason behind this PR, as this is required for getting redis to work with the webapp in a later PR.

Docs have also been updated.