Can anyone sove my issue please!

17 views
Skip to first unread message

Parvez Khan Pathan

unread,
Oct 22, 2019, 7:02:29 AM10/22/19
to Django users

Parvez Khan Pathan

unread,
Oct 22, 2019, 7:03:56 AM10/22/19
to Django users

Creating forms from models issue!



On Tuesday, 22 October 2019 16:32:29 UTC+5:30, Parvez Khan Pathan wrote:

laya Mahmoudi

unread,
Oct 22, 2019, 7:08:34 AM10/22/19
to django...@googlegroups.com
Hi,
In your form.py , put fields:"__all__"

در تاریخ سه‌شنبه ۲۲ اکتبر ۲۰۱۹،‏ ۱۴:۳۳ Parvez Khan Pathan <iamparv...@gmail.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/3152b194-5b13-4abb-a38a-1f1708f79bd3%40googlegroups.com.

Parvez Khan Pathan

unread,
Oct 22, 2019, 7:14:37 AM10/22/19
to Django users

pyissue1.png

Sir Already Added! still got error!!!


On Tuesday, 22 October 2019 16:38:34 UTC+5:30, laya Mahmoudi wrote:
Hi,
In your form.py , put fields:"__all__"

در تاریخ سه‌شنبه ۲۲ اکتبر ۲۰۱۹،‏ ۱۴:۳۳ Parvez Khan Pathan <iamparv...@gmail.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...@googlegroups.com.

Parvez Khan Pathan

unread,
Oct 22, 2019, 7:18:43 AM10/22/19
to Django users

pyissue2.png

Even check out my views.py file....

Anirudh Jain

unread,
Oct 22, 2019, 7:23:22 AM10/22/19
to django...@googlegroups.com
What is the error? 

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/4ad394df-27b8-4e68-9bc5-86a727945f37%40googlegroups.com.

Sundararajan Seshadri

unread,
Oct 22, 2019, 7:23:47 AM10/22/19
to Django users
Have a look at the stackoverflow page. Does the problem still remain?


On Tuesday, October 22, 2019 at 4:32:29 PM UTC+5:30, Parvez Khan Pathan wrote:

laya Mahmoudi

unread,
Oct 22, 2019, 7:39:08 AM10/22/19
to django...@googlegroups.com
Now what is the error??

در تاریخ سه‌شنبه ۲۲ اکتبر ۲۰۱۹،‏ ۱۴:۴۵ Parvez Khan Pathan <iamparv...@gmail.com> نوشت:
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/979e453a-76a3-4ef0-a179-6131e7580611%40googlegroups.com.

Parvez Khan Pathan

unread,
Oct 22, 2019, 7:51:34 AM10/22/19
to django...@googlegroups.com

laya Mahmoudi

unread,
Oct 22, 2019, 8:01:33 AM10/22/19
to django...@googlegroups.com
At first, you don't need to write a model for user whith this fields. Because django user has all this fields. After that please write some fields for meta like first_name, email.password etc

در تاریخ سه‌شنبه ۲۲ اکتبر ۲۰۱۹،‏ ۱۵:۲۱ Parvez Khan Pathan <iamparv...@gmail.com> نوشت:

Parvez Khan Pathan

unread,
Oct 22, 2019, 8:08:42 AM10/22/19
to Django users
Problem Solved : that was silly mistyake

i just put extra space in '__all__'
its solved!!!

thanks to you alll for response and help....

Parvez Khan Pathan

unread,
Oct 22, 2019, 8:12:15 AM10/22/19
to django...@googlegroups.com
thanks for response sir...

Problem solved... It was silly mistake... 
I put extra space in '__all__'

See which i post image its clearly seen extra space over there in meta class...

laya Mahmoudi

unread,
Oct 22, 2019, 8:14:40 AM10/22/19
to django...@googlegroups.com
Ok good,
But I say another time. You don't need to write model for user. Your code needs to be better.

در تاریخ سه‌شنبه ۲۲ اکتبر ۲۰۱۹،‏ ۱۵:۴۱ Parvez Khan Pathan <iamparv...@gmail.com> نوشت:

Parvez Khan Pathan

unread,
Oct 22, 2019, 8:16:46 AM10/22/19
to django...@googlegroups.com
okay! 

But I'm new to django and learn frim udemy. That's why!. 

I will remember your advise. 

Thanks! 

Reply all
Reply to author
Forward
0 new messages