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
>
> On
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 %}*
This
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:
>
> Hi
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 t
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 co
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 fo
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 field
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
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:
email
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 }}
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
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 y
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 an
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
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 django-users@googlegr
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 %}*
* {% csrf_tok
16 matches
Mail list logo