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