On Monday, 21 October 2013 01:24:22 UTC+1, Ideo Rex wrote:

> Hello,
> I'm relatively new to Django. So I have a working (local) web application. 
> I can create new model objects from the admin site, but I would like my 
> users to be able to create their own objects and save them to the database. 
> I'm really confused on the over arching process on how this is down and I 
> would appreciate it if someone could lead me in the correct direction.
>
> I want to allow my users:
> 1. fill in information on a page
> 2. submit this page to the database
> 3. redirect them to a page that reflects their input ("You successfully 
> submitted this {{title}}")
>
> Thanks
>


This is indeed a very simple request. And it is fully covered in the 
documentation about forms: 
see https://docs.djangoproject.com/en/1.5/topics/forms/ for an 
introduction, 
and https://docs.djangoproject.com/en/1.5/topics/forms/modelforms/ for the 
specifics about saving form data to a model instance.

(The other answer to this question, from Sergiy, seems to have completely 
missed the point with his link to the auth docs, unfortunately.) 
--
DR.

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1d9a7cea-b991-42be-84d4-bf13f74eeaa3%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to