Re: How can I use variables in included URLConf's before they are sent to views?

2006-08-06 Thread Ahmad Alhashemi
Ian Holsman wrote: > If I'm understanding your question correctly, you could write a function > similar to gen_pop_pattern (http://svn.zyons.python-hosting.com/trunk/ > zilbo/common/counter/urls.py ) Actually, I'm already doing something very similar. This is what my main (entry point) urls.py lo

Re: How can I use variables in included URLConf's before they are sent to views?

2006-08-06 Thread Ahmad Alhashemi
Todd O'Bryan wrote: > A very straightforward way to do this would be to map the main url to > a view-like function, build the queries you need, and then, based on > the rest of the url, pass control to the actual view function you want. Is there an easy and supported way of passing control back t

How can I use variables in included URLConf's before they are sent to views?

2006-08-06 Thread Ahmad Alhashemi
Hello everyone, My problem is like this. I have a main URLconf that will include another, application specific, URLconf. In the application specific, I'm preparing some querysets to pass to some generic views. The problem is that the querysets I need to make in the application URLconf depend on

Re: Using an application more than once in a project

2006-07-07 Thread Ahmad Alhashemi
e projects. So I am just re-using the same > codebase on different projects, and getting the benefit of its > changes/upgrades/development. > > On 7/7/06, Ahmad Alhashemi <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > Is it possible to use the same applicat

Using an application more than once in a project

2006-07-07 Thread Ahmad Alhashemi
Hi, Is it possible to use the same application more than once in the same project? For example, if I download a ready made weblog application, can I use it in one place as a general purpose weblog and in another place as a seperate development weblog? TIA. --Ahmad --~--~-~--~~---