Re: multiple versions of python (2.3 / 2.4) and django

2005-10-16 Thread Marcos Sánchez Provencio
I can use that in ubuntu, for example, but not in debian sarge. If somebody has experience in building Debian packages, it must not be difficult to create a deb package to be used in debian sarge. El dom, 16-10-2005 a las 07:46 +0530, Kenneth Gonsalves escribió: > On Saturday 15 Oct 2005 11:03 pm

ManyToManyField question

2005-10-16 Thread frank h.
Hello, I am on django revision 880 and I like it a lot. Currently, I am trying to get from a simple Model: = WEEKDAY_CHOICES = ( (0, 'Monday'), (1, 'Tuesday'), (2, 'Wednesday'), (3, 'Thursday'), (4, 'Friday'), (5, 'Saturd

Re: What is the documentation format?

2005-10-16 Thread Jiri Barton
The format is reStructuredText, also referred to as reST or rst. You can transform it to HTML using docutils. You can learn more about this and the format at http://docutils.sourceforge.net/rst.html HTH, Jiri

Re: File Upload Issue

2005-10-16 Thread Nebojša Đorđević - nesh
On 15-10-2005, at 9:57, Bo Shi wrote: I have tried combining _post_save() and os.rename(...) to some limited success but am not able to reset my FileField to the new file path (my assumption is that using save() inside _post_save() causes infinite recursion, no?). Clearly said strategy is an u

Dynamic limit_choices_to for non-admin views

2005-10-16 Thread Andreas Stuhlmüller
Is it possible to use a kind of limit_choices_to attribute for non-admin views to select which data is shown in select boxes? For example, in a edit-this-object form that allows the user to choose a related object from a select box, I'd like to show each user only the objects she created. What's

Re: multiple versions of python (2.3 / 2.4) and django

2005-10-16 Thread Kenneth Gonsalves
On Sunday 16 Oct 2005 1:58 pm, Marcos Sánchez Provencio wrote: > I can use that in ubuntu, for example, but not in debian sarge. If > somebody has experience in building Debian packages, it must not be > difficult to create a deb package to be used in debian sarge. install from source, will run o

Re: Manipulators that span a relationships?

2005-10-16 Thread Ian Maurer
That fixed that bug. Thanks. Now I can move forward and test the rest. I will provide more info the next time I run into a problem... -ian On 10/15/05, Robert Wittams <[EMAIL PROTECTED]> wrote: > > Ian Maurer wrote: > > I didn't get very far with the new branch. My template is failing to > > re

redirecting subdomain requests

2005-10-16 Thread Alice
I'm just learning regular expressions (something I've put off for ages now), and was wondering if it was possible to redirect from a subdomain to somewhere within my project using Django, i.e. redirect 'Subdomain.domain.com.au/appname/' to 'domain.com.au/appname/pagename' or is this better suite

Re: redirecting subdomain requests

2005-10-16 Thread Jason F. McBrayer
On Sun, 2005-10-16 at 14:27 +, Alice wrote: > I'm just learning regular expressions (something I've put off for ages > now), and was wondering if it was possible to redirect from a subdomain > to somewhere within my project using Django, i.e. > > redirect 'Subdomain.domain.com.au/appname/' to

Re: redirecting subdomain requests

2005-10-16 Thread Alice
> But learning just enough about mod_rewrite to do the job would probably be > less work. Absolutley. For those, like me, who are not veterans in everything, here are some good starting points: Apache's mod_rewrite docs: http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html A decent introducto

Re: File Upload Issue

2005-10-16 Thread Bo Shi
Hey Nesh, Moving the rename logic to _pre_save() would be the best way of doing things but I have a problem where I rename the uploaded file into one based on it's primary key. While in _pre_save(), self.id is None, so is there a way to access the value that will become the primary key? Bo

Re: File Upload Issue

2005-10-16 Thread Nebojša Đorđević - nesh
On 16-10-2005, at 20:43, Bo Shi wrote: Moving the rename logic to _pre_save() would be the best way of doing things but I have a problem where I rename the uploaded file into one based on it's primary key. While in _pre_save(), self.id is None, so is there a way to access the value that will b

specifying the name of a many-to-many table

2005-10-16 Thread Ian Holsman
is it possible? or should I just 'explode' it out into sepearte classes (2 one to many links to a seperate table) regards Ian. -- [EMAIL PROTECTED] -- ++61-3-9877-0909 If everything seems under control, you're not going fast enough. - Mario Andretti

Re: specifying the name of a many-to-many table

2005-10-16 Thread Adrian Holovaty
On 10/16/05, Ian Holsman <[EMAIL PROTECTED]> wrote: > is it possible? > or should I just 'explode' it out into sepearte classes (2 one to many > links to a seperate table) No, it's not possible to specify the name of the "join" table created in a many-to-many relationship. If there's a demonstrab

difference between command line and a web-page

2005-10-16 Thread Ian Holsman
hi. I have a many to many table in django, which I'm having troubles updating. class Keyword( meta.Model ): URL = meta.URLField(core=True) pagetype = meta.ForeignKey( PageType, verbose_name="the type of page") regex = meta.CharField(maxlength=250) to_match = meta.BooleanField()