Skip to content
Snippets Groups Projects
Select Git revision
  • 2d8ecb367ae894fb7d776f99ec154bb40f7779a1
  • main default
2 results

crud.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