Django + Pythonanywhere: How to disable Debug Mode

Jek Hatulan

I am using Django and PythonAnywhere, and I want to make the DEBUG to False. But when I set it to False and make ALLOWED_HOSTS = ['*'], it works fine. But the problem is the media (or the images) is not displaying. Anyone encounter this and know how to resolve it?

Jek Hatulan

I Figured it out, thanks for the hint Mr. Raja Simon.

In my PythonAnywhere Dashboard on Web Tab. I set something like this..

URL /media/

Directory /home//media_cdn

*media_cdn is where my images located.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related