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 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 %}*
>
> *<form method="POST" action=""> {% csrf_token %}            *
> *        {{ form.as_p }} *
> *    <footer>*
> *        <button type="submit" class="button">Confirmer</button>*
> *    </footer>    *
> *</form>*
>
> *{% endblock %}*
>
>
>
> but in my base.html i have already this form and this classes:
>
>
> *<form action="" class="sky-form">*
> *    <section>*
> *        <label class="input">*
> *                <input type="password" placeholder="Confirmation">*
> *                <b class="tooltip tooltip-bottom-right">Retaper votre mot 
> de passe</b>*
> *        </label>*
> *    </section>*
> *.*
> *.*
> *.*
> *.*
> *</form>*
>
>
> where should i put *{% block content %}* and *{% endblock %}* in my 
> base.html!!!!!!
>
> i've also followed the tutorial from the official docs, but it did,'t work 
> out for me
>
> i'm sorry if my question seem silly!
> Thanks in advance.
>

-- 
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/e94b706c-29e7-4b52-8312-cf0f030d9987%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to