.model class not added in localhost:8000/admin

24 views
Skip to first unread message

KUMBHAGIRI SIVAKRISHNA

unread,
Jun 29, 2019, 8:36:17 AM6/29/19
to Django users
'Destination'  class from models.py cannot add to the http://localhost:8000/admin/  
please help me ,give if any suggestions
httplocalhost8000admin.png
travell.admin.png
travello.models.png

Joe Reitman

unread,
Jun 29, 2019, 9:00:36 AM6/29/19
to Django users
In your Destination class you have to return a string representation of the fields you to display in Admin.

KUMBHAGIRI SIVAKRISHNA

unread,
Jun 29, 2019, 1:17:39 PM6/29/19
to django...@googlegroups.com
no need of return statement.
now it's working without retrun and same as per above coding without any changes
thanks for your valuable information
.


--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/bc60e0f3-7b91-4ef4-b0f4-268209fb38b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

KUMBHAGIRI SIVAKRISHNA

unread,
Jun 29, 2019, 1:18:56 PM6/29/19
to django...@googlegroups.com
previously I give wrong app configuration
two same app configuration gave in two apps.so that makes irrespective result
Reply all
Reply to author
Forward
0 new messages