You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
357 B
Python
14 lines
357 B
Python
2 years ago
|
from django.conf import settings
|
||
|
|
||
|
NANO_BLOG_TAGS = None
|
||
|
|
||
|
# Optional support for django-taggit
|
||
|
try:
|
||
|
if ('taggit' in settings.INSTALLED_APPS
|
||
|
and getattr(settings, 'NANO_BLOG_USE_TAGS', False)):
|
||
|
import taggit as NANO_BLOG_TAGS
|
||
|
except ImportError:
|
||
|
pass
|
||
|
|
||
|
NANO_BLOG_SPECIAL_TAGS = getattr(settings, 'NANO_BLOG_SPECIAL_TAGS', ('pinned',))
|