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 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 <dem...@gmail.com <javascript:>> > escribió: > > 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 it on the url. > > > > On Wednesday, May 20, 2015 at 9:07:11 PM UTC-5, luisza14 wrote: > >> > >> And you need to put inside the form the csrf token . > >> > >> <form action="." method="post">{% csrf_token %} ... > >> > >> See: https://docs.djangoproject.com/en/1.8/ref/csrf/ > >> > >> > >> 2015-05-20 16:40 GMT-06:00 술욱 <nbe...@gmail.com>: > >>> > >>> Hi, > >>> > >>> just make sure you match your input names with what Django expects. > For example: > >>> > >>> If the HTML is <input name="username"> your Form will need a > "username" field. > >>> > >>> HTH, > >>> Norberto > >>> > >>> 2015-05-20 18:24 GMT-03:00 dk <dem...@gmail.com>: > >>> > 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 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 post to this group, send email to django...@googlegroups.com. > >>> > 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/8070bda1-e549-4a3a-89ee-7c1e1df9ff2c%40googlegroups.com > . > >>> > For more options, visit https://groups.google.com/d/optout. > >>> > >>> -- > >>> 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 post to this group, send email to django...@googlegroups.com. > >>> 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/CADut3oAaXtGjzK9repN_waOzn0SsuWkT3Mp5DYhzMWTzosUk3g%40mail.gmail.com > . > >>> For more options, visit https://groups.google.com/d/optout. > >> > >> > >> > >> -- > >> "La utopía sirve para caminar" Fernando Birri > >> > >> > > -- > > 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 <javascript:>. > > To post to this group, send email to django...@googlegroups.com > <javascript:>. > > 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/cbe6f8ba-c31e-4fe7-93b2-309178a038b8%40googlegroups.com > . > > For more options, visit https://groups.google.com/d/optout. > > > > -- > "La utopía sirve para caminar" Fernando Birri > > > > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. 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/961200a3-fd64-4b24-b1cd-b8d515949981%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.