Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct gateway.html template syntax error in local dev server environment with DEBUG set to False #197

Open
enoren5 opened this issue Apr 16, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@enoren5
Copy link
Owner

enoren5 commented Apr 16, 2022

In the local dev server environment, when you:

  1. exit the server
  2. export the DEBUG option to ‘False’, with: $ export DEBUG='False' in your shell
  3. re-run the server with $ python manage.py runserver_plus --cert-file cert.pem --key-file key.pem
  4. navigate to the home landing page...

...It throws this Template Syntax Error:

problem with static files and gateway page - 404 -Screenshot_2022-04-16_10-29-04

I’ve taken a close look at the gateway.html template carefully, paying close attention to the way static files are imported with Jinja syntax. Everything looks OK to me. Not sure what the issue is here. This needs to be fixed.

I also noticed that when I re-export the DEBUG option to True, the error goes away. So to resolve this issue, the DEBUG namespace variable needs to be exported when set to False.

@enoren5 enoren5 added the bug Something isn't working label Apr 16, 2022
@enoren5 enoren5 changed the title Correct gateway.html template syntax error in local dev server environment with DEBUG set to Correct gateway.html template syntax error in local dev server environment with DEBUG set to False Apr 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant