User gallery application Django + Celery/RabbitMQ + Tornado/WebSocket + AngularJS
This application was developed and tested on:
- Django 1.7
- Celery 3.1.15
- Python 2.7
- RabbitMQ 3.3.5
- Tornado 4.0.2
- Redis server 2.2.12
-
Setup Celery BROKER_URL (conf/celery_conf.py)
BROKER_URL = 'amqp://guest:guest@localhost:5672//'
-
Setup Email settings (conf/email.py)
EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST_USER = '__MAILBOX__@gmail.com' EMAIL_HOST_PASSWORD = '********' EMAIL_PORT = 587
If EMAIL_HOST is Gmail check mail settings at
https://www.google.com/settings/security/lesssecureapps
-
Setup DATABASES settings (settings.py)
-
Run command:
pip install -r requirements.txt
# activate virtualenv
- Run command:
python manage.py syncdb
- Run command:
python manage.py collectstatic
- Run
run_celery.sh
script to start celery worker:. ./run_celery.sh
- Run command:
python websocket.py
- Run command:
python manage.py runserver
- Open browser at 127.0.0.1:8000