Enes
Enes

Reputation: 341

Django APPEND_SLASH doesn't work properly

if i write example.com/example-example it is working.

However if i write example.com/example-example/ it doesn't work

APPEND_SLASH=True in settings.py

  path('<slug:slug>',post_detail,name="post_detail"),

Upvotes: 0

Views: 192

Answers (1)

rahul.m
rahul.m

Reputation: 5854

try this

path('<slug:slug>/',post_detail,name="post_detail"),

refer this

Upvotes: 3

Related Questions