Please try to add "localhost" in your ALLOWED_HOSTS list. ALLOWED_HOSTS = ["localhost"]
On Sunday, February 12, 2023 at 12:24:40 PM UTC-5 fatima zahra ait lhaj wrote: > it's setting.py file > [image: setting.png] > > ==> python manage.py runserver > CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False. -- 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/9834d383-f7e4-4204-9924-9c0d7a7c253fn%40googlegroups.com.