- ruby 2.4
- compass
- Python 3
- pip
- virtualenvwrapper
- Redis
- git
I highly recommend to install virtualenvwrapper
$ mkvirtualenv -p python3 ucode
$ pip install -r requirements.txt
$ python manage.py celery -A uCode worker -l debug -B
$ python manage.py runserver 0.0.0.0:8000
Change the xxx credentials with your own ones. Store it in uCode/local_settings.py
from pytumblr import TumblrRestClient
from twitter import Api
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'xxx'
twitter_api = Api(consumer_key='xxx',
consumer_secret='xxx',
access_token_key='xxx-xxx',
access_token_secret='xxx',
tweet_mode='extended')
consumer_key = "xxx"
consumer_secret = "xxx"
token = "xxx"
token_secret = "xxx"
api_key = "xxx"
tumblr_api = TumblrRestClient(consumer_key,
consumer_secret,
token,
token_secret)
telegram_token="xxx:xxx"
BROKER_URL = 'redis://localhost:6379'
CELERY_RESULT_BACKEND = 'redis://localhost:6379'
CELERY_ACCEPT_CONTENT = ['application/json']
CELERY_TASK_SERIALIZER = 'json'
CELERY_RESULT_SERIALIZER = 'json'
CELERY_TIMEZONE = 'Europe/Madrid'
CELERY_RESULT_BACKEND = 'djcelery.backends.database:DatabaseBackend'
CELERYBEAT_SCHEDULER = 'djcelery.schedulers.DatabaseScheduler'