Created
January 26, 2017 14:20
-
-
Save macndesign/58108fef6d73b530e4dd6dedd8615eb2 to your computer and use it in GitHub Desktop.
Variáveis importantes para uma configuração básica de um projeto django em um servidor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALLOWED_HOSTS = [‘ip_do_servidor’] | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.postgresql_psycopg2', | |
'NAME': ‘revista_virtual’, | |
'USER': ‘mario_chaves’, | |
'PASSWORD': ’s3cr3t3’, | |
'HOST': 'localhost', | |
'PORT': '', | |
} | |
} | |
STATIC_URL = '/static/' | |
STATIC_ROOT = os.path.join(BASE_DIR, 'static/') | |
MEDIA_URL = ‘/media/‘ | |
MEDIA_ROOT = os.path.join(BASE_DIR, ‘media/‘) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment