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)
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 <nasr528@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 errorsam 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+unsubscribe@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.
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/CAL8t8eoNg68Qd%3DC3OYWonaLs%3DvAKcnzDFxxbrcNK65BJ%3DtnwnQ%40mail.gmail.com.
No comments:
Post a Comment