Re: moving django applications

2006-11-13 Thread Sandro Dentella
On Mon, Nov 13, 2006 at 08:09:31PM -, yary wrote: > > You can set up your main site urls.py to read something like: > > urlpatterns = patterns('', > (r'^app1/', include('app1.urls')) # Pass to app1 > (r'^app2/', include('app2.urls')) # Pass to app2 > ) > > and within app1, have a

Re: moving django applications

2006-11-13 Thread yary
You can set up your main site urls.py to read something like: urlpatterns = patterns('', (r'^app1/', include('app1.urls')) # Pass to app1 (r'^app2/', include('app2.urls')) # Pass to app2 ) and within app1, have a urls.py like this: urlpatterns = patterns('', (r'^view/(?P\d+)', 'vi

Re: moving django applications

2006-11-10 Thread Guillermo Fernandez Castellanos
Sorry, I did not get you... What I do in those cases is indeed put a variable in the settings.py, and a default value in the models.py of each app: try: myvar=settings.myvar except: myvar=default_value I then use the variable in the model to construct the get_absolute_url function. You

Re: moving django applications

2006-11-10 Thread Sandro Dentella
On Fri, Nov 10, 2006 at 05:43:28PM +0100, Guillermo Fernandez Castellanos wrote: > > Hi, > > Maybe this will help you: > http://www.djangoproject.com/documentation/sites/ if I understant it correctly this has nothing to do with what I want. They have different domain, I want a single domain. Th

Re: moving django applications

2006-11-10 Thread Guillermo Fernandez Castellanos
Hi, Maybe this will help you: http://www.djangoproject.com/documentation/sites/ G On 11/10/06, sandro.dentella <[EMAIL PROTECTED]> wrote: > > hi all, > > how should I organize my configuration so that it's easy to have > several django applications in the same apache (not as virtual > domains

moving django applications

2006-11-10 Thread sandro.dentella
hi all, how should I organize my configuration so that it's easy to have several django applications in the same apache (not as virtual domains!) and to move them from one position to another. I managed to configur apache to have several different django applications but I need to change the