Hi,
I am working on a web app that creates reports that may take up to a
minute to generate. (Or longer under heavy loads.) Ideally I would
like something like this to happen:
1. User presses a button on the website. Javascript sends a begin-
report-creation message to the server.
2. Report creat
Celery is exactly what I'm looking for! Thanks! :)
On 4 November 2010 13:41, Brian Bouterse wrote:
> I would look into django-celery to do asynchronous tasks. It can also be
> executed as a webhooks style, see here.
>
> Brian
> On Thu, Nov 4, 2010 at 3:31 AM, Elver L
Hiya!
Someone raised this question in the comments of the 4th tutorial and
it's been bugging me to no end.
Let's take the poll sample. We've got the vote() view going on.
choice.votes += 1
choice.save()
Suppose we've got thread1 and thread2 going on (high-load website):
choice.votes is origin
Is there a way to chain languages in the i18n interface?
We're using a custom Interchange tag right now to do i18n in our
webstore. We support Estonian, Latvian, Lithuanian, Russian, and
English. The language chaining goes something like this:
if locale is estonian:
print i18n(message, estonia
On 5/17/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
>
> On 5/16/06, Elver Loho <[EMAIL PROTECTED]> wrote:
> > Let's take the poll sample. We've got the vote() view going on.
> >
> > choice.votes += 1
> > choice.save()
> >
> > S
Can Django's caching framework somehow be used to cache the output of
any function?
What I have right now is basically a standard Django project where
I've swapped out the templating engine and replaced it with Kid and
where I'm not using the supplied O-R mapper, but where I've written my
own DB
I used to code stuff with TurboGears, which started sucking rather
fast. I still liked their templating engine, Kid. Sort of. I've also
tried Zope 3's and Django's, a couple of homegrown ones, Interchange's
as used on our big webstore and a bunch of others. As far as I'm
concerned, they all have f
...because Django can't be this horribly broken. I'm sure of that
much. But I've been beating my head against the wall for quite some
time now and worst of all, I've got a deadline. So here's me, on the
mailing list.
What I'm trying to accomplish here is a simple POST form that posts to
the same
Darn, well, that fixed it :P
And to think I had the same problem with TurboGears a while bak. Sheesh.
Thanks, everyone! :)
Elver
On 6/7/06, Max Battcher <[EMAIL PROTECTED]> wrote:
>
> Elver Loho wrote:
> >
>
> Sadly it seems you, along with so many, many others
request.session seems to be storing things beyond me closing the
Django development server. This is sort of weird. Is it a feature or a
bug? Because, I'd prefer a clean slate every time I run the devserver.
Example code:
def foo(request):
foo = request.session.get("foo", None)
On 6/8/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
>
> On 6/7/06, Elver Loho <[EMAIL PROTECTED]> wrote:
> > This behaviour is just way too weird. I'm currently developing with
> > Django for work and with CherryPy for a side project and CherryPy
> > d
On 6/8/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
> On Thu, 2006-06-08 at 02:21 +0300, Elver Loho wrote:
> > On 6/8/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
> > >
> > > On 6/7/06, Elver Loho <[EMAIL PROTECTED]> wrote:
> > &
On 6/8/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
>
> On 6/7/06, Elver Loho <[EMAIL PROTECTED]> wrote:
> > Everything you've just said makes a lot of sense on a production
> > rollout. Yes, do keep sessions after shutdown. It's a great feature!
> >
my mistake. However, it still doesn't make sense to
store sessions on the development server. IMO.
>
> On 6/8/06, Elver Loho <[EMAIL PROTECTED]> wrote:
> >
> > On 6/8/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
> > >
> > > On 6/7/06, Elver Lo
Allow me to offer a dissenting view. I recently faced the task of
finding a Python-based framework to use at work and tried several,
including Django. I finally settled on using CherryPy with Kid. (Which
is what TurboGears is doing, but with a lot of extra cruft thrown in.
And btw, the TurboGears
On 7/21/06, Sean Schertell <[EMAIL PROTECTED]> wrote:
>
> Thanks for presenting a different angle. I imagine you're one of
> these long-bearded guys who uses NetBSD and Fluxbox as his main
> desktop OS and edits code in VI through a tsch shell ;-)
Ubuntu Dapper and Gnome. (I need Unix on commodi
On 7/21/06, Jacob Kaplan-Moss <[EMAIL PROTECTED]> wrote:
>
> On Jul 20, 2006, at 9:58 PM, Elver Loho wrote:
> > Speaking of duct-tape, though. The various "magic" bits of Django
> > seemed, to me at least, to be somewhat duct-tape-ish. Yeah, it was
> > c
On 7/29/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I'm evaluating the possibility to use Django for a project, but I have
> read so many comments about Django vs TurboGears and right now I am
> very confused.
> I installed both of them in my system and sincerelly I found that
> Django is v
On 7/29/06, Javier Nievas <[EMAIL PROTECTED]> wrote:
>
> Django does not use MVC model, it uses Model - View - Template (MVT)
> model. It's similar, because an MVC view is like an MVT template, and
> an MVC controller is like a MVT view.
http://en.wikipedia.org/wiki/Model-view-controller#Operatio
On 8/7/06, hotani <[EMAIL PROTECTED]> wrote:
>
> I'm doing a comparison of a session variable and an id for a 'selected'
> tag in a drop-down in a template. If I output both vars, they will both
> be "1" yet 'ifequal' is still returning false. Has water stopped being
> wet?
While water might be w
20 matches
Mail list logo