Python 3.8 django log 4 - Setup data model admin page
1. Go to urls.py, make sure admin path
2. Go to admin.py
type:
from django.contrib import admin
from .models import Meeting
admin.site.register(Meeting)
3. Run python manage.py runserver, go to http://127.0.0.1:8000/admin/login/?next=/admin/
4. Create supersuer
type and set username and password
python manage.py createsuperuser
5. go to admin and login
6. Tty to add meeting
two object created.

留言
張貼留言