thanks for the help,
at the end I did it with
putting it on the url as a url variable ?var=my_var
and in the view
request.POST.get("username").
thanks for the tips, super helpful.
On Thursday, May 21, 2015 at 10:29:24 PM UTC-5, luisza14 wrote:
> You don't need to alter any model, only need
You don't need to alter any model, only need to create a form class
(better) or using request.POST.get("username").
If you want to do in right way
See
https://docs.djangoproject.com/en/1.8/topics/forms/
El jueves, 21 de mayo de 2015, dk escribió:
> I am not going to update any models for the da
I am not going to update any models for the database or anything I just
need some info from the user that will be process by the view.
I could put that info in the url as a variable such /?=variable.
and then get it with
info = request.GET.get("info", "")
but its little ugly since you display i
And you need to put inside the form the csrf token .
{% csrf_token %} ...
See: https://docs.djangoproject.com/en/1.8/ref/csrf/
2015-05-20 16:40 GMT-06:00 술욱 :
> Hi,
>
> just make sure you match your input names with what Django expects. For
> example:
>
> If the HTML is your Form will need a
Hi,
just make sure you match your input names with what Django expects. For example:
If the HTML is your Form will need a "username" field.
HTH,
Norberto
2015-05-20 18:24 GMT-03:00 dk :
> i have a regular form in the template. the user and the password since the
> web designer did it like th
i have a regular form in the template. the user and the password since
the web designer did it like that.
can I still use it in django view?
any particular way that's need to be use? or we need to change it to use
django forms?
=)
--
You received this message because you are subscribed to
6 matches
Mail list logo