You probably weren't careful enough following instructions. The beginner's 
tutorial is self-contained and allows a complete Django project to be made. 
Re-read everything word-for-word and then come back with some hypotheses 
for us to test for you.
Michael

On Tuesday, April 4, 2023 at 9:44:38 AM UTC-7 Tanveer wrote:

> 0
> <https://stackoverflow.com/posts/75924374/timeline>
>
> I know this question has been asked before, but I haven't found an answer 
> that solves my situation.
>
> I'm looking at the Django tutorial, and I've set up the first URLs exactly 
> as the tutorial has it, word for word, but when I go to 
> http://127.0.0.1:8000/, it gives me this error: but when i go to 
> http://127.0.0.1:8000/admin/ its working fine,where and what i am doing 
> wrong? i am using python version 3.11.1 please let me know for any other 
> info
> urls.py
>
> from django.contrib import admin
> from django.urls import path, include
> from django.conf.urls.static import static
> from django.conf import settings
> from .views import home
> urlpatterns = [
>                 path('admin/', admin.site.urls),
>                 path('', home)
>               ]
>
> views.py
> from django.http import HttpResponse
> from django.shortcuts import render
>
> # Create your views here.
> def home(request):
>     return render(request,home.html,{})
>
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6ae14b24-3fff-4f12-a9d9-80f4baa95c81n%40googlegroups.com.

Reply via email to