I went through GenericRelation's today as I was harassed several times
to, and I found nothing that would help at all for what I'm trying to
accomplish.
Here are the updated models:
class Score(models.Model):
content_type = models.ForeignKey(ContentType, db_index=True)
object_id
On 9/23/06, Tyson Tate <[EMAIL PROTECTED]> wrote:
> I've reduced it to the barest components:
>
> Model: http://paste.e-scribe.com/1671/
>
> And it still gives me the "iteration over non-sequence" error as well
> as the "'SignupSlot' object has no attribute 'set_signups'" crashing
> error I get in
On Sep 23, 2006, at 12:45 AM, Malcolm Tredinnick wrote:
> What happens when you reduce the example to something smaller? Does it
> go away? What is the last thing you change before it goes away? If the
> problem never goes away, you should end up with a two line example you
> can paste in an emai
On Sat, 2006-09-23 at 18:35 +0100, Tom Smith wrote:
> I have a model that is trying to join (sloppily) across 3 tables.
> KnownCategories are a "group by catalog" reduction of Product.catalog
> (because I thought it would be quicker but I don't know if I'm
> right)...they should join like th
On Sat, 2006-09-23 at 18:24 +, [EMAIL PROTECTED] wrote:
> Tom Smith wrote:
> > Whilst playing with the MacOS X Gui Tools, I re-discovered mysql
> > Views. They would be massively useful to me... for example I could
> > have a query that inserted into a view which would mean django
> > wouldn't
On Sat, 2006-09-23 at 16:13 +0100, Tom Smith wrote:
> Whilst playing with the MacOS X Gui Tools, I re-discovered mysql
> Views. They would be massively useful to me... for example I could
> have a query that inserted into a view which would mean django
> wouldn't have to be performing comple
Thanks!
Rudolph
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTE
I'm sure this has been discussed before, but my google skills are
failing me.
I would like to create a FormField that is comprised of multiple other
FormFields. For instance, I would like month, day, and year fields to
be converted to a single date object in html2python.
One solution is to add
Hi all,
I'm a pathological early adopter, long-time developer, consultant and
occasional technology trainer. And a Django user since the start of
September last year.
I recently did a 'what is Django' taster for the development team at
one of my clients, because I'd built a very neat asset manag
Hi, I'm working with FreeBSD-6.0-RELEASE, Django-0.95, psycopg-1.1.21 and Apache-2.0.58, when I access the admin page, it leave lots of connection opened like say "ps ax":'''25593 p1 S 0:00.02 postmaster: user database
127.0.0.1(58517) idle in transaction (postgres)'''What can I do to avoid
Tamara D. Snyder wrote:
> Hi all,
>
> I'm sorry, I'm sure this is an extremely simple thing that I am just
> stupidly missing. But I can't seem to figure out which revision of
> the django code I am using. I use subversion to download the "latest
> version" - but I only do it every so oft
Thanks for the enlightenment - seems I had some misconceptions about
how validators work. Based on this misconceptions I designed some tests
which somehow worked but not as I liked - hence my posting. My crude
first cut was like this:
# ripped out of django/db/models/base.py
def validate(instance
Hi all,
I'm sorry, I'm sure this is an extremely simple thing that I am just
stupidly missing. But I can't seem to figure out which revision of
the django code I am using. I use subversion to download the "latest
version" - but I only do it every so often. Can anyone help me?
Thanks,
T
On Sep 23, 2006, at 8:49 AM, Jon Atkinson wrote:
>
> Hi all,
>
> I've been looking for a copy of the Django cheat sheet (previous URL:
> http://www.dobbes.com/media/pdfs/django_reference_sheet.pdf), but that
> resource seems to have disappeared. Does anyone have a copy of this?
You can find a c
I'd be glad to maintain it for kate!
I just uploaded a new version. It highlights mismatched
block/for/if/etc tags as errors. (Something I tend to do a lot.)
I also changed the priority to 9, so that it doesn't compete for the
html extention.
(Sorry it took me so long to reply... I've been pr
Tom Smith wrote:
> Whilst playing with the MacOS X Gui Tools, I re-discovered mysql
> Views. They would be massively useful to me... for example I could
> have a query that inserted into a view which would mean django
> wouldn't have to be performing complex queries on-the-fly.
Same goes for stor
Search on google gave:
http://www.woodpecker.org.cn:9081/classes/050925-CPUG/django_reference_sheet.pdf#search=%22django%20reference%20sheet%22
http://code.djangoproject.com/wiki/DjangoCheatSheet
Chris
--~--~-~--~~~---~--~~
You received this message because you
I just do it like this
Backup the table ( ehem , i usually skip this )
Change the model
Run manage.py sql appname and see what fields are added.
Get the table name, column name and type
Then just run (postgresql, not much different in mysql i guess):
alter table appname_modelname add column "
To add to this I wouldn't mind also making it include the ratingrel
table in the query (or seperate manager, maybe an option inside that
manager) so we can check if they user has already rated that object.
--~--~-~--~~~---~--~~
You received this message because yo
I have a model that is trying to join (sloppily) across 3 tables.
KnownCategories are a "group by catalog" reduction of Product.catalog
(because I thought it would be quicker but I don't know if I'm
right)...they should join like this...
Product.catalog <--> KnownCategory.fk_name <-
Tom,
Many of us are in the same boat. I wish that functionality was
allready in Django, but for the moment it's in que. Here is a link to
the Wiki entry talking about it:
http://code.djangoproject.com/wiki/SchemaEvolution
The SOC project has produced some code, but it needs some more testing.
Jon,
I'm not sure, but I think that it was removed because it wasn't up to
date. I have been working on my own cheat sheet, but it isn't ready
for public consumption just yet.
-- Nick Pavlica
--~--~-~--~~~---~--~~
You received this message because you are su
Hi all,
I've been looking for a copy of the Django cheat sheet (previous URL:
http://www.dobbes.com/media/pdfs/django_reference_sheet.pdf), but that
resource seems to have disappeared. Does anyone have a copy of this?
--Jon
--~--~-~--~~~---~--~~
You received this
Holger Schurig wrote:
> I tried to remove the link
>
>Django API (Beta): Automatic generated API using epydoc
>
> from the WikiStart page. However, some SPAM protection tool
> called "Akismet" prevented me from doing this.
I have run into the same issue. It would be nice if someone would loo
I'm creating a digg-like rating system, where users can vote an object
up or down. The system is generalized as to where you can simply plug
it into any object you want.
I have 2 models:
class Score(models.Model):
content_type = models.ForeignKey(ContentType,
related_name="score_target_t
Please do a search for 'schema-evolution' on the dev list. It's been
discussed ad nauseum and there was a project with Google's SoC to
address the issue. The code, as far as i know, is complete and
waiting in a seperate branch for testing before being merged into the
main trunk.
Clint
On 9/2
At the moment I am learning django and so far, almost everything about it feels fantastic. Except for this...A lot of the time I need to change the database model as I go... I have millions of records and have problems dumping all the data out re-sync-ing the database and then importing the data ag
Whilst playing with the MacOS X Gui Tools, I re-discovered mysql
Views. They would be massively useful to me... for example I could
have a query that inserted into a view which would mean django
wouldn't have to be performing complex queries on-the-fly.
The questions are:
1. Can Dja
Upload to where? For what? There isn't really enough information in
this and the previous posts in this thread to get any sensible answer
:-)
--Jon
On 9/23/06, a <[EMAIL PROTECTED]> wrote:
> is there an easy way to upload opml files
> thanks
> Jon Atkinson wrote:
> > I've found that using XMLObj
still learning ...
btw, it works fine now.
thanks,
patrick
Am 23.09.2006 um 12:45 schrieb Ivan Sagalaev:
>
> patrickk wrote:
>> thanks, I think I´ve got it now.
>>
>> the documentation of custom manipulators really lacks advanced
>> examples.
>> I don´t know how one should find out what you e
patrickk wrote:
> thanks, I think I´ve got it now.
>
> the documentation of custom manipulators really lacks advanced examples.
> I don´t know how one should find out what you explained in the last
> few mails by reading the documentation.
> e.g., I´m quite sure that there´s no explanation of "
My MacOS X Django Development environment.
I have found the easiest to be to install MAMP, which has Apache
(which at the moment I don't use) and MySQL built in ... It has a
nice GUI.. http://www.mamp.info/
Then install the MySQL python module mentioned//
http://pythonmac.org/packages/py24-
On Sat, 2006-09-23 at 01:52 -0700, Rudolph wrote:
> Hi,
>
> When I have datetime field with the value "1000-1-1 00:00:00" and I
> have a template which has:
> {{ datetime_field|date:"j F Y" }}
> I get a ValueError: year out of range. But when I do:
> {{ datetime_field.date|date:"j F Y" }}
> it wo
Hi,
When I have datetime field with the value "1000-1-1 00:00:00" and I
have a template which has:
{{ datetime_field|date:"j F Y" }}
I get a ValueError: year out of range. But when I do:
{{ datetime_field.date|date:"j F Y" }}
it works okay (except that I lost the time values if I wanted to use
th
On Fri, 2006-09-22 at 23:46 -0700, Maximillian Dornseif wrote:
> I'm struggeling to build tests for (custom) validators - see
> http://www.djangoproject.com/documentation/forms/#validators for the
> basics.
>
> To my understanding there are two kinds of validators:
>
> a) Validators inherent t
Nothing jumps out at me, but here are a few ideas about how to debug
this...
On Fri, 2006-09-22 at 22:44 -0700, Tyson Tate wrote:
> I've got the following model:
>
> http://paste.e-scribe.com/1666/
What happens when you reduce the example to something smaller? Does it
go away? What is the last
36 matches
Mail list logo