how to prepopulated a field in django, how to generate a slug for the titlefrom django.contrib import admin from .models import Message, Channel, Profile @admin.register(Channel) class ChannelAdmin(admin.ModelAdmin): list_display = ('title', 'desc') prepopulated_fields = {'slug':('title',) } python manage.py createsuperuser #Put this in your terminal, then input your username, email address, and password twice.