On 8/28/07, George Vilches <[EMAIL PROTECTED]> wrote:
...
> Something seems very wrong about this situation, that debugging could
> cause another query to execute (especially an unintended query), but I
> don't know what the correct way to go about fixing or preventing it.
> I've tried a bunch of
Quick summary: If Django errors during a QuerySet evaluation with
DEBUG=True, the built-in 500 handler in views/debug.py causes the last
QuerySet (one filter shorter than the final version) to be executed, as
in the SQL statement hits the database.
This is very bad if there was only a single
On 8/29/07, Chris H. <[EMAIL PROTECTED]> wrote:
>
> Sorry for spamming, wasn't sure if I should combine this in my last
> post...
Two messages with well considered content isn't spam - its the right
approach. One idea per thread.
> I've been meaning to clean up the code and release it or supply
On 8/29/07, Chris H. <[EMAIL PROTECTED]> wrote:
>
> I'm a huge testing nut and there are some short cut/helper functions
> we use at work that I'd like to clean up and contribute if folks are
> interested.
We're always interested in contributions! :-)
> The first is a simple method on TestCase t
Sorry for spamming, wasn't sure if I should combine this in my last
post...
Along the lines of testing code I wrote at work that I'd like to clean
up and release...
At work we frequently don't use fixtures, but instead instantiate the
appopriate data at the start of each self.test_X function so
Hi all,
Long-time user; first time attempting to contribute :-)
I'm a huge testing nut and there are some short cut/helper functions
we use at work that I'd like to clean up and contribute if folks are
interested.
The first is a simple method on TestCase that makes checking a normal
view pretty
On 8/28/07, Rob Hudson <[EMAIL PROTECTED]> wrote:
>
> I've approached this like the following, though I'd be interested to
> hear if there is a better way. I like putting the environ settings in
> the script itself so everything is self contained (could be run from
> cron, etc)...
cron can set e
I've approached this like the following, though I'd be interested to
hear if there is a better way. I like putting the environ settings in
the script itself so everything is self contained (could be run from
cron, etc)...
At the top of my Python file I have this:
import os, sys
# Connect to Dja
I'd be interested in a signal for related add/remove relationships.
This would involve a signal for one-to-many, many-to-one, and
many-to-many saves. Something like:
dispatcher.send(signal=signals.pre_related_add, \
sender=self.__class__, related_object=self, instance=self)
It is backwards-co
On 8/26/07, James Bennett <[EMAIL PROTECTED]> wrote:
> I don't think it's really something that'll be voted on, at least not
> in a broad general sense. If releases happened based on people in the
> mailing list saying they want it to happen, we'd be on Django 3000 by
> now ;)
That's not exactly
I need to add dynamic text to animated GIF images.
What is a best way to do it?
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to django-develop
You should ask this question in Django-User group. This is a django
core developer group.
On Aug 29, 12:14 am, Slava Shklyar <[EMAIL PROTECTED]> wrote:
> I need to add dynamic text to animated GIF images.
> What is a best way to do it?
>
> Thanks.
--~--~-~--~~~---~--
On 8/28/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote:
> Here's a suggestion to pull the options out of
> django.core.management.ManagementUtility: What if we just read the
> command after manage.py/django-admin.py and then passed the rest of the
> parsing to a separate execute method for each Comman
Oops! Just saw that you were talking about 'testserver' and not
'runserver.' Sorry about that :D
Clint
On 8/28/07, Todd O'Bryan <[EMAIL PROTECTED]> wrote:
>
> The testserver command doesn't currently allow you to set the port for
> the server to run on. I teach high school in a Linux thin clien
Am I missing something here? You can specify the port in the standard
way like this:
./manage.py runserver 0.0.0.0:12345
or
./manage.py runserver 192.168.2.29:45001
Is this not working for you? It's all documented right here:
http://www.djangoproject.com/documentation/django-admin/#runserver
The testserver command doesn't currently allow you to set the port for
the server to run on. I teach high school in a Linux thin client lab, so
all of my students are running on the same server and each needs his/her
own port, unfortunately. (Interestingly, having 10-15 Django dev servers
running
16 matches
Mail list logo