memory usage

2006-02-08 Thread Kenneth Gonsalves
hi, i have three django sites on a box. It is virtual hosting. The active memory allotted is 75MB. I am getting complaints that i am exceeding this memory. What can be done? as far as i can see, each time someone accesses the site, a new httpd process is started which takes up about 12 mb - 6

Re: Selecting one related object.

2006-02-08 Thread WSobczuk
Ok if I do it with handmade SQL then I'm rewriting the DB abstraction layer since I have to do it for several models inheriting from a common base model..

Re: recursive template calls

2006-02-08 Thread Max Battcher
Jamie Scheinblum wrote: that's funny. they answered how to do the tree thing, but the wiki basically says no recursion... I should look into the % recurse % keyword tho. The {% recurse %} is a custom tag from the Custard work at Greenpeace, not a Django-contributed tag. It is Open Source un

Dynamic choices

2006-02-08 Thread Chetan Vaity
Hi all, I have a model which looks somethng like: class MyModel(meta.Model):     id = meta.AutoField(primary_key = True)     name = meta.CharField(maxlength=20, unique=True)     location = meta.CharField(maxlength=100, choices=getLocationChoices()) and getLocationChoices() is a function defined

Create django application tests environment

2006-02-08 Thread Xie Yanbo
XP and TDD need a unittest environment. I have written a shell script to make the environment. This unittest use the `runtests.py' that django test code included. Maybe it's useful for you. Feel free to use and change it. In this unittest framework, a string named API_TESTS is needed in appname/mo

Re: Dynamic choices

2006-02-08 Thread Amit Upadhyay
On 2/8/06, Chetan Vaity <[EMAIL PROTECTED]> wrote: class MyModel(meta.Model):     id = meta.AutoField(primary_key = True)     name = meta.CharField(maxlength=20, unique=True)     location = meta.CharField(maxlength=100, choices=getLocationChoices()) What I notice is that whenever an entry is added

login via url

2006-02-08 Thread [EMAIL PROTECTED]
Does someone have a recipe for logging in via url only. I would like to have it work with admin or regular user where credentials can be passed as parameters in a url and they are logged in and directed to the url. For admin login I am wanting it to simply log into admin index. Man

Re: Dynamic choices

2006-02-08 Thread Adrian Holovaty
On 2/8/06, Amit Upadhyay <[EMAIL PROTECTED]> wrote: > > What I notice is that whenever an entry is added to LDAP, it is not > reflected in the SelectField drop-down on the create form for the model. But > if I simply restart the Apache httpd server, the drop-down is correctly > populated. > > > >

Re: memory usage

2006-02-08 Thread Jason F. McBrayer
On Wed, 2006-02-08 at 13:36 +0530, Kenneth Gonsalves wrote: > i have three django sites on a box. It is virtual hosting. The > active memory allotted is 75MB. I am getting complaints that i am > exceeding this memory. What can be done? as far as i can see, each > time someone accesses the site

Re: login via url

2006-02-08 Thread Jason F. McBrayer
On Wed, 2006-02-08 at 06:04 -0800, [EMAIL PROTECTED] wrote: > Does someone have a recipe for logging in via url only. I would like > to have it work with admin or regular user where > credentials can be passed as parameters in a url and they are logged in > and directed to the url.

Tiny myce

2006-02-08 Thread mary
i already built a project with Django and it looks great but after filling the project with all the data and after filling the txt feilds the client want to use the tiny mice as it is more easy for him so when i write in my pages model this line admin = meta.Admin(js = ('js/tiny_mce/tiny_mce.js

Re: login via url

2006-02-08 Thread David Pratt
Hi Jason. Many thanks for your reply. I'll look into what you have suggested. Regards, David Jason F. McBrayer wrote: On Wed, 2006-02-08 at 06:04 -0800, [EMAIL PROTECTED] wrote: Does someone have a recipe for logging in via url only. I would like to have it work with admin or

Re: recursive template calls

2006-02-08 Thread Shannon -jj Behrens
Sorry, guys, I'm confused. I *did* search before posting, but wasn't able to find a full answer. I saw someone doing the bulletin board example, but I never found out how to recursively call a template. Must I use the non Django {% recurse %} custom tag? Thanks, -jj On 2/8/06, Max Battcher <[

ANN:DjangoInstall package 0.1 released

2006-02-08 Thread limodou
I'm very pleased to announce that DjangoInstall package 0.1 released. = Django Install Package = :Author: limodou ([EMAIL PROTECTED]) :Blog: http://www.donews.net/limodou :Date: 2006-02-09 What's it? === It's a small packa

Re: Tiny myce

2006-02-08 Thread akaihola
The tiny_mce editor should appear nevertheless. View the source of an admin page where tiny_mce should appear. Check the tags. You should have something like this (I've set my ADMIN_MEDIA_PREFIX to '/admin_media/'):