Hi,
I have a Django app that relies heavily on caching. I'd like
"./manage.py test" to run on its own test cache instance (so it doesn't
see keys from previous runs / other development / etc).
I can write code to set up the cache appropriately, but, where can I
put it s.t. it ru
Hey folks,
I have a PostgreSQL stored procedure that does some fairly complex
logic to query/filter a particular table (though it ultimately does
return rows straight from that table). I'm trying to call this stored
procedure from within Django, and execute additional filters/etc on th
Hey,
I have a table setup that boils down to something like the following:
class MyUser(models.Model):
type = models.IntegerField()
class MyStuffs(models.Model):
stuffs = models.ForeignKey(MyUser)
I would like to be able to do something like:
MyUser.objects.filt
Hi,
We're running a website that usually runs just fine on our server; but
every now and then we get a big load burst (thousands of simultaneous
users in an interactive Web 1.5-ish app), and our database server
(PostgreSQL) just gets completely swamped.
We'd like to set up some
Hi,
Does there exist any code for Django to help defeat brute-force login
attempts? Something like blocking IP addresses from logging in if they
try and fail too many times, etc.
Adam
--~--~-~--~~~---~--~~
You received this message because you are subs
t's not my intention. Just
> dealt with a lot of these scenarios as a sys admin in a former life,
> and the answer is always to beat users over the head until they stop
> choosing "god/god" as their username/password combination.
>
> On Nov 9, 3:57 pm, Adam Seering w
If you really want everything, then either MacPorts or Fink work well.
If you just want to run through the tutorial, though, you can probably get
away with the built-in version of Python and SQLite as suggested. Older
Macs have Python 2.3, which should work (though it is quite old); Leopard
(MacO
Hi all,
I'm trying to introspect an old MySQL database (the old software
that used the database was written in some nasty mix of Perl and C;
it just bit the dust recently). I try an inspectdb on it, and I get
an ugly-looking stack trace. Is 'inspectdb' expected to work?; has
anyo
Hi all,
I have code that, greatly simplified, looks like the following:
class CheckBoxType(models.Model):
name = models.TextField()
class Course(models.Model):
name = models.TextField()
checkboxes = models.ManyToManyField(CheckBoxType)
Essentially, a Course has m
Hi,
I have a table (implementing a tree) that a whole lot of other
tables have ForeignKeys pointing to. I'm trying to write a "clone"
method that takes an element in the table, duplicates it (with a new
ID), and creates duplicates of all table elements from any other
tables that F
Hey,
Thanks!; that's exactly what I was looking for,
Adam
On 12/13/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:
>
>
> On 12/12/06, Adam Seering <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> > I know Django keeps track of connec
Hi,
The sample string below appears correctly (ie. no "?"'s) for me; are
you saying that it does for you, or that it doesn't?
If you're just having a problem with rendered HTML: I'm not sure how
you're entering those characters, but I'm guessing that they're being
stored as Unicode char
On Jan 5, 2007, at 12:41 AM, [EMAIL PROTECTED] wrote:
InvalidCacheBackendError: Memcached cache backend requires the
'memcache' library
It sounds like you're trying to use memcached for caching.
what i have installed:
httpd-2.0.52
mod_python-3.1.3-5.1
postgresql-server-8.1.3-1.el4s1.2
pos
On Jan 6, 2007, at 6:28 AM, [EMAIL PROTECTED] wrote:
I do not really think that you need to Redirect after every post -
only
when data is altered.
In general, I agree, but many Web browsers give an annoying warning
message if you try to go back across a POST; it's nice to redirect so
a
I would strongly second that. This seems to have fallen somewhat
dead, though. Any thoughts?; anyone in favor of it?; anyone know of
any reasons not to do it?
Adam
On Dec 27, 2006, at 1:42 PM, Adrian Holovaty wrote:
>
> On 12/27/06, medhat <[EMAIL PROTECTED]> wrote:
>> Is there a way to
Hi,
I have two models, A and B. A.anchor is a foreignkey to B. I
currently have the following code:
B.objects.filter(id__in=[ x.anchor for x in
A.function_that_applies_filter_to_A(data) ])
function_that_applies_filter_to_A is defined elsewhere, and I'm
really not
Hi all,
I've been working on a reasonably large internal site using Django.
I was hitting the problem that user logins seemed to be getting
confused; ie., two users logged in at the same time would
occasionally switch 'User' database entries in request.user; one
user's request.user woul
Hey,
Applying that patch does seem to have helped on the first server;
it's a probabilistic problem, but at least we haven't seen it since
trying this.
The first server was running Debian Etch; the second was running
Gentoo. Both were using Django as installed from their lo
bout
the choice to use Django for this particular project; do folks have
any thoughts/answers for them?
Thanks,
Adam
On Jan 17, 2007, at 4:51 PM, Jeremy Dunck wrote:
On 1/17/07, Adam Seering <[EMAIL PROTECTED]> wrote:
Out of curiosity, is there a
way to determine the version of Dja
On Jan 17, 2007, at 10:01 PM, James Bennett wrote:
Some of the people on this project are having serious concerns about
the choice to use Django for this particular project; do folks have
any thoughts/answers for them?
I'm not sure really what sort of answers there are to give; there
aren't
On Jan 18, 2007, at 9:35 AM, Jeremy Dunck wrote:
On 1/17/07, Adam Seering <[EMAIL PROTECTED]> wrote:
...
We're not eager to use the SVN HEAD version of source on our main
servers. The Django API-change docs are good, but not that good; we
have had code break unexpectedly in the
I'm trying to use Django to manage a pre-existing documents directory.
I'm using FilePathFields to point to files in the directory. However,
the directory contains many subdirectories, and files with repeat
names. The Admin interface, by default, just recursively scans
directories and makes
I'm trying to make a form that, among other things, allows a user to
upload one or more files (the number of files will vary; it's a form to
upload images that are missing on a vaguely-Wiki-like page). Each
uploaded file creates a new table entry; the non-FileFields in the
table are determine
Hi,
I have some Python code that generates initial data for some of my
tables; I currently call that code from a post_syncdb hook. In Django 1.3, it
looks like Django now calls TRUNCATE (or an equivalent non-PostgreSQL-ism) on
all tables after running syncdb and all of its post- hooks.
On May 8, 7:16 pm, Jacob Kaplan-Moss wrote:
> On Sun, May 8, 2011 at 4:25 PM, Adam Seering wrote:
> > I have some Python code that generatesinitialdatafor some of my tables; I
> > currently call that code from a post_syncdb hook. In Django 1.3, it looks
> > like
> >
On May 8, 10:53 pm, Karen Tracey wrote:
> On Sun, May 8, 2011 at 10:13 PM, Adam Seering wrote:
> > (Incidentally, sorry if this is a duplicate; my original reply,
> > identical text, doesn't show up on groups.google.com...)
>
> I don't know why, but google group
On May 9, 12:24 pm, Karen Tracey wrote:
> On Mon, May 9, 2011 at 12:56 AM, Adam Seering wrote:
> > On May 8, 10:53 pm, Karen Tracey wrote:>
> > > The change you have noticed is documented in the 1.3
> > > backwards-incompatibility list:
> >http://docs.d
27 matches
Mail list logo