Hi,
I want to make the HTML of the website as little human readable as
possible. For that I would like to add some layer to Django 0.96 which
when writing out the page takes the HTML and adds some processing.
1. How would I obfuscate the HTML as much as possible (remove all line
breaks, etc.)
2.
Hi,
I use Django 0.96 and wonder if one can check if a value is in a list;
{% if value in mylist %}
...
{% endif %}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
Hi,
can I tell Django 0.96 to automatically process all outbound links and
add: rel="nofollow" ?
Thanks,
jago
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to th
Can I somehow apply an filter to an included template?
{% include "header_viz_js.html" %}
how?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@
Ok...the text in the docu also describes it for 0.96. Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe fro
I am restricted to Django 0.96
On Mar 10, 2:59 pm, Jacob Kaplan-Moss
wrote:
> On Tue, Mar 10, 2009 at 8:55 AM, jago wrote:
> > Can this be done automatically in Python or Django?
>
> Yes; Django automatically escapes HTML values in
> templates:http://docs.djangoproject
Hi,
I want to show some HTML code 'literally' within tags.
Characters such as < > etc. have to be encoded as > and <
Can this be done automatically in Python or Django?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
Sorry. Found the problem. My bad - simple stupidity.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this gr
Oh, actually I tried that but when it didn't work I got creative with
{% include {{ include_filename }} %}
I believe my problem is somewhere else.
In my main HTML file index.html I use {% include "header_viz_js.html"
%}
in header_viz_js.html I use {% include template_name %}
Result: header_vi
Hi,
I want to include a file using {% include "header.html" %}
However I want to be able to dynamically use different files then
"header.html"
Obviously {% include {{ include_filename }} %} does not work.
Can I make this work somehow?
--~--~-~--~~~---~--~~
You
(not developers)
could set up django based solutions such as:
- blogs
- websites
- simple cms
- photo-galleries
- etc.
One could offer such packages for download and 5-min deployment to
Google AppEngine. I think many people would love this.
What do you think?
Cheers,
jago
I am thinking about something like {{ (width - 5) *12 }} ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe fro
le or blog entry. These templates extend the appropriate
section template.
"
Does anybody have a really good example of a website (all code in a
zip file if possible) that adheres to the inheritance principles
above?
Cheers,
jago
--~--~-~--~~~---~--~~
You rec
() operation? In the python code before
constructing the template or in the django-code?
wrapper = zip(list1, list2)
Access in the django code is then:
{% for w in wrapper %}
w.0.title
w.1
???
On Nov 7, 4:45 pm, Daniel Roseman <[EMAIL PROTECTED]>
wrote:
> On Nov 7, 2:12 pm, jag
Roseman <[EMAIL PROTECTED]>
wrote:
> On Nov 7, 12:52 am, jago <[EMAIL PROTECTED]> wrote:
>
> > I have a for loop over a list A.
>
> > inside the loop I want to print out the item of list B at the index
> > 'forloop.counter0' of list A.
>
> > I
select an item from arr using forloop.counter0 ?
Thx...jago
On Nov 7, 10:38 am, Raja <[EMAIL PROTECTED]> wrote:
> You can use something like {{ array.index}} to get the value of a
> specific index.
>
> For e.g.
>
> arr = [1,2,3,4]
>
> In view, if I do a
> {{ arr.1 }
I have a for loop over a list A.
inside the loop I want to print out the item of list B at the index
'forloop.counter0' of list A.
It is really strange. One can select randon items in a list, or the
first item in a list, but I did not find a way to select the list item
by index.
Am I missing so
17 matches
Mail list logo