Commit 243c1a6f authored by Sorrel Harriet's avatar Sorrel Harriet
Browse files

updating lab 7 readme

parent 4f9811d9
# Catflucks Application
Here is a new improved version of catflucks.
It has the same functionality as the Lab 6 version, but more effort has
been made to separate concerns (i.e. to separate database interaction, logic and presentation).
**Noteworthy differences:**
+ The app configurables (i.e. installation specific variables) are now defined in config.py.
+ splash.py provides the main entry point to the app
+ A new template rendering function has been added to utils.py
+ The HTML is confined to .html files in the templates folder
*It is still not perfect!* There is much more we could do to improve portability/reusability...
Perhaps you can introduce further improvements to the **application design** in your own implementation?
#!/usr/bin/env python3
"""
This script is the main entry point to
the catflucks application.
"""
# import modules from Python standard library
from bson.objectid import ObjectId
import cgi
import cgitb
cgitb.enable()
# import custom modules
from config import config
import utils
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment