Re: Creating apps that can be easily migrated to subdirectories

2009-08-18 Thread Sydney Weidman
On Aug 18, 11:57 am, Javier Guerra wrote: > On Tue, Aug 18, 2009 at 11:49 AM, Sydney Weidman wrote: > > I'm moving some Django applications that used to be served from the > > root of the site to a sub-URL like /apps. Do I have to change every > > template that contains

Creating apps that can be easily migrated to subdirectories

2009-08-18 Thread Sydney Weidman
Hi! I'm moving some Django applications that used to be served from the root of the site to a sub-URL like /apps. Do I have to change every template that contains a reference to /app1/blah to /apps/app1/blah in every template? Is there a centralized/better/prescribed way to do this? - Syd --~--

Browsing search results record by record

2009-05-27 Thread Sydney Weidman
I am working on an application which needs to work like so: A user enters search criteria in a search form and when submit is clicked, if any records match the criteria, the user is taken to the first record in the results set. The user can click "Next" to go to the next record in the result set,

get next/previous for IntegerField

2009-05-10 Thread Sydney Weidman
I have a model that requires browsing previous and next records by a user-supplied integer value. What is the best way to handle this type of requirement? I suppose I could do a query that looked up records with a value less/greater than the current value with a LIMIT 1 clause or something like th

Re: Help with Django installation on OSX 10.4.10

2007-08-27 Thread Sydney Weidman
If I remember correctly, you'll see the file listing if you don't have handlers set properly for the location. What is in your httpd.conf or virtual host config file for the htdocs directory? I'm assuming you've looked at: http://www.djangoproject.com/documentation/modpython/ - syd On Aug 27,

Re: Overriding the model's save() method

2007-07-23 Thread Sydney Weidman
On Jul 23, 11:07 am, Chris Hoeppner <[EMAIL PROTECTED]> wrote: > Hi there! > > I haven't been able to find this documented anywhere (and I'll kindly > apologize if there actually *is* some doc about it), and thought I'd > turn to you guys ;) > > I'd like to override a model's save() method in orde

Re: List with pagination, sorting and simple search interface

2007-07-23 Thread Sydney Weidman
I don't think there are pre-made components that will provide you with all of those things, and being somewhat new to django I can only point you to one bit of documentation and code that I found helpful for pagination: http://code.djangoproject.com/wiki/PaginatorTag Regards, Syd On Jul 23, 7:3