SHARE
TWEET

Untitled

a guest Oct 3rd, 2017 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import os
  2. import sys
  3.  
  4. # folder - is your django folder
  5.  
  6. DJANGO_ROOT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # /home/anon/
  7. DJANGO_APPS_DIR = os.path.join(DJANGO_ROOT_DIR, 'folder') /home/anon/folder/
  8.  
  9. if DJANGO_ROOT_DIR not in sys.path: sys.path.append(DJANGO_ROOT_DIR)
  10. os.environ['DJANGO_SETTINGS_MODULE'] = 'folder.settings'
  11.  
  12. BROKER_HOST = "localhost"
  13. BROKER_PORT = 5672
  14. BROKER_USER = "myuser"
  15. BROKER_PASSWORD = "mypassword"
  16. BROKER_VHOST = "myvhost"
  17. CELERY_IMPORTS = ("main.tasks", )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top