May 2018
Beginner to intermediate
526 pages
11h 57m
English
Edit the admin.py file of the images application and register the Image model into the administration site, as follows:
from django.contrib import adminfrom .models import Image@admin.register(Image)class ImageAdmin(admin.ModelAdmin): list_display = ['title', 'slug', 'image', 'created'] list_filter = ['created']
Start the development server with the python manage.py runserver command. Open http://127.0.0.1:8000/admin/ in your browser, and you will see the Image model in the administration site, like this:

Read now
Unlock full access