Form not visible on the add page

14 views
Skip to first unread message

Vikram Jaiswal

unread,
May 3, 2020, 10:35:22 AM5/3/20
to Django users
I am not able to see the form on admin page to add the data
First
      -First
             -settings.py
             -urls.py
      -travello
             -migrations
             -urls.py
             -models.py
             -admin.py

here is the models.py
from django.db import models

# Create your models here.
class Destination(models.Model):
#id : int
name : models.CharField(max_length=100)#str
img : models.ImageField(upload_to='pics')#str
desc : models.CharField(max_length=100)#str
price : models.IntegerField()#int
offer : models.BooleanField(default=False)#bool


here is the admin.py
from django.contrib import admin
from travello.models import Destination




# Register your models here.
admin.site.register(Destination)

Please help!
Error.png

Jorge Gimeno

unread,
May 3, 2020, 10:46:03 AM5/3/20
to django...@googlegroups.com
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6f1d4cad-2d83-454d-b49b-7eaaef5b0ea8%40googlegroups.com.

This is related to your previous post.  The fields aren't showing up, and they won't until they are properly defined and the database migration is done.

-Jorge

Amitesh Sahay

unread,
May 3, 2020, 10:59:36 AM5/3/20
to django...@googlegroups.com
did you migrate the MODEL?

Regards,
Amitesh Sahay
91-750 797 8619


Nagaraju Singothu

unread,
May 3, 2020, 11:22:19 AM5/3/20
to django...@googlegroups.com
Sir,

    Please try this...............

--
Screenshot (58).png
Screenshot (60).png
Screenshot (59).png

Nagaraju Singothu

unread,
May 3, 2020, 11:35:20 AM5/3/20
to django...@googlegroups.com
Sir,

    now this is working...plz try this
Screenshot (59).png
Screenshot (62).png
Screenshot (58).png
Screenshot (60).png
Reply all
Reply to author
Forward
0 new messages