Tuesday, July 4, 2023

Re: need help

thanks for the help. but after  writing ["*"] i see   Server Error (500)

Le mardi 4 juillet 2023 à 14:46:01 UTC, ALBERT ASHABA AHEEBWA a écrit :
Sorry I meant turn 
DEBUG = True




Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

On Tue, 4 Jul 2023, 17:44 ALBERT ASHABA AHEEBWA, <ashabaahe...@gmail.com> wrote:
Go to your settings.py and look for allowed_hosts and make it 
ALLOWED_HOSTS = ["*"]

or better yet, if you are in development, turn
DEBUG = False



Best Regards,

Albert Ashaba Aheebwa
+256 781 435857

On Tue, 4 Jul 2023, 17:38 Abdoulaye SENE, <abdoulay...@unchk.edu.sn> wrote:
hello,
while programming, i see this problem : " CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False."
i wonder if someone can help me to fix it.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com.

No comments:

Post a Comment