>> 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, ...):
>...
': {
> '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
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
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
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
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
"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
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
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
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
> >
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
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
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
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:
>
>
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
15 matches
Mail list logo