import os

import dj_database_url

from .base import *


DATABASE_URL = os.environ.get('DATABASE_URL')

DATABASES = {
    'default': dj_database_url.config()
}

STATIC_ROOT = 'static_sources'
STATIC_URL = '/static/'

STATICFILES_DIRS = (
    os.path.join(BASE_DIR, 'static'),
)

import os

import dj_database_url

from .base import *


DATABASE_URL = os.environ.get('DATABASE_URL')

DATABASES = {
    'default': dj_database_url.config()
}

# Media handling
MEDIA_ROOT = BASE_DIR.child("media")

# Static file handling
STATIC_ROOT = 'static_sources'
STATIC_URL = '/static/'

STATICFILES_DIRS = (
    os.path.join(BASE_DIR, 'static'),
)

Add MEDIA_ROOT to dev settings
Add MEDIA_ROOT to dev settings

  import os
  
  import dj_database_url
  
  from .base import *
  
  
  DATABASE_URL = os.environ.get('DATABASE_URL')
  
  DATABASES = {
      'default': dj_database_url.config()
  }
  
+ # Media handling
+ MEDIA_ROOT = BASE_DIR.child("media")
+ 
+ # Static file handling
  STATIC_ROOT = 'static_sources'
  STATIC_URL = '/static/'
  
  STATICFILES_DIRS = (
      os.path.join(BASE_DIR, 'static'),
  )
  
Add MEDIA_ROOT to dev settings
## Code Before:
import os

import dj_database_url

from .base import *


DATABASE_URL = os.environ.get('DATABASE_URL')

DATABASES = {
    'default': dj_database_url.config()
}

STATIC_ROOT = 'static_sources'
STATIC_URL = '/static/'

STATICFILES_DIRS = (
    os.path.join(BASE_DIR, 'static'),
)

## Instruction:
Add MEDIA_ROOT to dev settings
## Code After:
import os

import dj_database_url

from .base import *


DATABASE_URL = os.environ.get('DATABASE_URL')

DATABASES = {
    'default': dj_database_url.config()
}

# Media handling
MEDIA_ROOT = BASE_DIR.child("media")

# Static file handling
STATIC_ROOT = 'static_sources'
STATIC_URL = '/static/'

STATICFILES_DIRS = (
    os.path.join(BASE_DIR, 'static'),
)
