I am trying to use ModelForm:
from django.db import models
from django.forms import ModelForm
class Car(models.Model):
carnumber = models.CharField(max_leng
You missed the basic step of registering your model to the admin. Please do that and that should work for you.
In the admin.py
file of your app add these lines:
from yourapp.models import yourmodel
admin.site.register(yourmodel)
Here yourapp
and yourmodel
needs to be replaced with the correct names for your app and model.