Hi,

Please follow these docs
https://docs.djangoproject.com/en/3.1/ref/urls/#include

On Thu, Feb 18, 2021 at 12:12 PM Peter Kirieny <kirienype...@gmail.com>
wrote:

>     if self.pattern.name is not None and ":" in self.pattern.name:
> TypeError: argument of type 'type' is not iterable
>
> that's the error
>
> On Thu, 18 Feb 2021 at 09:39, Peter Kirieny <kirienype...@gmail.com>
> wrote:
>
>> thanks sir
>> that's done though the error still persists
>>
>> On Thu, 18 Feb 2021 at 09:32, RANGA BHARATH JINKA <
>> bharathjink...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Please check namespace='core' in project urls.py. For shops app also
>>> namespace is same. Please change this namesapce to Shops.
>>>
>>> All the best
>>>
>>> On Thu, Feb 18, 2021 at 11:56 AM Peter Kirieny <kirienype...@gmail.com>
>>> wrote:
>>>
>>>> in the projects urls.py
>>>>
>>>> from django.conf import settings
>>>> from django.conf.urls.static import static
>>>> from django.contrib import admin
>>>> from django.urls import path, include
>>>>
>>>> urlpatterns = [
>>>>     path('admin/', admin.site.urls),
>>>>     path('accounts/', include('allauth.urls')),
>>>>     path('', include('core.urls', namespace='core')),
>>>>     path('Shops/', include('Shops.urls', namespace='core')),
>>>>
>>>> ]
>>>>
>>>> if settings.DEBUG:
>>>>     import debug_toolbar
>>>>     urlpatterns += [path('__debug__/', include(debug_toolbar.urls))]
>>>>     urlpatterns += static(settings.MEDIA_URL,
>>>>                           document_root=settings.MEDIA_ROOT)
>>>>     urlpatterns += static(settings.STATIC_URL,
>>>>                           document_root=settings.STATIC_ROOT)
>>>>
>>>>
>>>> in the app's urls.py
>>>>
>>>> from django.urls import path
>>>> from .views import ShopsView
>>>>
>>>> app_name = 'Shops'
>>>>
>>>> urlpatterns = [
>>>>     path('Shops/', ShopsView.as_view(), name=ShopsView)
>>>>
>>>>
>>>> On Wed, 17 Feb 2021 at 17:52, Nicolas nasr <nasr...@gmail.com> wrote:
>>>>
>>>>> Can  you please show your urls.py file
>>>>>
>>>>> On Wednesday, February 17, 2021 at 8:31:50 AM UTC+2
>>>>> kirien...@gmail.com wrote:
>>>>>
>>>>>> someone to help me to set up urls of two different apps in django
>>>>>> project please, i keep on getting errors
>>>>>> am new
>>>>>>
>>>>> --
>>>>> 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/635506c8-35bc-4c76-a937-c992dd1312dbn%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/635506c8-35bc-4c76-a937-c992dd1312dbn%40googlegroups.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 django-users+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/django-users/CAL8t8eoNg68Qd%3DC3OYWonaLs%3DvAKcnzDFxxbrcNK65BJ%3DtnwnQ%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CAL8t8eoNg68Qd%3DC3OYWonaLs%3DvAKcnzDFxxbrcNK65BJ%3DtnwnQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>> Thanks and Regards
>>>
>>> J. Ranga Bharath
>>> cell: 9110334114
>>>
>>> --
>>> 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/CAK5m316xfF43VCU%2B6NczvpHPxSKeRsg7XFQa3GpAfHKaf2JENg%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAK5m316xfF43VCU%2B6NczvpHPxSKeRsg7XFQa3GpAfHKaf2JENg%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 django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAL8t8epM3Y9_twr%2Bg83wkYXAaHCjD3MY03RY%2B28QS8BYO2DVEA%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAL8t8epM3Y9_twr%2Bg83wkYXAaHCjD3MY03RY%2B28QS8BYO2DVEA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks and Regards

J. Ranga Bharath
cell: 9110334114

-- 
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/CAK5m31747wx_k4vRq0SW8LH75KSLE-JVffQ_Rr4MjqjQjd_8rw%40mail.gmail.com.

Reply via email to