Deployment guide
CureCRM is a Django / Python 2.7 application designed to run on Linux with PostgreSQL and a WSGI server.
-
Prepare the environment —
Install Python 2.7, PostgreSQL, and gunicorn or uWSGI. Create a dedicated Unix user such as
curecrm. -
Clone the project —
check out the repository into
/home/curecrm/weband install dependencies in a Python 2.7 virtualenv. -
Configure server type —
create a
server_typefile one level above the web directory containing eitherlocalorlive. -
Configure settings —
edit
settings.pyandlive.pyto point at your PostgreSQL database, domain, email settings, and external services. -
Create the schema —
python2.7 recreate.py --syncdb-no-fixturesor generate and apply schema remotely withpython2.7 recreate.py -sqlremoteapply. -
Create an admin user —
python2.7 manage.py createsuperuser --settings=live -
Seed initial data —
use the helpers in
recreate.pyor callpopulate.populate_all()to create default sites and demo data. -
Run in production —
start gunicorn or uWSGI with
curecrmweb.wsgi:applicationand put Nginx or Apache in front for HTTPS and static files.

