Thank you all so much! Franck's suggestion did it and now I'm further along on my Django journey!
On Thu, Aug 1, 2019 at 6:42 AM Lim Kai Wey <limkaiwey@gmail.com> wrote:
Besides that, I do recommend Morzilla's Django Tutorial too, as it covers more in the tutorial compared to Django's own tutorial.Link:Regards,Kai Wey--On Thu, Aug 1, 2019 at 6:35 PM Lim Kai Wey <limkaiwey@gmail.com> wrote:I do agree that you Sammy could try changing the mysite/mysite/setting.pyINSTALLED_APPS=[
'polls.apps.PollsConfig',
""""
The rest of the code
"""
]And I too was wondering if he placed 'polls/' as his URL in mysite/polls/urls.py that cause the error. (IF that is the case)But in my opinion, for future development purposes and good practice to know which django app you are at while browsing at webpage.Remain the mysite/mysite/urls.py as it is. The code should be:from django.contrib import adminfrom django.urls import include, pathurlpatterns = [path('polls/', include('polls.urls')),path('admin/', admin.site.urls),]and instead change the mysite/polls/urls.py The code should be:from django.urls import pathfrom . import viewsurlpatterns = [path('', views.IndexView.as_view(), name='index'),]Please do correct me if I am wrong. Hope it helps.Regards,Kai WeyOn Thu, Aug 1, 2019 at 6:17 PM Franck Tchouanga <ftchouanga@gmail.com> wrote:I wanted to precise at the level of the syntax from what I wrote above
Urlpatterns = [
Path(' ',include('polls.URLs')),
Path('admin/', admin.site.urls),
]
--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/a79f2408-a229-4048-a859-bda8e0675e9e%40googlegroups.com.
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/dV46T9ZqPhA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPcVkjiSOhVSGpUYBSfAAo%2BLXdRrR6_k3-ydjXu76ZatsbNmZQ%40mail.gmail.com.
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHUCoeigYRgPLSyjdCdBC3uCWsasZZQwGzGT0pxxKatOFShpaw%40mail.gmail.com.

No comments:
Post a Comment