Re: creating a button using dgango
Thanks Nik it working :) On Tuesday, September 18, 2012 10:40:59 PM UTC+2, Nikolas Stevenson-Molnar wrote: > > Does this get at what you want to accomplish? > https://docs.djangoproject.com/en/1.1/ref/contrib/formtools/form-wizard/ > > _Nik > > On 9/18/2012 1:00 PM, Ndlovu wrote: > > How do I add a simple button, that does fuction loading another > > *.html page. Basically a basic next button. > > > > My forms class looks like: > > > > forms.py: > > > > # -*- coding: utf-8 -*- > > from django import forms > > > > class ButtonForm(forms.Form): > > > > #what do put here as for the button > > ) > > > > > > The views class: > > > > views.py: > > > > # -*- coding: utf-8 -*- > > from django.shortcuts import render_to_response > > from django.template import RequestContext > > from django.http import HttpResponseRedirect > > from django.core.urlresolvers import reverse > > > > from myproject.myapp.forms import ButtonForm > > > > def list(request): > > > > #This is where I need to implement the button action. > > > > where I add the button on the *.html file: > > > > enctype="multipart/form-data"> > > {% csrf_token %} > > > > /> > > > > > > thanks. > > > > -- > > 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/-/6VXaVdPZnvIJ. > > 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. > > -- 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/-/eR6IQ0nT9BMJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Re: creating a button using dgango
Does this get at what you want to accomplish? https://docs.djangoproject.com/en/1.1/ref/contrib/formtools/form-wizard/ _Nik On 9/18/2012 1:00 PM, Ndlovu wrote: > How do I add a simple button, that does fuction loading another > *.html page. Basically a basic next button. > > My forms class looks like: > > forms.py: > > # -*- coding: utf-8 -*- > from django import forms > > class ButtonForm(forms.Form): > > #what do put here as for the button > ) > > > The views class: > > views.py: > > # -*- coding: utf-8 -*- > from django.shortcuts import render_to_response > from django.template import RequestContext > from django.http import HttpResponseRedirect > from django.core.urlresolvers import reverse > > from myproject.myapp.forms import ButtonForm > > def list(request): > > #This is where I need to implement the button action. > > where I add the button on the *.html file: > > > {% csrf_token %} > > > > > thanks. > > -- > 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/-/6VXaVdPZnvIJ. > To post to this group, send email to django-users@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
creating a button using dgango
How do I add a simple button, that does fuction loading another *.html page. Basically a basic next button. My forms class looks like: forms.py: # -*- coding: utf-8 -*- from django import forms class ButtonForm(forms.Form): #what do put here as for the button ) The views class: views.py: # -*- coding: utf-8 -*- from django.shortcuts import render_to_response from django.template import RequestContext from django.http import HttpResponseRedirect from django.core.urlresolvers import reverse from myproject.myapp.forms import ButtonForm def list(request): #This is where I need to implement the button action. where I add the button on the *.html file: {% csrf_token %} thanks. -- 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/-/6VXaVdPZnvIJ. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.