diff options
| author | Bobby <[email protected]> | 2023-06-04 06:09:34 -0400 |
|---|---|---|
| committer | Bobby <[email protected]> | 2023-06-04 06:09:34 -0400 |
| commit | 01a5d2ca1f6cbc77e2014cefedc9c714cbc0cfd6 (patch) | |
| tree | b852fb49d21f6160b0df211755c5620df471d639 | |
| parent | bff162440329eaa49a58fdabc5c9aecbeb53673c (diff) | |
| download | thatcomputerscientist-01a5d2ca1f6cbc77e2014cefedc9c714cbc0cfd6.tar.xz thatcomputerscientist-01a5d2ca1f6cbc77e2014cefedc9c714cbc0cfd6.zip | |
Enable Recommender with Debug
| -rw-r--r-- | blog/views.py | 3 | ||||
| -rw-r--r-- | 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'] |
