mirror of
https://github.com/QingdaoU/Spirit.git
synced 2025-01-01 09:31:48 +00:00
.. | ||
project | ||
__init__.py | ||
manage.py | ||
README.md |
#Running the example application
Assuming you use virtualenv, follow these steps to download and run the Spirit example application in this directory:
$ git clone https://github.com/nitely/Spirit.git
$ cd Spirit
$ virtualenv venv
$ source ./venv/bin/activate
$ pip install .
$ cd example
$ python manage.py spiritinstall
$ python manage.py runserver
Visit http://127.0.0.1:8000/
This will run using the developer settings, which are not suitable for production environments.
On production, you should create a
prod_local.py
, import the production settingsfrom .prod import *
and overwrite settings such asSECRET_KEY
,DATABASES
andALLOWED_HOSTS
.You should run Spirit on a real web server. ie: gunicorn + Nginx.
An email server is required, you can host your own (ie: exim), or hire an external service provider (ie: Mandrill).
You will need to setup a search engine, Spirit is configured to work with Woosh by default.