MyAwesomeCart | A Django E commerce website | Ecommerce library
kandi X-RAY | MyAwesomeCart Summary
kandi X-RAY | MyAwesomeCart Summary
A Django E commerce website
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of MyAwesomeCart
MyAwesomeCart Key Features
MyAwesomeCart Examples and Code Snippets
Community Discussions
Trending Discussions on MyAwesomeCart
QUESTION
I want my URL's to show slug instead of id. After following a Youtube video I reached to a stage where admin is automatically creating slugs when I save my products. But still I can not figure out how to show slug in url of detailsview.
I created a utils.py in my project folder which is named as myawesomecart
...ANSWER
Answered 2020-Aug-19 at 07:45You have to use the slug
instead of the id
in your url pattern:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install MyAwesomeCart
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page