Michael Lake schreef:
> Yes it does work, thanks heaps. I presume though that the render_to_return is
> outside
> of the previous for loop as below.
Yes it's outside the loop as you already found out.
> for e in experiment_list:
> e.proc_count = e.experiment_procedure_set.all().count()
What I've noticed with Django on Dreamhost is that if your site is hit
before the fcgi timeout (2 minutes) its quite responsive. If the fcgi
process exits, it has to restart, reconnect to the db, etc. and there
is a very couple of seconds delay before things get going again.
But I just checked
On 2/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I'm currently working on a "DjangoForge" type of site right now. I've
> been working on it for the past few weeks with any spare time that
> I've had. It's definitely not ready for public consumption yet, but
> it's coming
Hello,
I'm currently working on a "DjangoForge" type of site right now. I've
been working on it for the past few weeks with any spare time that
I've had. It's definitely not ready for public consumption yet, but
it's coming along very nicely and I think that more than a few people
will find it
On Feb 14, 4:41 pm, Mike Lake <[EMAIL PROTECTED]> wrote:
> There are references to 'dynamic lookup' of variables in the docs for
> template authors.
> But this seems very complex to use custom tags and filters.
A custom lookup filter is quite easy to do, because the template
module already has
Easily solved the problem once I realized the difference between
HttpRequest and HttpResponse objects (doh!).
In the event another nub is looking to make stuff happen post-
successful login/logout here's the (now obvious) pseudo-code solution:
def user_login(request):
response =
On 2/16/07, James Bennett <[EMAIL PROTECTED]> wrote:
>
> On 2/15/07, James Tauber <[EMAIL PROTECTED]> wrote:
> > That would be great. In fact, it would be nice if many of the
> > component apps of the site were themselves available on the site for
> > building other software component catalog
On 2/15/07, James Tauber <[EMAIL PROTECTED]> wrote:
> That would be great. In fact, it would be nice if many of the
> component apps of the site were themselves available on the site for
> building other software component catalog sites.
Absolutely. I'm a fan of open-source sites (hopefully
On 2/16/07, Almad <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> please...nobody have a clue?
>
> I've run into same issue again and it's somehow making django usuable
> for me :-(
>
> (and yes, still with the freshest trunk)
>
> Thank You,
>
> Almad
my guess would be that you are somewhere returning
On 2/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hello, I'm thinking about create a website using django. One of the
> apps would be a news section, where everybody can publish the news
> (perhaps after approval) and where the users can edit and delete their
> own news, but not the
Hello,
please...nobody have a clue?
I've run into same issue again and it's somehow making django usuable
for me :-(
(and yes, still with the freshest trunk)
Thank You,
Almad
On Jan 28, 4:30 pm, "Almad" wrote:
> Hello,
>
> I'd like to ask about session/auth middleware I'm trying to use.
Is there a reason *not* to use the Cheeseshop, and utilize the
metadata framework it provides? For example, Zope Corp publishes
Zope-specific pieces there and marks them as "Framework:Zope" (or
something like that... don't recall exactly). This makes the packages
available to setuptools enabled
Hi
Benedict Verheyen wrote:
> When i need such functionality, i assign values to vars of the list items.
> For instance, in your case i would do something like this
> def experiments(request):
> experiment_list = Experiment.objects.all()
> ecount = len(experiment_list) + 1
>
>
Igor Guerrero wrote:
> You must add the app dir and django dir to the PYTHON_PATH env variable in
> the preferrence menu and rescan the PATH.
It worked well with 0.95 version (just need to add django dir to the PYTHON
PATH of Eclipse) but with svn version it looks it does not work any longer
On 2/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Is it possible to implement this within the django admin or should I
> create a specific application for this?
The right solution here is to write your own application. The admin
view is intended to be just that - an adminstration
it's impossible at the moment, but it should be possible with the
newforms-admin branch via a hook
On 2/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hello, I'm thinking about create a website using django. One of the
> apps would be a news section, where everybody can publish the news
> Does anybody have any experience with this and can give war-stories about
> good or bad ways to do this?
I just finished updating an aggregate-rich view and I think it is
better to use SQL than messing with filters for most complex things.
My basic rule of thumb is to use python functions to
Hello, I'm thinking about create a website using django. One of the
apps would be a news section, where everybody can publish the news
(perhaps after approval) and where the users can edit and delete their
own news, but not the other users news.
Is it possible to implement this within the django
On 2/15/07, James Tauber <[EMAIL PROTECTED]> wrote:
> Has anyone give much thought to building a "Cheeseshop" for reusable
> Django apps?
A couple people have tried to start sourceforge-esque sites for
hosting Django apps, but so far none of them have taken off.
Personally, I've just been using
Has anyone give much thought to building a "Cheeseshop" for reusable
Django apps?
I have a bunch of ideas but want to check what's been done already.
I'm thinking it could be a two-tiered catalog: one tier accepting all
submissions, the other tier being more constrained to apps that
Thanks for posting, Branton. Just curious, ASO service plan are you
using?
On Feb 15, 11:01 am, "sansmojo" <[EMAIL PROTECTED]> wrote:
> I thought this might be useful for those considering Django hosting
> alternatives.
>
> I've been working on a Dreamhost server for quite a while for a
>
I think in this case the Python docs were mis-interpreted. The key
point to consider when writing a __hash__ function is that two objects
that compare equal must hash equally, and the hash value cannot
change. Just because an object is mutable doesn't mean that these
rules will be violated. In
Hey Tim,
Tim Chase wrote:
> For reporting purposes, we're hoping to summarize a variety of
> fields across volumes of data. I know recordsets currently have
> a count() method that returns the number of rows. However, I'm
> trying to find a good way of obtaining max/min/sum/avg results
>
On 2/1/07, Jakub Labath <[EMAIL PROTECTED]> wrote:
>
> Is there a way to detect in my code if I'm running in prefork or threaded
> mode?
Your best bet is probably through mod_python. I'd probably start by
looking here first:
http://www.modpython.org/live/current/doc-html/module-apache.html
On Feb 15, 2007, at 10:30 AM, Jakub Labath wrote:
> Hi,
>
> Thanks, but that is not what I'm looking for.
>
> I need to find out at runtime from within my code. Something like.
Since, you can't change modes during runtime, I would set an
environment variable when you start the server and
Hi,
Thanks, but that is not what I'm looking for.
I need to find out at runtime from within my code. Something like.
if i_am_threaded:
do_something_thread_safe
else:
do_something_thread_unsafe
I suppose this is more a python question than a Django one. So sorry
for the off topic.
Best
By the way, I would also appreciate any comments on the site. It's a
work in progress, mainly in the middle of the night, so I know there's
much left to do.
On Feb 15, 12:01 pm, "sansmojo" <[EMAIL PROTECTED]> wrote:
> I thought this might be useful for those considering Django hosting
>
I thought this might be useful for those considering Django hosting
alternatives.
I've been working on a Dreamhost server for quite a while for a
friend's site and just started working on a site for a non-profit
group who agreed to try a new host (ASmallOrange). While working on
the ASO server,
Hi go to http://www.maduraiman.co.nr for downloading free
softwares,games,videos, ring tones, making money online,Power point
slide shows, etc.,
http://www.maduraiman.co.nr
http://www.maduraiman.co.nr
http://www.maduraiman.co.nr
http://www.maduraiman.co.nr
http://www.maduraiman.co.nr
For reporting purposes, we're hoping to summarize a variety of
fields across volumes of data. I know recordsets currently have
a count() method that returns the number of rows. However, I'm
trying to find a good way of obtaining max/min/sum/avg results
for all the items in the recordset. I
[EMAIL PROTECTED] wrote:
> I don't know if I'm just confused or if it's a bug in Django, but
> here's a little bit of code I put in a shell:
>
sunday = datetime.date(2006, 12, 3)
saturday = sunday + datetime.timedelta(days=6)
next_sunday = sunday + datetime.timedelta(days=7)
Ah, don't bother replying. The field date_saisie is actually a
DateTime, so that explains it. Sorry.
On Feb 15, 11:22 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I don't know if I'm just confused or if it's a bug in Django, but
> here's a little bit of code I put in a shell:
>
> >>>
I don't know if I'm just confused or if it's a bug in Django, but
here's a little bit of code I put in a shell:
>>> sunday = datetime.date(2006, 12, 3)
>>> saturday = sunday + datetime.timedelta(days=6)
>>> next_sunday = sunday + datetime.timedelta(days=7)
>>> for day in (sunday, saturday,
I'm going to respectfully disagree with Kenneth. Django CAN be just
the thing, even if you're not a programmer. The things you can
accomplish just with generic views are mind-boggling.
I'm not much of a programmer (as is evident by many of my posts here)
but I chose Django over an off-the-shelf
That's a very good question, Dougal, and I'm too much of a noob to be
able to answer it. I THINK those lookups are lazy, but I'd love to
hear from someone who knows more about it.
On Feb 14, 8:47 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> The problem I have with this is that, if I'm
* Dirk Eschler wrote, On 13.02.2007 11:12:
> Hello,
>
> i use ImageWithThumbnailField to upload screenhots. In the save method i want
> to set some additional model fields, like filesize and width/height of the
> uploaded image. The problem is, that self.image isn't defined at this point,
>
Apologies, for wasting time the problem was with the line. Couldn't see
the wood for the trees!
debit = credit + i.debit
should read
debit = debit + i.debit
MerMer
Benedict Verheyen wrote:
> Merric Mercer schreef:
>
>> Benedict,
>>
>> Unfortunately, that is just a typo in my post
* Jeremy Dunck wrote, On 14.02.2007 19:33:
> On 2/14/07, Joseph Heck <[EMAIL PROTECTED]> wrote:
>> It's worth noting that to use the MEDIA_URL settings in your template,
>> you'll need to either pass it down through the views into the Template
>> context, or write a quick little middleware that
I've the following problem:
I am making a fulltext-index based search, resulting in a query_set
constructed in a somewhat more complex way:
revisions = Revision.objects.select_related().filter(published=True,
contentEntry__master__archived=False).extra(select={"relevance":"MATCH
(title, cont\
Merric Mercer schreef:
> Benedict,
>
> Unfortunately, that is just a typo in my post and not the answer. The
> actual code has 'for i in qset'.
>
> The code runs without displaying any errors. But when I check the
> "UserPointTypeAggregate" database the field has
> only been updated from the
Malcolm Tredinnick <[EMAIL PROTECTED]> writes:
> You can pass whatever extra arguments you like to views as the optional
> third argument in the urlpatterns tuples
Ahh thanks. That was the missing piece in the puzzle.
Regards, Frank
--~--~-~--~~~---~--~~
You
Hi,
im sorry, my question sucked.
sure, i use an ajax request. and i know that i could just poll. but i
rather would wait on serverside for new items and then respond.
it is possible: if i dont specify a timeout for the request i can
respond hours later.
BUT: i cant get new requests, cause
Benedict,
Unfortunately, that is just a typo in my post and not the answer. The
actual code has 'for i in qset'.
The code runs without displaying any errors. But when I check the
"UserPointTypeAggregate" database the field has
only been updated from the first record of the PointTransaction
Free Ebooks on Cooking, Hacking, IT, Sex etc.. Website Submission,
Forum, Visit http://www.aonearticles.com. No membership required.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to
Merric Mercer schreef:
> Help! I have a function that is provided below. When I try the
> individual lines of the function through the interpretor (Ipython)
> everything works as expected. For example:-
>
> >> qset=PointTransaction.objects.filter etc this works fine!!
>
>
45 matches
Mail list logo