Probelm with dojo script

6 views
Skip to first unread message

Diego Andrés Sanabria Martin (diegueus9)

unread,
Oct 13, 2009, 12:25:28 PM10/13/09
to dojang...@googlegroups.com
Hi,

I'm using dojango in a project and i have this tempalte:

{% extends "base_site.html" %}
{% block dojango_content %}
{{ block.super }}
<form action='/perfil/registro' method="POST">
{% include "form.html" %}
<input type="submit" value="Registrarme" />
</form>
{% endblock %}

But dojo is not working fine, this is the html i get:

<body class="tunda">
<form>
</form>
<script type="text/javascript">

dojo.require("dijit.form.TextBox");

</script>

the only think has changed is django: today i update to django.1.1.1
in debian testing,

Some ideas?

--
Diego Andrés Sanabria
Ingeniería de Sistemas Universidad Distrital
about:me http://www.google.com/profiles/diegueus9
cel 3015290609

Sent from Bogota, DC, Colombia

Burus

unread,
Oct 14, 2009, 10:25:56 AM10/14/09
to dojango-users
You must use base.html example from the dojango/templates directory.
Check, that you extens correct base_site.html template.

On Oct 13, 8:25 pm, Diego Andrés Sanabria Martin (diegueus9)
<diegue...@gmail.com> wrote:
> Hi,
>
> I'm using dojango in a project and i have this tempalte:
>
> {% extends "base_site.html" %}
> {% block dojango_content %}
> {{ block.super }}
> <form action='/perfil/registro' method="POST">
> {% include "form.html" %}
> <input type="submit" value="Registrarme" />
> </form>
> {% endblock %}
>
> But dojo is not working fine, this is the html i get:
>
> <body class="tunda">
> <form>
> </form>
> <script type="text/javascript">
>
>                                 dojo.require("dijit.form.TextBox");
>
>                 </script>
>
> the only think has changed is django: today i update to django.1.1.1
> in debian testing,
>
> Some ideas?
>
> --
> Diego Andrés Sanabria
> Ingeniería de Sistemas Universidad Distrital
> about:mehttp://www.google.com/profiles/diegueus9

klipstein

unread,
Oct 14, 2009, 3:21:25 PM10/14/09
to dojango-users
Hey Diego,

i just tried Dojango with Django 1.1.1 and the form generation works
perfectly. Maybe it is a problem with using {{ block.super }}. Try to
merge that block into your previous "dojango_content" block and see if
it works.

Regards, Tobias
Reply all
Reply to author
Forward
0 new messages