Advertisement
a_igin

django settings

Aug 24th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1.  
  2. if os.environ.get('IS_DOCKER', False):
  3. BROKER_URL = 'redis://redis_worker:6379/0'
  4. STATIC_ROOT = os.path.join(os.sep, 'srv', 'static')
  5. MEDIA_ROOT = os.path.join(os.sep, 'srv', 'media')
  6. else:
  7. BROKER_URL = 'redis://127.0.0.1:6379/0'
  8. STATIC_ROOT = os.path.join(PROJ_DIR, 'static')
  9. MEDIA_ROOT = os.path.join(PROJ_DIR, 'media')
  10.  
  11. print(STATIC_ROOT, MEDIA_ROOT)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement