Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 418 Bytes

ADMIN.md

File metadata and controls

17 lines (12 loc) · 418 Bytes

Let's start by creating a superuser for the admin (if you have not already):

$ python manage.py createsuperuser

Note: And answer the questions that the command line will ask you (username, email & password)

Now you can login to the /admin

Adding more models to the admin:

Add the following to the employees/admin.py file

from api.models import Employee
admin.site.register(Employee)