Help with django + jquery mobile. URGENT

Help with django + jquery mobile. URGENT

I'm creating a mobile app and want to use jquery mobile and django, but when django renders the templates from my views, the data-theme in <div>s with " data-role"s page, header and footer seems to be ignored, as well as atributes like data-inline, data-icon in <a>s with data-role="button".

Plus, the buttons in header and footer (those like the default Back button) are shown like simple links
Besides I can't create any toolbars using the data-role="controlgroup" and it's respective <a>s inside the div

Is there a chance maybe django's direct_to_template function has something to do with it?

Any hints are welcome! thanks

I attached how my site currently looks (snapshot.png) and how it should look (snapshot2.png), hope it helps