Skip to content
Snippets Groups Projects
Select Git revision
  • 203be8f844dbd58df3b907e45c81729c06e4e2e2
  • master default
  • goodpaths
  • movie-page
  • front-bilel
  • vieille-branche
  • octofront
  • branche-TP-de-Tom
8 results

Footer.vue

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