Skip to content

Instantly share code, notes, and snippets.

@feliphebueno
Created May 23, 2017 00:19
Show Gist options
  • Save feliphebueno/6a88e9e47d0f214a9fdac48d854bab1e to your computer and use it in GitHub Desktop.
Save feliphebueno/6a88e9e47d0f214a9fdac48d854bab1e to your computer and use it in GitHub Desktop.
Exemplo do arquivo de configuração do C.L.U. para integração com a Amazon
import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
DATABASES = {
'default': {
'ENGINE': "driver",
'NAME': "name",
'HOST': "host",
'USER': "user",
'PASSWORD': "pass",
}
}
INSTALLED_APPS = (
'models',
)
# SECURITY WARNING: Modify this secret key if using in production!
SECRET_KEY = 'secret'
AWS_CREDENTIALS = {
'aws_access_key_id': "key_id",
'aws_secret_access_key': "aws_secret"
}
DRIVE_API_CONFIG = {
'bucket_env': "alpha-onxerp",
'storage_path': os.path.realpath("/path/to/storage/")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment