Re: Error: name 'include' is not defined
Perfect, thank you Larry Stevens (571) 289-7658 On Wed, Mar 22, 2023 at 9:49 AM Harouna Diallo wrote: > You must Import include : from django.urls import path, include > > On Wed, Mar 22, 2023 at 12:53 PM Larry Stevens > wrote: > >> Hello, >> >> I'm brand new to Django taking an online course in Python. >> I created a project named 'django_test' and I'm in the process of >> creating a very simple app named 'Hello_World'. >> >> I'm trying to modify the urls.py file in my 'django_test' project for the >> app 'hello_world'. >> My code in urls.py follows: >> from django.contrib import admin >> from django.urls import path >> urlpatterns = [ >> path('admin/', admin.site.urls), >> path('hello_world/', include('hello_world.urls')) >> ] >> >> The return error is name 'include' is not defined >> >> I tried to import include with the statement from django.conf.urls >> import include >> which also failed. >> >> Thank you for reading my post. >> >> Larry Stevens >> >> -- >> 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 view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%40googlegroups.com?utm_medium=email_source=footer> >> . >> > -- > 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/hi9S4ZEcla4/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAO73PDopg--cbbBgX3OQuNwfp%3DyMpSf_Uzga894CXvzOAy1mAA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAO73PDopg--cbbBgX3OQuNwfp%3DyMpSf_Uzga894CXvzOAy1mAA%40mail.gmail.com?utm_medium=email_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 django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAC%3DJtzTefewf0Eyse96_StScLAb6ps7bqNTpHT8rybLTB-5QOQ%40mail.gmail.com.
Re: Error: name 'include' is not defined
How can I use for dental clinic, For example, do I need to include 32 fields from the model to specify 32 teeth, or is there a way to do it in one? On Wednesday, March 22, 2023 at 8:24:18 PM UTC+5 Larry Stevens wrote: > Perfect, problem solved. > Thank you so much Jeman, Harouna, and Robinson. > Greatly appreciated. > > On Wednesday, March 22, 2023 at 11:16:58 AM UTC-4 Robinson wrote: > >> import path, include >> >> >> On Wed, Mar 22, 2023 at 4:49 PM Harouna Diallo >> wrote: >> >>> You must Import include : from django.urls import path, include >>> >>> On Wed, Mar 22, 2023 at 12:53 PM Larry Stevens >>> wrote: >>> >>>> Hello, >>>> >>>> I'm brand new to Django taking an online course in Python. >>>> I created a project named 'django_test' and I'm in the process of >>>> creating a very simple app named 'Hello_World'. >>>> >>>> I'm trying to modify the urls.py file in my 'django_test' project for >>>> the app 'hello_world'. >>>> My code in urls.py follows: >>>> from django.contrib import admin >>>> from django.urls import path >>>> urlpatterns = [ >>>> path('admin/', admin.site.urls), >>>> path('hello_world/', include('hello_world.urls')) >>>> ] >>>> >>>> The return error is name 'include' is not defined >>>> >>>> I tried to import include with the statement from django.conf.urls >>>> import include >>>> which also failed. >>>> >>>> Thank you for reading my post. >>>> >>>> Larry Stevens >>>> >>>> -- >>>> 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/4e2c7426-b451-4542-9629-52d4f4707a94n%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%40googlegroups.com?utm_medium=email_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 django-users...@googlegroups.com. >>> >> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/CAO73PDopg--cbbBgX3OQuNwfp%3DyMpSf_Uzga894CXvzOAy1mAA%40mail.gmail.com >>> >>> <https://groups.google.com/d/msgid/django-users/CAO73PDopg--cbbBgX3OQuNwfp%3DyMpSf_Uzga894CXvzOAy1mAA%40mail.gmail.com?utm_medium=email_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 django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/09b7fb6b-f025-49a9-b46a-ad456afea0dan%40googlegroups.com.
Re: Error: name 'include' is not defined
Perfect, problem solved. Thank you so much Jeman, Harouna, and Robinson. Greatly appreciated. On Wednesday, March 22, 2023 at 11:16:58 AM UTC-4 Robinson wrote: > import path, include > > > On Wed, Mar 22, 2023 at 4:49 PM Harouna Diallo wrote: > >> You must Import include : from django.urls import path, include >> >> On Wed, Mar 22, 2023 at 12:53 PM Larry Stevens >> wrote: >> >>> Hello, >>> >>> I'm brand new to Django taking an online course in Python. >>> I created a project named 'django_test' and I'm in the process of >>> creating a very simple app named 'Hello_World'. >>> >>> I'm trying to modify the urls.py file in my 'django_test' project for >>> the app 'hello_world'. >>> My code in urls.py follows: >>> from django.contrib import admin >>> from django.urls import path >>> urlpatterns = [ >>> path('admin/', admin.site.urls), >>> path('hello_world/', include('hello_world.urls')) >>> ] >>> >>> The return error is name 'include' is not defined >>> >>> I tried to import include with the statement from django.conf.urls >>> import include >>> which also failed. >>> >>> Thank you for reading my post. >>> >>> Larry Stevens >>> >>> -- >>> 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/4e2c7426-b451-4542-9629-52d4f4707a94n%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%40googlegroups.com?utm_medium=email_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 django-users...@googlegroups.com. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CAO73PDopg--cbbBgX3OQuNwfp%3DyMpSf_Uzga894CXvzOAy1mAA%40mail.gmail.com >> >> <https://groups.google.com/d/msgid/django-users/CAO73PDopg--cbbBgX3OQuNwfp%3DyMpSf_Uzga894CXvzOAy1mAA%40mail.gmail.com?utm_medium=email_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 django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9d071aa8-0bec-4b1d-82a7-e34169bbd96bn%40googlegroups.com.
Re: Error: name 'include' is not defined
import path, include On Wed, Mar 22, 2023 at 4:49 PM Harouna Diallo wrote: > You must Import include : from django.urls import path, include > > On Wed, Mar 22, 2023 at 12:53 PM Larry Stevens > wrote: > >> Hello, >> >> I'm brand new to Django taking an online course in Python. >> I created a project named 'django_test' and I'm in the process of >> creating a very simple app named 'Hello_World'. >> >> I'm trying to modify the urls.py file in my 'django_test' project for the >> app 'hello_world'. >> My code in urls.py follows: >> from django.contrib import admin >> from django.urls import path >> urlpatterns = [ >> path('admin/', admin.site.urls), >> path('hello_world/', include('hello_world.urls')) >> ] >> >> The return error is name 'include' is not defined >> >> I tried to import include with the statement from django.conf.urls >> import include >> which also failed. >> >> Thank you for reading my post. >> >> Larry Stevens >> >> -- >> 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 view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%40googlegroups.com >> <https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%40googlegroups.com?utm_medium=email_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 django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAO73PDopg--cbbBgX3OQuNwfp%3DyMpSf_Uzga894CXvzOAy1mAA%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAO73PDopg--cbbBgX3OQuNwfp%3DyMpSf_Uzga894CXvzOAy1mAA%40mail.gmail.com?utm_medium=email_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 django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHs-6w6_shg-DEfGn_ASxdcXAJqFkZ3xO_YD7LTX1N-1U-CRnQ%40mail.gmail.com.
Re: Error: name 'include' is not defined
You must Import include : from django.urls import path, include On Wed, Mar 22, 2023 at 12:53 PM Larry Stevens wrote: > Hello, > > I'm brand new to Django taking an online course in Python. > I created a project named 'django_test' and I'm in the process of creating > a very simple app named 'Hello_World'. > > I'm trying to modify the urls.py file in my 'django_test' project for the > app 'hello_world'. > My code in urls.py follows: > from django.contrib import admin > from django.urls import path > urlpatterns = [ > path('admin/', admin.site.urls), > path('hello_world/', include('hello_world.urls')) > ] > > The return error is name 'include' is not defined > > I tried to import include with the statement from django.conf.urls > import include > which also failed. > > Thank you for reading my post. > > Larry Stevens > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%40googlegroups.com?utm_medium=email_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 django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAO73PDopg--cbbBgX3OQuNwfp%3DyMpSf_Uzga894CXvzOAy1mAA%40mail.gmail.com.
Re: Error: name 'include' is not defined
hi, replace the line "from django.urls import path" to "from django.urls import path, include" On Wed, 22 Mar, 2023, 6:22 pm Larry Stevens, wrote: > Hello, > > I'm brand new to Django taking an online course in Python. > I created a project named 'django_test' and I'm in the process of creating > a very simple app named 'Hello_World'. > > I'm trying to modify the urls.py file in my 'django_test' project for the > app 'hello_world'. > My code in urls.py follows: > from django.contrib import admin > from django.urls import path > urlpatterns = [ > path('admin/', admin.site.urls), > path('hello_world/', include('hello_world.urls')) > ] > > The return error is name 'include' is not defined > > I tried to import include with the statement from django.conf.urls > import include > which also failed. > > Thank you for reading my post. > > Larry Stevens > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%40googlegroups.com?utm_medium=email_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 django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALmE1TsP%2BkUP8XKc8-h-ambaiX7mkHfF%3DqSWOFzTY0iqFG4q9w%40mail.gmail.com.
Error: name 'include' is not defined
Hello, I'm brand new to Django taking an online course in Python. I created a project named 'django_test' and I'm in the process of creating a very simple app named 'Hello_World'. I'm trying to modify the urls.py file in my 'django_test' project for the app 'hello_world'. My code in urls.py follows: from django.contrib import admin from django.urls import path urlpatterns = [ path('admin/', admin.site.urls), path('hello_world/', include('hello_world.urls')) ] The return error is name 'include' is not defined I tried to import include with the statement from django.conf.urls import include which also failed. Thank you for reading my post. Larry Stevens -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4e2c7426-b451-4542-9629-52d4f4707a94n%40googlegroups.com.