--- id: django-autoslug version: "1.9.9" license: GNU Lesser General Public License (LGPL), Version 3 license_treatment: copyleft maintenance: aging --- # django-autoslug — An automated slug field for Django. License: copyleft · Maintenance: aging · Downloads: 408.6K/mo ## What it is and what it does django-autoslug is a reusable Django library that adds an AutoSlugField to your models—a specialized CharField that automatically generates URL-safe slugs from other model fields. Instead of manually creating and maintaining slug values, you configure the field to populate itself from a source field (like a title), and it handles the conversion to lowercase, hyphenated text automatically. The field enforces uniqueness constraints, optionally scoped to other fields, so you can have unique slugs per author or per publication date if needed. The main value is reducing boilerplate in Django projects: you avoid writing custom save() methods or signals to generate slugs, and you get built-in support for custom slugification functions to handle non-ASCII characters and internationalization. The field is highly configurable—you can supply a lambda to derive the slug from multiple fields, define which other fields must be considered when checking uniqueness, and plug in your own slugify function. It has no external runtime dependencies beyond Django itself. Use it for: - Auto-generate URL slugs for blog posts, articles, or product pages from their titles without manual slug management. - Enforce unique slugs per author or category by scoping uniqueness constraints to related fields. - Handle international content with custom slugify functions that transliterate non-ASCII characters appropriately. - Reduce boilerplate in Django models by replacing manual slug-generation logic with a declarative field. - Maintain slug consistency across model updates—the field regenerates automatically when the source field changes. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides a Django model field that automatically generates and maintains URL-friendly slugs from other fields, with built-in uniqueness enforcement and support for custom slugification logic. Yes, with conditions. django-autoslug is stable, well-established (since 2009), and solves a common Django problem cleanly with zero external dependencies. However, the last release was April 2023 and maintenance is aging; verify compatibility with your current Django version before adopting. No known security vulnerabilities. The LGPL license is permissive for most use cases but requires derivative works to remain open-source. ## Install pip install django-autoslug uv add django-autoslug poetry add django-autoslug ## Installing django-autoslug Before you install: Low friction install with no runtime dependencies. Last release was over a year ago (April 2023) and the repository shows aging maintenance status, though it remains active and archived status is false. License in practice: Licensed under GNU Lesser General Public License v3 (copyleft). You may use and modify the package freely, but derivative works must also be distributed under LGPL or a compatible license. Quickstart: pip install django-autoslug from django.db.models import CharField, Model from autoslug import AutoSlugField class Article(Model): title = CharField(max_length=200) slug = AutoSlugField(populate_from='title') Requires Django 3.2 or higher and Python 3.7 or higher. Verify before relying: - Whether the aging maintenance status (last release April 2023) affects compatibility with current Django versions beyond 3.2. - Real-world performance characteristics when handling large numbers of unique slug collisions. ## Package facts - License: GNU Lesser General Public License (LGPL), Version 3 (copyleft) - Python support: unspecified - Install friction: low - Maintenance: aging - Downloads: 408.6K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags django slug field auto-generate, django url-friendly slug, django unique slug field, django autoslug, django slug from field, django i18n slug, django slug uniqueness, django-field, url-slug, i18n [View on SkillFed](https://skillfed.io/packages/django-autoslug) · [View on PyPI](https://pypi.org/project/django-autoslug/)