Re: How to render a static html page and keep processing after?

2008-09-15 Thread Abdallah El Guindy
>> thread.start_new_thread(some_time_intensive_task, (arg1, arg2, ...,)) This is definitely not a good idea.. On Mon, Sep 15, 2008 at 2:56 PM, n00m <[EMAIL PROTECTED]> wrote: > > > = > in views.py > = > > import thread > > def some_time_intensive_task(arg1, arg2, ...): >...

Re: How to use generic view direct_to_template with extra_context

2008-09-08 Thread Abdallah El Guindy
': { > 'about': True, > } > }), > > On Sep 8, 3:44 pm, "Abdallah El Guindy" <[EMAIL PROTECTED]> > wrote: > > Hey all, > > > > I want to use the generic view direct_to_template and to pass to it extra > > parameters in

How to use generic view direct_to_template with extra_context

2008-09-08 Thread Abdallah El Guindy
Hey all, I want to use the generic view direct_to_template and to pass to it extra parameters in the urls.py I tried doing the following but doesn't work (r'^about/$', 'django.views.generic.simple.direct_to_template', {'template': 'main.html'}, extra_context={'about': True}), What am I

Re: django web hosting

2008-09-03 Thread Abdallah El Guindy
Google app engine provides free hosting, with Django support Link: http://appengine.google.com/ The only problem is that I haven't managed to make the db classes run, the google API provides some other mechanism.. If you can migrate to that then almost everything else will run. You can also

Re: How is are Fields implemented?

2008-09-02 Thread Abdallah El Guindy
2 sep, 13:50, "Abdallah El Guindy" <[EMAIL PROTECTED]> > wrote: > > Hey Bruno, > > > > Thanks a lot! I read now 2 pages on metaclasses and I'm beginning to > really > > feel I'm figuring it out... > > If you only need to read 2 pages of doc to be

Re: How is are Fields implemented?

2008-09-02 Thread Abdallah El Guindy
they appear in file? Thanks On Tue, Sep 2, 2008 at 1:50 PM, Abdallah El Guindy < [EMAIL PROTECTED]> wrote: > Hey Bruno, > > Thanks a lot! I read now 2 pages on metaclasses and I'm beginning to really > feel I'm figuring it out... I'll read a bit more and once I start > impleme

Re: How is are Fields implemented?

2008-09-02 Thread Abdallah El Guindy
"metclasses" Thanks for the help! On Tue, Sep 2, 2008 at 1:05 PM, bruno desthuilliers < [EMAIL PROTECTED]> wrote: > > On 2 sep, 10:33, "Abdallah El Guindy" <[EMAIL PROTECTED]> > wrote: > > Thank you very much for your reply. It seems that you understoo

Re: How is are Fields implemented?

2008-09-02 Thread Abdallah El Guindy
that does that? Thanks On Tue, Sep 2, 2008 at 9:44 AM, bruno desthuilliers < [EMAIL PROTECTED]> wrote: > > > > On 2 sep, 09:17, Abdallah El Guindy <[EMAIL PROTECTED]> > wrote: > > Hey all, > > > > Does anyone have an idea how is the syntax of creating a

How is are Fields implemented?

2008-09-02 Thread Abdallah El Guindy
Hey all, Does anyone have an idea how is the syntax of creating a model is implemented in Django... by that I mean: from django.db import models class Person(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_length=30) The fields are not

Re: Django on mod_python... Admin interface, no styling...

2008-05-03 Thread Abdallah El Guindy
Thanks... that solved it! On May 3, 6:22 pm, jonknee <[EMAIL PROTECTED]> wrote: > > I tried deploying my django project on apache+modpython as the > > tutorial described... Everything works fine except that the admin > > website displays unformatted ... (could not manage to find the > >

Django on mod_python... Admin interface, no styling...

2008-05-03 Thread Abdallah El Guindy
Hey all I tried deploying my django project on apache+modpython as the tutorial described... Everything works fine except that the admin website displays unformatted ... (could not manage to find the stylesheet somehow), can anyone tell me what went wrong? Thanks

Re: Custom Authentication System

2008-05-02 Thread Abdallah El Guindy
Thanks for the reply... I'll try that out and see if it works out... On May 2, 1:18 am, jonknee <[EMAIL PROTECTED]> wrote: > > Can anyone refer a nice tutorial or explain how to create custom > > user attributes and use the authentication/authorization app? > > It would be just like a regular

Custom Authentication System

2008-05-01 Thread Abdallah El Guindy
Hey all, I am trying to create a login/profile system for my application... I have read the section in the django book explaining how to add profile (other attributes) to User object by using another model that refers to the User object... However, I cannot get a decent registration form... The

Re: How to upload_to a dynamic location in ImageField?

2008-05-01 Thread Abdallah El Guindy
Thanks a lot Karen! On May 1, 4:14 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Thu, May 1, 2008 at 7:50 AM, Abdallah El Guindy < > > [EMAIL PROTECTED]> wrote: > > Hey all, > > > I wonder how can I do something like this: > >

How to upload_to a dynamic location in ImageField?

2008-05-01 Thread Abdallah El Guindy
Hey all, I wonder how can I do something like this: class Author(models.Model): first_name = models.CharField(maxlength=30) headshot = models.ImageField(upload_to='media/' + self.first_name.__str__()) Of course this does not work, but I need to upload to a dynamically specified