Skip to content
Snippets Groups Projects
Select Git revision
  • 6942b5ccf1df95d00b11e3a9135a207b22e5e09a
  • master default
  • clement
  • fix_requirements
  • new_signup
  • interface_admin
  • hamza
  • dev
  • test
  • melissa
  • context_sheet
  • sorties_new
  • Seon82-patch-2
  • export_bdd
  • refactor/participation-user-link
15 results

dev.py

Blame
  • dev.py 760 B
    """Development settings"""
    
    import os
    from .common import *
    from .common import BASE_DIR
    
    DEBUG = True
    ALLOWED_HOSTS = ['localhost']
    
    # Static files (CSS, JavaScript, Images) and media files (user-uploaded)
    
    # In development, static and media files are tied to the local filesystem.
    # In production, media files cannot be stored on Heroku and need
    # to be hosted elsewhere (e.g. AWS S3).
    
    # Static files config
    STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
    STATICFILES_DIRS = [
        os.path.join(BASE_DIR, 'staticfiles'),
    ]
    
    # Media files config
    DEFAULT_FILE_STORAGE = 'django.core.files.storage.FileSystemStorage'
    
    # Mails config
    
    # However emails won't be delivered by SendGrid (use dev_sendgrid settings)
    MAILS_ENABLED = True