Version 2 (modified by sil, 12 years ago) (diff) |
---|
Server setup
Deploying CMT with PostgreSQL, Apache and mod_wsgi is the recommended way to get it up and running.
Setup PostgreSQL database
If the database tables aren't generated yet, an initial setup based on the models is needed. You can synchronize the database with the models from the commandline, by issuing the following command:
python /path/to/sara_cmt/sara_cmt/manage.py syncdb
Basic Apache configuration
Be sure to activate mod_wsgi, and define the WSGIScriptAlias in your Apache server configuration:
WSGIScriptAlias / /path/to/sara_cmt/apache/django.wsgi
The first bit has to be the URL you want to be serving CMT at, and the second is the location of the WSGI-file in the CMT project directory. Any request below the given URL will be served using the application that's definined in the WSGI-file.