# Path: staticsites/conf_dict.py
# class DeployTypes(BaseDict):
#     """
#     Use this dictionary for discriminate config by deploy_type
#     """
#     pass


import os
import environ
from django.core.files.storage import FileSystemStorage
from staticsites.conf_dict import DeployTypes
from storages.backends.ftp import FTPStorage
# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/

STATIC_URL = '/static/'


FTP_STORAGE_LOCATION = ''


TEST_FTP_CONF = {
    'user': env('TEST_FTP_USER'),
    'password': env('TEST_FTP_PASSWORD'),
    'host': env('TEST_FTP_HOST'),
    'port': env('TEST_FTP_PORT'),
    'path': env('TEST_FTP_PATH'),
}
PROD_FTP_CONF = {
    'user': env('PROD_FTP_USER'),
    'password': env('PROD_FTP_PASSWORD'),
    'host': env('PROD_FTP_HOST'),
    'port': env('PROD_FTP_PORT'),
    'path': env('PROD_FTP_PATH'),
}

STATICSITE_DEPLOY_ROOT = DeployTypes({
    'dev': 'deploy/%(deploy_type)s',
    'test': 'ftp://%(user)s:%(password)s@%(host)s:%(port)s%(path)s' % TEST_FTP_CONF,
    'prod': 'ftp://%(user)s:%(password)s@%(host)s:%(port)s%(path)s' % PROD_FTP_CONF,
})


# Path: staticsites/conf_dict.py
# class DeployTypes(BaseDict):
#     """
#     Use this dictionary for discriminate config by deploy_type
#     """
#     pass


# Path: staticsites/tests/samples/05_ftp/settings.py
import os
import environ
from django.core.files.storage import FileSystemStorage
from staticsites.conf_dict import DeployTypes
from storages.backends.ftp import FTPStorage

# Static files (CSS, JavaScript, Images)
# https://docs.djangoproject.com/en/1.7/howto/static-files/

STATIC_URL = '/static/'


FTP_STORAGE_LOCATION = ''


TEST_FTP_CONF = {
    'user': env('TEST_FTP_USER'),
    'password': env('TEST_FTP_PASSWORD'),
    'host': env('TEST_FTP_HOST'),
    'port': env('TEST_FTP_PORT'),
    'path': env('TEST_FTP_PATH'),
}
PROD_FTP_CONF = {
    'user': env('PROD_FTP_USER'),
    'password': env('PROD_FTP_PASSWORD'),
    'host': env('PROD_FTP_HOST'),
    'port': env('PROD_FTP_PORT'),
    'path': env('PROD_FTP_PATH'),
}

STATICSITE_DEPLOY_ROOT = DeployTypes({
    'dev': 'deploy/%(deploy_type)s',
    'test': 'ftp://%(user)s:%(password)s@%(host)s:%(port)s%(path)s' % TEST_FTP_CONF,
    'prod': 'ftp://%(user)s:%(password)s@%(host)s:%(port)s%(path)s' % PROD_FTP_CONF,
})


STATICSITE_DEFAULT_FILE_STORAGE = DeployTypes({