Django URL not working on my windows 10

14 views
Skip to first unread message

Muhamed Bešić

unread,
Oct 17, 2019, 10:53:13 AM10/17/19
to Django users
wtf i have done wrong, i'm getting bored, URL mapping not working anyway, anyone please, review the files and give a solution
Screenshot (6).png
Screenshot (5).png
Screenshot (6).png
Screenshot (1).png
Screenshot (2).png
Screenshot (3).png

vineet daniel

unread,
Oct 17, 2019, 10:57:59 AM10/17/19
to django...@googlegroups.com
Typo in include in urls.py file instead of incliude it should be include. Thats something that i could see immediately.

On Thu, 17 Oct 2019, 20:22 Muhamed Bešić, <muhamedb...@gmail.com> wrote:
wtf i have done wrong, i'm getting bored, URL mapping not working anyway, anyone please, review the files and give a solution

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/478ca311-9b23-4a36-a6e2-018aef44d99d%40googlegroups.com.

vineet daniel

unread,
Oct 17, 2019, 11:00:12 AM10/17/19
to django...@googlegroups.com
Scrernshot5 there should.be a comma before name.

kishor kumar Bharti

unread,
Oct 18, 2019, 8:09:25 AM10/18/19
to django...@googlegroups.com
use following code  in project urls.py

from django.contrib import admin
from django.conf.urls import url,include
from second_app import views

urlpatterns = [
    url(r'^$',views.index, name='index'),
    url(r'^second_app/',include('second_app.urls')),
    url(r'^admin/', admin.site.urls),
]


and use following code in urls.py in app 
from django.contrib import admin
from second_app import views
from django.conf.urls import url,include

urlpatterns = [
    url(r'^$',views.index,name='index'),
    ]

On Thu, Oct 17, 2019 at 8:23 PM Muhamed Bešić <muhamedb...@gmail.com> wrote:
wtf i have done wrong, i'm getting bored, URL mapping not working anyway, anyone please, review the files and give a solution

--
Reply all
Reply to author
Forward
0 new messages