more info to the user

11 views
Skip to first unread message

heni yemun

unread,
Aug 15, 2012, 1:36:07 AM8/15/12
to django...@googlegroups.com
Hi,
I have set up a UserProfile using the technique outlined in the standard. What i can do give values to the fields in the user profile model. So if i've a city field in the UserProfile, how can i put the value 'Asmara' to it and save it in the database?

Second question is whenever i try to save a field it says 'fieldname cannot be NULL'. What is this? THANK YOU!

Mario Gudelj

unread,
Aug 15, 2012, 3:21:51 AM8/15/12
to django...@googlegroups.com

For the first question you should look at Forms topic in django docs. For the second one take a look at models docs for the info on how to mark the field as not required.

M

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/kNwyJrDyyeUJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Reply all
Reply to author
Forward
0 new messages