Added sites & flatpages into project settings and uncommented entries for tagulous & markdownx.
parent
22148202b2
commit
c135a81f97
|
|
@ -39,6 +39,8 @@ INSTALLED_APPS = [
|
||||||
'django.contrib.sessions',
|
'django.contrib.sessions',
|
||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
|
'django.contrib.sites',
|
||||||
|
'django.contrib.flatpages',
|
||||||
'core.apps.CoreConfig',
|
'core.apps.CoreConfig',
|
||||||
'articles.apps.ArticlesConfig',
|
'articles.apps.ArticlesConfig',
|
||||||
'markdownx',
|
'markdownx',
|
||||||
|
|
@ -125,6 +127,9 @@ STATIC_ROOT = BASE_DIR / 'static/'
|
||||||
MEDIA_URL = 'media/'
|
MEDIA_URL = 'media/'
|
||||||
MEDIA_ROOT = BASE_DIR / 'media/'
|
MEDIA_ROOT = BASE_DIR / 'media/'
|
||||||
|
|
||||||
|
# Site id to allow flatpages to function correctly
|
||||||
|
SITE_ID = 1
|
||||||
|
|
||||||
# User model and authentication
|
# User model and authentication
|
||||||
# LOGIN_REDIRECT_URL = ''
|
# LOGIN_REDIRECT_URL = ''
|
||||||
# LOGOUT_REDIRECT_URL = ''
|
# LOGOUT_REDIRECT_URL = ''
|
||||||
|
|
@ -139,17 +144,17 @@ MEDIA_ROOT = BASE_DIR / 'media/'
|
||||||
# EMAIL_HOST_PASSWORD = os.getenv('EMAIL_HOST_PASSWORD')
|
# EMAIL_HOST_PASSWORD = os.getenv('EMAIL_HOST_PASSWORD')
|
||||||
|
|
||||||
# Tagulous config
|
# Tagulous config
|
||||||
# SERIALIZATION_MODULES = {
|
SERIALIZATION_MODULES = {
|
||||||
# 'xml': 'tagulous.serializers.xml_serializer',
|
'xml': 'tagulous.serializers.xml_serializer',
|
||||||
# 'json': 'tagulous.serializers.json',
|
'json': 'tagulous.serializers.json',
|
||||||
# 'python': 'tagulous.serializers.python',
|
'python': 'tagulous.serializers.python',
|
||||||
# 'yaml': 'tagulous.serializers.pyyaml',
|
'yaml': 'tagulous.serializers.pyyaml',
|
||||||
# }
|
}
|
||||||
|
|
||||||
# Markdownx config
|
# Markdownx config
|
||||||
# MARKDOWNX_MARKDOWN_EXTENSIONS = [
|
MARKDOWNX_MARKDOWN_EXTENSIONS = [
|
||||||
# 'markdown.extensions.extra',
|
'markdown.extensions.extra',
|
||||||
# ]
|
]
|
||||||
|
|
||||||
# Default primary key field type
|
# Default primary key field type
|
||||||
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
|
# https://docs.djangoproject.com/en/5.1/ref/settings/#default-auto-field
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue