Skip to content

Commit

Permalink
debug_update (#435)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lungsangg authored Nov 19, 2024
2 parents 82b2057 + 17597f9 commit 6f5589f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Binary file modified output.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions reader/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1653,6 +1653,9 @@ def protected_post(request):
@catch_error_as_json
@csrf_exempt
def social_image_api(request, tref):
print("Image generation requested")
print(f"Path: {request.path}")
print(f"Query params: {request.GET}")
lang = request.GET.get("lang", "en")
if lang == "bi":
lang = "en"
Expand Down
4 changes: 2 additions & 2 deletions sefaria/local_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@


################ These are things you DO NOT NEED to touch unless you know what you are doing. ##############################
DEBUG = os.getenv("DEBUG", "True") == "True"
# DEBUG = os.getenv("DEBUG", "True") == "True"
# In Render environment variables:
# DEBUG = False
DEBUG = False

REMOTE_HOSTS = os.getenv('REMOTE_HOSTS', 'staging.pecha.org').replace(" ", "")

Expand Down

0 comments on commit 6f5589f

Please sign in to comment.