small tweaks

This commit is contained in:
reverend 2020-09-10 20:42:49 +02:00
parent eede454e76
commit 88c94acd93

View File

@ -29,22 +29,22 @@ SECRET_KEY = 'n$(bx8(^)*wz1ygn@-ekt7rl^1km*!_c+fwwjiua8m@-x_rpl0'
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
ALLOWED_HOSTS = [ 'localhost' ] ALLOWED_HOSTS = ['localhost']
# Application definition # Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [
'lostplaces_app', 'lostplaces_app',
'easy_thumbnails',
'widget_tweaks',
'taggit',
'django.contrib.admin', 'django.contrib.admin',
'django.contrib.auth', 'django.contrib.auth',
'django.contrib.contenttypes', 'django.contrib.contenttypes',
'django.contrib.sessions', 'django.contrib.sessions',
'django.contrib.messages', 'django.contrib.messages',
'django.contrib.staticfiles', 'django.contrib.staticfiles'
'easy_thumbnails',
'widget_tweaks',
'taggit'
] ]
MIDDLEWARE = [ MIDDLEWARE = [
@ -62,7 +62,7 @@ ROOT_URLCONF = 'lostplaces.urls'
TEMPLATES = [ TEMPLATES = [
{ {
'BACKEND': 'django.template.backends.django.DjangoTemplates', 'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [os.path.join(BASE_DIR, 'templates')], 'DIRS': [],
'APP_DIRS': True, 'APP_DIRS': True,
'OPTIONS': { 'OPTIONS': {
'context_processors': [ 'context_processors': [
@ -126,9 +126,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.0/howto/static-files/ # https://docs.djangoproject.com/en/3.0/howto/static-files/
STATIC_URL = '/static/' STATIC_URL = '/static/'
STATICFILES_DIRS = [ STATIC_ROOT = os.path.join(BASE_DIR, 'static_files')
os.path.join(BASE_DIR, "static")
]
MEDIA_URL = '/uploads/' MEDIA_URL = '/uploads/'
MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads') MEDIA_ROOT = os.path.join(BASE_DIR, 'uploads')