Server Error can be caused by many issues ranging from database queries to wrong urls.
Turn debug to true and see what reasons are given . Are you in production or development? Best Regards, Albert Ashaba Aheebwa +256 781 435857 On Tue, 4 Jul 2023, 18:21 Abdoulaye SENE, <abdoulaye.sen...@unchk.edu.sn> wrote: > 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 <+256%20781%20435857> >> >> 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 <+256%20781%20435857> >>> >>> 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 >>>> <https://groups.google.com/d/msgid/django-users/171c894c-5f04-445d-939f-c6c949caae35n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- > 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+unsubscr...@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 > <https://groups.google.com/d/msgid/django-users/82b9160b-6056-4cc6-9fa5-6d52de5512a1n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAAQecPeCb6HJMvnC5u_f5ORti50z%2BDEC4APAh-6GAGSDsWCO5w%40mail.gmail.com.