I have two urls.One is for blogs and the other is for games.I have app for games and blogs.
path('',include('games.urls')),
path('blog',include('blogs.urls')),
My gameapp url is like this:
path('<slug:platform>/<slug:slug>',views.oyun,name='detail'),
My blogapp urls are like this:
path('', views.blogs, name='blog'),
path('/<slug:slug>', views.blog_id, name='blog_id'),
This url is going to(path('/<slug:slug>', views.blog_id, name='blog_id')), views.oyun so it is giving error. How can i solve this?
Views.py
def blogs(request):
blogss=blog.objects.all().order_by('-created')
return render(request,"blog.html",{"blogs":blogss})
def blog_id(request,slug):
blog_id=blog.objects.get(seo_url=slug)
return render(request,"blog-writings.html",{"blog_id":blog_id})
def oyun(request,platform,slug):
oyun = Oyunlar.objects.get(slugyap=slug)
...