Remove the slash /
Just do
localhost:8000/pen
On Thu, 7 Nov 2024, 21:19 Heman Okumbo, <[email protected]> wrote:
> Hello everyone,my project is not displaying the page on the browser though
> I've followed the Django project tutorial.
> my project urls:
>
>
> from django.contrib import admin
> from django.urls import path, include
>
> urlpatterns = [
> path('land/', include('land.urls')),path('admin/', admin.site.urls),]
>
>
> my app is called land,the urls are:
>
>
> from django.contrib import admin
> from django.urls import path
> from . import views
>
> urlpatterns = [path('pen',views.tome,name='pen'),
> path('admin/', admin.site.urls),
> ]
> when i access the page on local host ie ,,,,8000/land/ and app urls to
> path('',views.tome),,the tome function is displayed
> But when i do ..….8000/pen/ i get an error that the path pen/ could not be
> found.
> What should i do?
>
> --
> 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 visit
> https://groups.google.com/d/msgid/django-users/CAJt9CbhjZJUuLHEAC0VuqeDqraiDGFW8VxZBwp0YLNJ8m5BXTw%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJt9CbhjZJUuLHEAC0VuqeDqraiDGFW8VxZBwp0YLNJ8m5BXTw%40mail.gmail.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 [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-users/CAH9mMV_Wd4YAef-g2JuK-zP7mmyz3-sA%3Dv1-LVPE6J2JXPRJ1w%40mail.gmail.com.