From 01a5d2ca1f6cbc77e2014cefedc9c714cbc0cfd6 Mon Sep 17 00:00:00 2001 From: Bobby Date: Sun, 4 Jun 2023 06:09:34 -0400 Subject: Enable Recommender with Debug --- blog/views.py | 3 +-- thatcomputerscientist/settings.py | 2 +- 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'] -- cgit v1.2.3