hello ...
your code is good
but you forgot to put comma after second path in urls.py
urlpatterns = [
path('admin/', admin.site.urls),
path('first_app/', include('first_app.urls')),
]
On Saturday, March 23, 2019 at 6:08:24 PM UTC+2, The Aryas wrote:
>
> Hey Guys, I am facing problem o
In your urls.py first_app, change 'index' to ''. That is empty string.
127.0.0.1:8000/first_app
That's all you need. It should work.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails fr
Sorry, it should be first_project
--
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 post to this group, send email to
Great. You are on the right track, only that the Url path you typed in the
address bar triggered the error.
You should use /first_app/index/
Reason:the index url path is located in the first_app. Urls file.
On Sat, Mar 23, 2019, 5:07 PM The Aryas Hey Guys, I am facing problem on django url mappi
Hey Guys, I am facing problem on django url mapping, I did exactly what my
couse said and copied the code text exactly,but it throws the error:-
Page not found (404)
Request Method: GET
Request URL: http://127.0.0.1:8000/index
Using the URLconf defined in protwo.urls, Django tried these URL pat
5 matches
Mail list logo