#Instructions
#Mac OS X:
-
Make sure to install everything beneath.
-
Then run stunnel, rabbitmq, memecached.
- You can run
prepare_server.shto do this.
- You can run
-
Run server:
python manage.py runserver -
Open page: https://localhost:8443
##1. Stunnel
-
Install stunnel.
-
Move to project's root and make sure that file dev_https is in it, which is needed for stunnel.
-
Run stunnel:
stunnel dev_https_ -
Additional help:
http://www.ianlewis.org/en/testing-https-djangos-development-server
##2. RabbitMQ
-
Install rabbitmq.
-
Run rabbitmq:
rabbitmq-server -
You can run celery's workers:
python manage.py celery worker --loglevel=infoTo log in file, add flag:
--logfile=/path/to/log/file.txt
##3. Memcached
-
Install memcached.
-
Install python binding to memcached.
-
Run memcached:
memcachedYou can run as daemon with flag:
-d
#Windows:
##Setup
-
Start server with:
`python manage.py runserver`
##1. Stunnel:
-
Download & Install stunnel:
-
Open stunnel.exe (ex: C:\Program Files (x86)\stunnel\stunnel.exe).
-
Click on Configuration->Edit stunnel.conf. Replace all with:
cert=C:\Program Files (x86)\stunnel\stunnel.pem fips = no [https] accept=8443 connect=8000 TIMEOUTclose=1 -
Save stunnel.conf and press Reload stunnel.conf.
Help: https://www.stunnel.org/howto.html
##2. RabbitMQ:
-
Download & Install rabbitmq:
-
Open cmd as administrator!
-
In console go to installation directory (ex: C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.1.0\sbin).
-
Start RabbitMQ server with typing into console:
rabbitmq-server.bat