0👍
If you have set DEBUG=False
in the settings, then you have to enter your website’s host to the ALLOWES_HOSTS settings.
If you have not done so, you will get errors like the one you mention.
0👍
I suggest that you check out the console data. Right click and open the dev tools from your browser. Make a page request or reload the page. Check the network panel, it should contain the response data in full html which will have the output.
👤IVI
- [Django]-Docker replicas vs gunicorn workers in production
- [Django]-Is it possible to redirect the python output to web by using 'sys.stdout' command?
- [Django]-Django Templates – how do I output the relative path of file when using a FilePathField recursively
- [Django]-Passing Editable Fields as validated_data method of Django-Rest-Framework Serializer
Source:stackexchange.com