#music/admin.py
from django.contrib import admin
from .models import Album
admin.site.
register(Album)
-----------------------------
#powershell
python manage.py
createsuperuser
Username (leave blank to use 'bob'): chuanshuo
Email address: chuanshuo@example.com
Password:
Password (again):
Superuser created successfully.
python manage.py runserver
No comments:
Post a Comment