Skip to content
Snippets Groups Projects
Select Git revision
  • 746b4f096da3e8dfde229be373a39a9dddf62524
  • master default
  • datenotunique
  • archives
  • lastToucanUrl
  • urltitle-year
  • lets-hope-for-the-best
  • everything-is-fine
  • feature/change-pdf-endpoint
9 results

app.js

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