Commit for final project

*** Problem Statement ***

Create a Django site that prototypes inventory control:

1. Allow user to see a list of available manufactures
 - https://esmee.pythonicneteng.com/inventory/manufactures/
2. Allow users to see inventory count on each manufactures
 - example: https://esmee.pythonicneteng.com/inventory/manufactures/Manufacture_1/
3. Allow users to place orders and inventory is automatically updated (not done)
 - click on order
 - log in using sales1/sales1
 - redirect to https://esmee.pythonicneteng.com/orderPipeline/
 - select Manufacture
 - select product (decided to use hidden field in form instead of cookie)
 - need to complete teh pipeline
4. Needs user authentication
 - use default authentication 
 - see separate email for admin login for Instructors
5. Use HTML/CSS to make site presentation (re-learned Dreamweaver and Spray for menu)

*** OpenShift document ***

- Spent LOTS of time figuring out RedHat's OpenShift PaaS platform
- Documents I found most helpful:
Getting Started: http://docs.redhat.com/docs/en-US/OpenShift/2.0/html/Getting_Started_Guide/index.html
How to build Django on OpenShift: https://github.com/openshift/django-example
How to push local repo into OpenShift: https://openshift.redhat.com/community/forums/openshift/how-to-push-local-django-repo-into-openshift
How to use CNAME to point to OpenShift: https://openshift.redhat.com/community/faq/i-have-deployed-my-app-but-i-don%E2%80%99t-like-telling-people-to-visit-myapp-myusernamerhcloudcom-how-c


*** Project Details ***

March 12, 2013:

- Added step zip file for running locally on laptop
- To run locally: 

1. Download the tgz ~/training.python_web/assignments/week08/athome/django/week10_django.tgz
2. Untar/Unzip via 'tar -xvzf week10_django.tgz'
3. cd to ~/django/wsgi/openshift
4. Change the settings-local.py file to fit local database. Note there is an if loop for running on openshift (sqlite3) and local (mysql). 
5. run local server via 'python ~/django/wsgi/openshift$ python manage.py runserver 0.0.0.0:8080 --settings=settings-local


March 8, 2013: 

1. Site is hosted on RedHat's OpenShift platform on the small free tier
https://django-ejpartners.rhcloud.com/inventory/manufactures/

2. DNS alias off my own domain with CNAME record:
https://esmee.pythonicneteng.com/inventory/manufactures/

3. Main code under ~/django/wsgi (OpenShift requirement)

4. Main site static file located under ~/django/wsgi (OpenShift requirement)

5. Main Django project under ~/django/wsgi/openshift

6. App under ~/django/wsgi/openshift/inventory

7. Manufactur main menu provides 2 functions, Search and Add Manufactures

8. Order tab requires authentication, use sales1/sales1. 

9. Order pipeline is not completed, but prove of concept provided for the first two forms. 

10. 'About Us' and 'Direction' are placeholders for now.