Dependencies: pip install -r requirements.txt
- local smtp server
apt-get install postfix
- broker for celery (RabbitMQ)
apt-get install rabbitmq-server
Debug:
Schema migrations: When you create a new app with models.py: ./manage.py schemamigration someapp --initial; ./manage.py migrate When you modify models.py: ./manage.py schemamigration someapp --auto; ./manage.py migrate When you git pull new migrations: ./manage.py migrate
3rd party login:
Celery task queue: Start rabbitmq: sudo rabbitmq-server -detached Stop rabbitmq: sudo rabbitmqctl stop Start celery worker: celery -A enarocanje worker -l info
First start rabbitmq and then celery worker.
MailChimp solution for ssl cert verify problem...
sudo mv /usr/local/lib/python2.7/dist-packages/httplib2/cacerts.txt /usr/local/lib/python2.7/dist-packages/httplib2/cacerts.txt.old
#replace with this one
sudo mv ./cacert.pem /usr/local/lib/python2.7/dist-packages/httplib2/cacerts.txt