Add views.py with from django.http import HttpResponse def homepage(request): return HttpResponse ('hello world')
urls.py from . import views urlpatterns = [ path('/', views.homepage) ] On Fri, Dec 18, 2020, 9:59 PM Parul. <parul.281...@gmail.com> wrote: > i am not able to connect , i tried to use 0.0.0.0:8000 , 0.0.0.0:8080 as > well, still getting same error. > used 127.0.0.1 with ports 8000 and 8080 still getting error > i have put '*' in ALLOWED_HOSTS > > -- > 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/b6e49e34-46f1-4c5f-9829-358b3323d381n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/b6e49e34-46f1-4c5f-9829-358b3323d381n%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/CABFQhy5W1SX-1WuP%3DUSy%2BU3T-bg3S1zRKnZWvk%2Bf4P7H27ty%2Bw%40mail.gmail.com.