AWS_KEY = 'REQUIRED'
AWS_SECRET_KEY = 'REQUIRED'
AWS_BUCKET = 'REQUIRED'
AWS_DIRECTORY = ''  # Leave blank *not false* unless project not at base URL
                    # i.e. example.com/apps/ instead of example.com/

# Cache Settings (units in seconds)
STATIC_EXPIRES = 60 * 24 * 3600
HTML_EXPIRES = 3600

# Upload Settings (ignores anything included below)
IGNORE_DIRECTORIES = ['.git', 'venv', 'sass', 'templates']
IGNORE_FILES = ['.DS_Store']
IGNORE_FILE_TYPES = ['.gz', '.pyc', '.py', '.rb', '.md']

FREEZER_DEFAULT_MIMETYPE = 'text/html'
FREEZER_IGNORE_MIMETYPE_WARNINGS = True

# Amazon S3 Settings
AWS_KEY = ''
AWS_SECRET_KEY = ''
AWS_BUCKET = ''
AWS_DIRECTORY = ''  # Use if S3 bucket is not root

# Cache Settings (units in seconds)
STATIC_EXPIRES = 60 * 24 * 3600
HTML_EXPIRES = 3600

# Upload Settings (ignores anything included below)
IGNORE_DIRECTORIES = ['.git', 'venv', 'sass', 'templates']
IGNORE_FILES = ['.DS_Store']
IGNORE_FILE_TYPES = ['.gz', '.pyc', '.py', '.rb', '.md']

if AWS_DIRECTORY:
    BASE_URL = 'http://' + AWS_BUCKET + '/' + AWS_DIRECTORY
    FREEZER_BASE_URL = BASE_URL
else:
    BASE_URL = 'http://' + AWS_BUCKET

Update settings for new configuration
Update settings for new configuration

+ FREEZER_DEFAULT_MIMETYPE = 'text/html'
+ FREEZER_IGNORE_MIMETYPE_WARNINGS = True
+ 
+ # Amazon S3 Settings
- AWS_KEY = 'REQUIRED'
+ AWS_KEY = ''
- AWS_SECRET_KEY = 'REQUIRED'
+ AWS_SECRET_KEY = ''
- AWS_BUCKET = 'REQUIRED'
+ AWS_BUCKET = ''
+ AWS_DIRECTORY = ''  # Use if S3 bucket is not root
- AWS_DIRECTORY = ''  # Leave blank *not false* unless project not at base URL
-                     # i.e. example.com/apps/ instead of example.com/
  
  # Cache Settings (units in seconds)
  STATIC_EXPIRES = 60 * 24 * 3600
  HTML_EXPIRES = 3600
  
  # Upload Settings (ignores anything included below)
  IGNORE_DIRECTORIES = ['.git', 'venv', 'sass', 'templates']
  IGNORE_FILES = ['.DS_Store']
  IGNORE_FILE_TYPES = ['.gz', '.pyc', '.py', '.rb', '.md']
  
+ if AWS_DIRECTORY:
+     BASE_URL = 'http://' + AWS_BUCKET + '/' + AWS_DIRECTORY
+     FREEZER_BASE_URL = BASE_URL
+ else:
+     BASE_URL = 'http://' + AWS_BUCKET
+ 
Update settings for new configuration
## Code Before:
AWS_KEY = 'REQUIRED'
AWS_SECRET_KEY = 'REQUIRED'
AWS_BUCKET = 'REQUIRED'
AWS_DIRECTORY = ''  # Leave blank *not false* unless project not at base URL
                    # i.e. example.com/apps/ instead of example.com/

# Cache Settings (units in seconds)
STATIC_EXPIRES = 60 * 24 * 3600
HTML_EXPIRES = 3600

# Upload Settings (ignores anything included below)
IGNORE_DIRECTORIES = ['.git', 'venv', 'sass', 'templates']
IGNORE_FILES = ['.DS_Store']
IGNORE_FILE_TYPES = ['.gz', '.pyc', '.py', '.rb', '.md']

## Instruction:
Update settings for new configuration
## Code After:
FREEZER_DEFAULT_MIMETYPE = 'text/html'
FREEZER_IGNORE_MIMETYPE_WARNINGS = True

# Amazon S3 Settings
AWS_KEY = ''
AWS_SECRET_KEY = ''
AWS_BUCKET = ''
AWS_DIRECTORY = ''  # Use if S3 bucket is not root

# Cache Settings (units in seconds)
STATIC_EXPIRES = 60 * 24 * 3600
HTML_EXPIRES = 3600

# Upload Settings (ignores anything included below)
IGNORE_DIRECTORIES = ['.git', 'venv', 'sass', 'templates']
IGNORE_FILES = ['.DS_Store']
IGNORE_FILE_TYPES = ['.gz', '.pyc', '.py', '.rb', '.md']

if AWS_DIRECTORY:
    BASE_URL = 'http://' + AWS_BUCKET + '/' + AWS_DIRECTORY
    FREEZER_BASE_URL = BASE_URL
else:
    BASE_URL = 'http://' + AWS_BUCKET
