Public gauge of the world's current faith in humanity based on tweets
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
apache
faithinhumanity
faithinhumanity_app
media
static/admin
templates
.foreman
.gitignore
Procfile
Procfile.dev
README.md
manage.py
requirements.txt

README.md

The Faith In Humanity

Auto-generated from Kevin Xu's Django Project Builder

Development Team

Getting Started

Dependencies

For best results, make sure you have at least:

  • Python 2.7.2
  • Django 1.4.1

Customizations

Installing the Application

# after initial git clone of existing repo
cd faithinhumanity/
mkvirtualenv faithinhumanity                                      # requires proper virtualenv setup
workon faithinhumanity                                            # sets the virtual environment

pip install -r requirements.txt                                   # installs all python packages
python manage.py syncdb                                           # sets up django database
python manage.py migrate faithinhumanity_app                      # migrates any south migrations

Running the Application

Application will be running at http://localhost:8000 after running one of the two commands:

python manage.py runserver                              # Normal way

foreman start                                           # Advanced way
                                                        # Requires .env and .env.dev files (see below)
                                                        # Sources environment variables and runs all processes
                                                        # Packaged with Heroku Toolbelt https://toolbelt.heroku.com/

Troubleshooting

Local Environment Variables

App uses a local .env and .env.dev not updated in the git repo to get some environment variables. Email Kevin Xu kevin@imkevinxu.com to get the latest version

Workflow

In case something's not working after pulling, try one of these:

workon faithinhumanity                                            # makes sure you're in the right virtual environment
pip install -r requirements.txt                                   # makes sure python packages are up to date
python manage.py migrate faithinhumanity_app                      # makes sure database schema is migrated
source .env.dev                                                   # makes sure your local environment variables are setup

Missing Dependencies

If you are missing some dependencies like pip, django, virtualenv, orvirtualenvwrapper then try downloading and running this script or use this line of code:

curl -O https://raw.github.com/imkevinxu/django-projectbuilder/master/install_dependencies.sh && source install_dependencies.sh && rm -f install_dependencies.sh

Script has been tested with Mac OSX 10.7 (Lion) and 10.8 (Mountain Lion) so far.