Setting up a new Django project doesn't require much code copying, my friend. This can be done more simply and easily. You follow the new tutorial. Also if you have problem knock me I don't know much but I would be happy to discuss with you. On Tuesday, April 11, 2023 at 6:44:53 PM UTC+6 Michael Starr wrote:
> 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/82c81da4-b9ce-4985-8387-ba1f63985ca2n%40googlegroups.com.

