aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--blog/views.py3
-rw-r--r--thatcomputerscientist/settings.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/blog/views.py b/blog/views.py
index a855d0fe..f293a4ad 100644
--- a/blog/views.py
+++ b/blog/views.py
@@ -174,8 +174,7 @@ def post(request, slug):
request.meta['description'] = BeautifulSoup(first_paragraph, 'html.parser').get_text()
request.meta['image'] = 'https://thatcomputerscientist.com/ignis/post_image/720/' + str(post.id) + '.gif'
- # read_next = next_read(post)
- read_next = None
+ read_next = next_read(post)
return render(request, 'blog/post.html', {'title': post.title, 'post': post, 'tags': tags, 'comments': comments, 'view_count': view_count, 'read_next': read_next})
else:
diff --git a/thatcomputerscientist/settings.py b/thatcomputerscientist/settings.py
index 16bd1dce..c7a6c9ac 100644
--- a/thatcomputerscientist/settings.py
+++ b/thatcomputerscientist/settings.py
@@ -34,7 +34,7 @@ r.set('n_connected_lc_users', 0)
SECRET_KEY = os.getenv('AUTHORIZATION_STRING')
# SECURITY WARNING: don't run with debug turned on in production!
-DEBUG = True if os.getenv('ENVIRONMENT') == 'development' else False
+DEBUG = True
ALLOWED_HOSTS = ["*"]
CSRF_TRUSTED_ORIGINS = ['https://*.thatcomputerscientist.com', 'http://*.thatcomputerscientist.com']