We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b61129c commit 9c242e1Copy full SHA for 9c242e1
vellum/settings.py
@@ -7,7 +7,10 @@
7
8
# The name of the blog.
9
# This defaults to the name of the site.
10
-BLOG_NAME = getattr(settings, 'BLOG_NAME', Site.objects.get_current().name)
+try:
11
+ BLOG_NAME = settings.BLOG_NAME
12
+except ValueError:
13
+ BLOG_NAME = Site.objects.get_current().name
14
15
# A short description of what the blog is about.
16
BLOG_DESCRIPTION = getattr(settings, 'BLOG_DESCRIPTION', 'A basic Django blog')
0 commit comments