Re: making two-column table from one-column data

2007-12-02 Thread andrej kesely
Thanks for your reply, I really like the general iterator approach. This recipe will definitely go to my personal "standard" library. A. On Dec 2, 11:09 pm, Tim Chase <[EMAIL PROTECTED]> wrote: > > If your data is in the 'data' context variable, then try this: > > > > > {% for

Re: newbie questions

2007-12-02 Thread Kenneth Gonsalves
On 03-Dec-07, at 10:38 AM, dave's not here wrote: > Thanks for the quick reply. The problem is I don't currently have > shell access to the server, only ftp. Is there anything I can put into > one of the .py or template files? I don't think you can do django with only ftp access -- regards

[sajax question]how to use sajax?

2007-12-02 Thread jt.wang
i want to use sajax in my apps .the reason that i choose sajax rather than jquery is that i think sajax maybe easier! but now ,i only search only one example there:http://wiki.djangosource.com/wiki/Ajax_in_django,but it can not run! so,can anyone help me and provide any source codes about sajax in

Re: newbie questions

2007-12-02 Thread dave's not here
Darryl, Thanks for the quick reply. The problem is I don't currently have shell access to the server, only ftp. Is there anything I can put into one of the .py or template files? -dave On Dec 2, 11:57 pm, Darryl Ross <[EMAIL PROTECTED]> wrote: > dave's not here wrote: > > I'm trying to help

Re: newbie questions

2007-12-02 Thread Darryl Ross
dave's not here wrote: > I'm trying to help out a friend in a bind whose programmer is no > longer reachable, and have a few newbie questions. I've just started > working with both python and django, and am working my way thru the > python and django tutorials; my background is with perl and php.

newbie questions

2007-12-02 Thread dave's not here
I'm trying to help out a friend in a bind whose programmer is no longer reachable, and have a few newbie questions. I've just started working with both python and django, and am working my way thru the python and django tutorials; my background is with perl and php. Is there an equavalent to

Re: how to let textField accept only clear text?

2007-12-02 Thread [EMAIL PROTECTED]
it sounds good, i will try first, thanks! On Dec 3, 10:59 am, Empty <[EMAIL PROTECTED]> wrote: > Would it not be possible to run it through the striptags filter first > and then pass it into markdown? > > Michael Trier > blog.michaeltrier.com > > On Dec 2, 2007 9:50 PM, Malcolm Tredinnick

Re: how to let textField accept only clear text?

2007-12-02 Thread Empty
Would it not be possible to run it through the striptags filter first and then pass it into markdown? Michael Trier blog.michaeltrier.com On Dec 2, 2007 9:50 PM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > > > On Sun, 2007-12-02 at 18:26 -0800, [EMAIL PROTECTED] wrote: > > i have field like

Re: how to let textField accept only clear text?

2007-12-02 Thread Malcolm Tredinnick
On Sun, 2007-12-02 at 18:26 -0800, [EMAIL PROTECTED] wrote: > i have field like this: > body = models.TextField() > i want it only accept text without HTML code? > i used body=markdown.markdown(text,safe_mode = True), but this will > repalce HTML code with

how to let textField accept only clear text?

2007-12-02 Thread [EMAIL PROTECTED]
i have field like this: body = models.TextField() i want it only accept text without HTML code? i used body=markdown.markdown(text,safe_mode = True), but this will repalce HTML code with "HTML_REMOVED". is there other way can make sure only text content? thanks!

Re: templating javascript code

2007-12-02 Thread Darryl Ross
msoulier wrote: > I want to split this javascript out. Has anyone tried templating > javascript like any other file? I'm going to try it out, but I thought > I'd ask if anyone knew of any problems, or any better way to do this. I've done this is CSS files before, so it should work just fine. Just

Memcached Shared Caching - What if one of the servers drops out?

2007-12-02 Thread [EMAIL PROTECTED]
I'm not sure if this is a question about Django's implementation of Memcached, but I figure I'll start here... I've got three memcached servers running as a shared pool, and I my settings file looks like this: (web1-3 are hostnames) CACHE_BACKEND =

templating javascript code

2007-12-02 Thread msoulier
Hi, I'm adding some Ajax effects to my Django site, and there are some things in the javascript that I'd like to template. Currently my javascript is inline in my index.html file, so I can template things like var debug = {{ debug }}; var refreshtime = {{ refreshtime }}; That way, settings in

Re: Use of newforms prefixes in html templates

2007-12-02 Thread Cat
Thanks Rajesh I tried that and all the data for existing instances is displayed correctly with the exception of the select widgets. I'm using Doug B's code in answer to Multi record form so I will have a closer look at it to see where I have gone wrong. On Dec 1, 2:46 am, RajeshD <[EMAIL

Re: making two-column table from one-column data

2007-12-02 Thread Tim Chase
> If your data is in the 'data' context variable, then try this: > > > {% for d in data %} > {% if forloop.counter0|divisibleby:"2" %}{% endif %} > {{d}} > {% if forloop.counter|divisibleby:"2" %}{% endif %} > {% endfor %} > {%

asian babe

2007-12-02 Thread MerlinBis
great asian babe doing things... http://elkaim.perrin.free.fr/ma/besttube.html --~--~-~--~~~---~--~~ 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

Re: Is a bug? When inhclude, block inheritance get lost?

2007-12-02 Thread Horst Gutmann
Is perhaps {% inherit ... %} *not* the first line in all the files within your inheritance-hierarchy? :-) - Horst On Dec 2, 2007 8:50 PM, mamcxyz <[EMAIL PROTECTED]> wrote: > > I have a base template that do a include: > > {% if user and not

Is a bug? When inhclude, block inheritance get lost?

2007-12-02 Thread mamcxyz
I have a base template that do a include: {% if user and not user.is_anonymous %} {% include "core/panel_usr.html" %} {% else %} {%

Re: making two-column table from one-column data

2007-12-02 Thread Ned Batchelder
If your data is in the 'data' context variable, then try this: {% for d in data %} {% if forloop.counter0|divisibleby:"2" %}{% endif %} {{d}} {% if forloop.counter|divisibleby:"2" %}{% endif %} {% endfor %} {% if

Enjoy these Powerpoint Shows : Forward to to your knowns

2007-12-02 Thread P K Kothari
- Draw Your Boss - Dragon Statues - Draft Indian CEO Model

Re: extending models

2007-12-02 Thread Vivek Khurana
On Dec 2, 2007 8:27 PM, Karen Tracey <[EMAIL PROTECTED]> wrote: > On 12/2/07, Vivek Khurana <[EMAIL PROTECTED]> wrote: > > > > > On Dec 2, 2007 12:27 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > > The reason for this kind of approach is that I should be able to > > > > upgrade the

Re: Do away with django's support for python 2.3?

2007-12-02 Thread Chris H.
Let me throw my (rather non existent) -1 against removing Python 2.3 support. As previously mentioned RHEL4 is still on 2.3. At work we've got alot of RHEL boxes that we deploy Django against so 2.3 support is vital. As I understand it RedHat is using Python even more and more for the system

Re: making two-column table from one-column data

2007-12-02 Thread J. Clifford Dyer
On Sun, 2007-12-02 at 03:05 -0800, andrej kesely wrote: > hi, > i have small question: > suppose i have data in QuerySet - ['A', 'B', 'C', 'D', 'E', 'F', > 'G']. > I want make from this set two-column table in my template: > > AB > CD > EF > G > > What is the fastest way to

Re: extending models

2007-12-02 Thread Karen Tracey
On 12/2/07, Vivek Khurana <[EMAIL PROTECTED]> wrote: > > > On Dec 2, 2007 12:27 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > > The reason for this kind of approach is that I should be able to > > > upgrade the core without affecting the extensions created by > > > developers. > > > > >

Re: sql.py cannot find tables that it generated sql to create

2007-12-02 Thread Malcolm Tredinnick
On Fri, 2007-11-30 at 17:42 -0800, Matt wrote: > Was this ever fixed? I'm still experiencing similar behavior in r6783. > Thanks! What are you doing to repeat the problem? Please provide a very short example that demonstrates the issue (and see r6650). Malcolm

Re: Fwd: Break with Django SVN r6718

2007-12-02 Thread Malcolm Tredinnick
On Fri, 2007-11-30 at 16:18 -0800, Josh Stone wrote: > Hi all, > > I'm having problems using Review Board with recent Django revisions, > and I'm hoping that this list can help. Please see below for the > previous discussion, but the gist is that with Django r6718 (and > later), I'm getting

Re: extending models

2007-12-02 Thread Vivek Khurana
On Dec 2, 2007 12:27 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > The reason for this kind of approach is that I should be able to > > upgrade the core without affecting the extensions created by > > developers. > > > > To my regret, Django model inheretance, is not yet working. > > More

Re: بنات للتعارف بنات للزواج تعارف حب زواج فتيات للصداقة والزواج صور فتيات روسيات حب زواج

2007-12-02 Thread Mikhail Novikov
Что за ёбаный в рот ? On Dec 2, 4:20 am, "سوسو الاموره" <[EMAIL PROTECTED]> wrote: > بنات للتعارف بنات للزواج تعارف حب زواج فتيات للصداقة والزواج صور فتيات > روسيات حب زواج > اقوى شات سعودى مليان بنات للتعارف > ايميلات بنات للتعارف بنات للزواج ايميلات بنات بنات للصداقة > زواج تعارف وزواج

Re: extending models

2007-12-02 Thread [EMAIL PROTECTED]
Hi, On Dec 2, 1:21 pm, Vivek Khurana <[EMAIL PROTECTED]> wrote: > Hi! all, > > I want tot know if there is away to extend an existing model for an > application ?What i want to do is following > > I have built a django app. Now I want the developers to be able to > add fields to model without

Re: making two-column table from one-column data

2007-12-02 Thread [EMAIL PROTECTED]
On Dec 2, 1:05 pm, andrej kesely <[EMAIL PROTECTED]> wrote: > hi, > i have small question: > suppose i have data in QuerySet - ['A', 'B', 'C', 'D', 'E', 'F', > 'G']. > I want make from this set two-column table in my template: > > AB > CD > EF > G > > What is the fastest way

extending models

2007-12-02 Thread Vivek Khurana
Hi! all, I want tot know if there is away to extend an existing model for an application ?What i want to do is following I have built a django app. Now I want the developers to be able to add fields to model without modifying the original model class. Suppose I have a model called box with

making two-column table from one-column data

2007-12-02 Thread andrej kesely
hi, i have small question: suppose i have data in QuerySet - ['A', 'B', 'C', 'D', 'E', 'F', 'G']. I want make from this set two-column table in my template: AB CD EF G What is the fastest way to do it? I don't want split the QuerySet in my views to something like this: [(A,