Files changed (6)
-To setup an environment to test locally, you should first install python (2.7) http://python.org/, pip http://pypi.python.org/pypi/pip and virtualenv http://pypi.python.org/pypi/virtualenv as well as postgres (although you can use sqlite if necessary).
-Pip is the python package management tool that will allow you to install all the other python libraries that are used quite easily. Virtualenv allows you to have segregated python installs that have different libraries. Once you have these installed,
- You'll want to create a local_settings.py file to specify your settings based on your local setup. This will likely need these sections:
-# You'll need this section to specify your caching - if you don't want to setup redis, this is a lazy way that just uses in-place memoroy. You will still have to specify the redis server here if you do it.
-# point to your databse. If you use sqlite keep in mind that many database things might not work in production.
- "ENGINE": "postgresql_psycopg2", # Add "postgresql_psycopg2", "postgresql", "mysql", "sqlite3" or "oracle".
-# This is the default celery setup, if you installed redis it is recommended to use it as the backend instead of the database.
- If all of that worked, you should be able to initialize the database by running from the ahgl folder: