Skip to content

Instantly share code, notes, and snippets.

@aballah-chamakh
Created December 1, 2019 11:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aballah-chamakh/94695a5baf369d66591235dbc30dd3f6 to your computer and use it in GitHub Desktop.
Save aballah-chamakh/94695a5baf369d66591235dbc30dd3f6 to your computer and use it in GitHub Desktop.
# ...
# 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