xxxxxxxxxx
python manage.py createsuperuser
#Put this in your terminal, then input your username, email address, and password twice.
xxxxxxxxxx
from 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',) }
xxxxxxxxxx
how to prepopulated a field in django, how to generate a slug for the title