Re: Django newcomer needs help on concept of views

2008-06-27 Thread bruno desthuilliers
On 27 juin, 09:47, Reza Muhammad <[EMAIL PROTECTED]> wrote: > Hi guys, > > I just started learning about python and django. For the past months I > was working on a project using a PHP framework (I guess, the name > would not be important right now :). For my initial experiment, I > would like to

Re: Django newcomer needs help on concept of views

2008-06-27 Thread Reza Muhammad
Oh yea, thats right. Since, urls conf look for (for example mysite.views), which is in mysite app, file views.py, I should also be able to put mysite.special_views in my urls conf to look in mysite app, file special_views.py, right? Thanks alot :) On Jun 27, 4:17 pm, Alaa Salman <[EMAIL PROTECT

Re: Django newcomer needs help on concept of views

2008-06-27 Thread Horst Gutmann
And if you have some functions that are used by views from both modules, just create a new module and name it for instance utils.py. Then you can simply import something from this new module into your views.py:: from .utils import my_function -- Horst On Fri, Jun 27, 2008 at 11:17 AM, Alaa

Re: Django newcomer needs help on concept of views

2008-06-27 Thread Daniel Roseman
On Jun 27, 8:47 am, Reza Muhammad <[EMAIL PROTECTED]> wrote: > Hi guys, > > I just started learning about python and django. For the past months I > was working on a project using a PHP framework (I guess, the name > would not be important right now :).  For my initial experiment, I > would like t

Re: Django newcomer needs help on concept of views

2008-06-27 Thread Alaa Salman
On Jun 27, 10:47 am, Reza Muhammad <[EMAIL PROTECTED]> wrote: > Anyway, I am used to having separate files to facilitate different > controllers (I think it's called views in django).  On the other hand, > django uses one views.py for one application.  Is there anyway I can > have a views/parts.p

Django newcomer needs help on concept of views

2008-06-27 Thread Reza Muhammad
Hi guys, I just started learning about python and django. For the past months I was working on a project using a PHP framework (I guess, the name would not be important right now :). For my initial experiment, I would like to port my last project that I used with PHP to django. The project conta