Created
December 1, 2019 11:14
-
-
Save aballah-chamakh/94695a5baf369d66591235dbc30dd3f6 to your computer and use it in GitHub Desktop.
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
# ... | |
# installed app | |
INSTALLED_APPS = [ | |
# ... | |
'Inference', | |
] | |
# ... | |
# html templates | |
TEMPLATES = [ | |
{ | |
'BACKEND': 'django.template.backends.django.DjangoTemplates', | |
'DIRS': [os.path.join(BASE_DIR, 'templates')], | |
'APP_DIRS': True, | |
'OPTIONS': { | |
'context_processors': [ | |
'django.template.context_processors.debug', | |
'django.template.context_processors.request', | |
'django.contrib.auth.context_processors.auth', | |
'django.contrib.messages.context_processors.messages', | |
], | |
}, | |
}, | |
] | |
# static & media files | |
STATIC_URL = '/static/' | |
STATICFILES_DIRS = [ | |
os.path.join(BASE_DIR, 'staticfiles'), | |
] | |
STATIC_ROOT = os.path.join(os.path.dirname(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