https://github.com/programmerhasan/django-auto-slugify
Automatically generate unique slugs from any Django model field.
https://github.com/programmerhasan/django-auto-slugify
django
Last synced: 6 months ago
JSON representation
Automatically generate unique slugs from any Django model field.
- Host: GitHub
- URL: https://github.com/programmerhasan/django-auto-slugify
- Owner: ProgrammerHasan
- License: other
- Created: 2025-08-14T14:38:05.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-08-14T16:53:07.000Z (7 months ago)
- Last Synced: 2025-08-14T18:34:39.620Z (7 months ago)
- Topics: django
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# django-auto-slugify
Automatically generate unique slugs from any Django model field.
## Features
- Generate slug from any source field
- Ensure uniqueness automatically
- Add random suffix if duplicate found
- Easy to use in models
## Installation
```bash
pip install django-auto-slugify
```
### Usage
```
from django.db import models
from auto_slugify import AutoSlugField
class BlogPost(models.Model):
title = models.CharField(max_length=200)
slug = AutoSlugField(from_field="title")
```