Re: Use custom HTML to render forms

2014-04-11 Thread Nikolas Stevenson-Molnar
I'm not clear from the example which of the code from base you want to keep, and which you want to be overriden. What should the resulting HTML look like? _Nik On 4/3/2014 2:52 AM, Fred DJar wrote: > actually i want the exact opposite > i want to KEEP my html with all the tags like and > >

Re: Use custom HTML to render forms

2014-04-11 Thread Lucas Klassmann
Hi, Let me see if i understand, you want put and per field? Because if you want customize per field, you can iterate in fields of form like this: *{% for field in form %}* *{{ field.label }}* * {{ field }}* *{% endfor %}*

Re: Use custom HTML to render forms

2014-04-11 Thread Fred DJar
Thanks for the response.But in my case i use customized html tags like and : so how to deal with html tags like and and add them to the email param On Friday, 11 April 2014 12:08:19 UTC+1, Lucas Klassmann wrote: > >

Re: Use custom HTML to render forms

2014-04-11 Thread Lucas Klassmann
Hi Fred. You must put {% block %} {% endblock %} in html where you want allow override in others base.html descendants. Like this: # base.html {% block title %}{% endblock %} {% block fields %}{% endblock %} # other.html {% extends "base.html" %} {% block

Re: Use custom HTML to render forms

2014-04-11 Thread Fred DJar
ANY IDEA GUYS? On Thursday, 27 March 2014 13:48:47 UTC, Fred DJar wrote: > > Hello, > I am a beginner in python and django programming, i have a question that > already have been asked in stackoverflow and many forums, but i couldnt > solve my own. > > this exactly my situation: > > this the

Re: Use custom HTML to render forms

2014-04-03 Thread Fred DJar
actually i want the exact opposite i want to KEEP my html with all the tags like and On Tuesday, 1 April 2014 02:53:00 UTC+1, Nikolas Stevenson-Molnar wrote: > > It depends on what you want to do. If you want to override/replace the > form in base.html, then place the block tag around the

Re: Use custom HTML to render forms

2014-04-03 Thread Fred DJar
but i have other tags in my html like and !! how can i render them ?? On Wednesday, 2 April 2014 03:49:39 UTC+1, somecallitblues wrote: > > You can use {{form.field_name}} to render the input tag, > {{form.field_name.label}} to render the label > and {{form.field_name.errors}} to render

Re: Use custom HTML to render forms

2014-04-03 Thread Fred DJar
I ve posted my question and waited 5 days and it seems that my post got lost and people didn't pay attention to it but when i added my reply asking for help people generously replied to my question and i thank them for that. iam sorry but your reply is irrelevant and you're just being mean!! On

Re: Use custom HTML to render forms

2014-04-03 Thread Fred DJar
Thanks for the response. i think that you understand my problem and my question. so to clarify thinks in my case i should do this for example: in my html i have this: and i should declare my email parameter like this:

Re: Use custom HTML to render forms

2014-04-01 Thread Mario Gudelj
You can use {{form.field_name}} to render the input tag, {{form.field_name.label}} to render the label and {{form.field_name.errors}} to render field errors. Simple example: {{ reorder_form.comments.label }}

Re: Use custom HTML to render forms

2014-04-01 Thread Mike Dewhirst
On 1/04/2014 8:12 PM, Daniel Roseman wrote: On Tuesday, 1 April 2014 00:40:44 UTC+1, Fred DJar wrote: HELP PLEASE I agree with DR but it might be interesting to know what your problem might be ... No. You don't get to demand that people help you. If someone knows the answer to your

Re: Use custom HTML to render forms

2014-04-01 Thread Daniel Roseman
On Tuesday, 1 April 2014 00:40:44 UTC+1, Fred DJar wrote: > > HELP PLEASE > No. You don't get to demand that people help you. If someone knows the answer to your question, and they have time to answer - and if they can work out what you're asking, which isn't obvious - they will reply. But if

Re: Use custom HTML to render forms

2014-03-31 Thread Camilo Torres
You must think on what is the output HTML you need to generate. Depending on that, you may be able to figure where to put the {% block content %} tags. What is the output HTML you expect? On Thursday, March 27, 2014 9:18:47 AM UTC-4:30, Fred DJar wrote: > > Hello, > I am a beginner in python

Re: Use custom HTML to render forms

2014-03-31 Thread Nikolas Stevenson-Molnar
It depends on what you want to do. If you want to override/replace the form in base.html, then place the block tag around the form, like so (in base.html): {% block content %} ... {% endblock %} Any template extending from base.html which defines a "content" block will override

Re: Use custom HTML to render forms

2014-03-31 Thread Fred DJar
HELP PLEASE -- 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

Use custom HTML to render forms

2014-03-27 Thread Fred DJar
Hello, I am a beginner in python and django programming, i have a question that already have been asked in stackoverflow and many forums, but i couldnt solve my own. this exactly my situation: this the code in my app html page: *{% extends 'base.html' %}* *{% block content %}* * {%