Tuesday, July 10, 2012

Form 'POST' to a database

I honestly just have a general question.

If I have one database set in my settings file in settings.py and I try to execute a simple HTML Form using 'POST' how do I get that data into my PostgreSQL database?

In my view do I have to interface with my model and thus the model takes care of the rest?


This link seems to be down the right road I think?

I'm sorry if this question does not make a lot of sense but I really am trying to find some direction as to how once I have a view, model, urlconf, and settings file with a database tied to it (i checked using the import django.db connection/cursor test) how do I get the request.POST data sent to my database?

Thanks,

JJ

--
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/-/Sc5jmrK2g9oJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate