DEV Community

Vicente G. Reyes
Vicente G. Reyes

Posted on

4

Remove "%...% in urls

1

My urls in django have %.... How can I change that? At first this was ok but suddenly changed at some point in my day. My views, models and urls are as follow:

class Rant(UUIDModel, TitleSlugDescriptionModel, TimeStampedModel, models.Model)
    categories = models.ManyToManyField(Category)

    def slugify_function(self, content):
        return content.replace("_", "-").lower()

    def get_absolute_url(self):

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay