This is the postgrelog:
2007-04-15 11:23:06 CEST ERROR: no se puede truncar una tabla
referida en una llave foránea
2007-04-15 11:23:06 CEST DETALLE: La tabla «galeria_galeria» hace
referencia a «galeria_album».
2007-04-15 11:23:06 CEST HINT: Trunque la tabla «galeria_galeria» al
mismo tiempo,
2007/4/15, Grupo Django <[EMAIL PROTECTED]>:
>
> This is the postgrelog:
> 2007-04-15 11:23:06 CEST ERROR: no se puede truncar una tabla
> referida en una llave foránea
> 2007-04-15 11:23:06 CEST DETALLE: La tabla «galeria_galeria» hace
> referencia a «galeria_album».
> 2007-04-15 11:23:06 CEST
there is an app that i would like to make that would build on that
funcionality...
but try to google that and find something useful :)
cheers, ash
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
Hi,
2007-04-15 11:23:06 CEST ERROR: no se puede truncar una tabla
referida en una llave foránea
2007-04-15 11:23:06 CEST DETALLE: La tabla «galeria_galeria» hace
referencia a «galeria_album».
2007-04-15 11:23:06 CEST HINT: Trunque la tabla «galeria_galeria» al
mismo tiempo, o utilice TRUNCATE ..
Is there any newsletter app for django, allowing users to
subscribe-unsubscribe for newsletters?
Thanks in advance.
--
Alessandro Ronchi
Skype: aronchi - Wengo: aleronchi
http://www.alessandroronchi.net - Il mio sito personale
http://www.soasi.com - Sviluppo Software e Sistemi Open Source
--~-
Hi - I'm a Django newbie and I have a query that, using the syntax in
the database API, would become very slow. I'm wondering what the way
around it is.
I have 3 tables
Group -- contains a list of groups
Item: (each item belongs to a group)
ForeignKey(groupid)
ItemRatingsByGroup: (the ra
tejas schrieb:
> Hi - I'm a Django newbie and I have a query that, using the syntax in
> the database API, would become very slow. I'm wondering what the way
> around it is.
>
> I have 3 tables
>
> Group -- contains a list of groups
>
>
> Item: (each item belongs to a group)
> ForeignKey(
You need to query against your ItemRatingsByGroup table directly where
the group_id equals the group you want. That will give you all the
info you want, the item, the group, and the rating.
Michael
On 4/15/07, Paul Rauch <[EMAIL PROTECTED]> wrote:
>
> tejas schrieb:
> > Hi - I'm a Django newbie
Thanks guys
The problem in this case with querying against ItemRatingsByGroup is that
not all Items are in there.
Only the items that have been rated are in items rated by group
I'm looking to display as following:
The Group
All the items in the group
A rating for each item - if a rating
On 4/15/07, Tejas Shah <[EMAIL PROTECTED]> wrote:
> Thanks guys
>
> The problem in this case with querying against ItemRatingsByGroup is that
> not all Items are in there.
>
> Only the items that have been rated are in items rated by group
>
> I'm looking to display as following:
>
> The Group
>
Hey guys,
I really need some help with understanding the issue here, I'm not
making too many database calls so I'm not sure why it's taking so long
for each view to go through. Any common problem areas that cause slow
down? ie sever? poor db calls.. etc?
here is the website
www.ready-ready.org
On 4/15/07, Roboto <[EMAIL PROTECTED]> wrote:
> You'll notice a SOLID 5-10 sec "wait" before the page loads, which
> makes me believe that the server is doing something in the background
Hi Roboto,
I didn't had to wait for the page to load. It was fast. Perhaps it's
an intermittent issue (pr
It's in general. Although.. I can't really tell to be dead honest.
Last night I was crawling at 5-10 secs for response times.
On Apr 15, 1:55 pm, "Julio Nobrega" <[EMAIL PROTECTED]> wrote:
> On 4/15/07, Roboto <[EMAIL PROTECTED]> wrote:
>
> > You'll notice a SOLID 5-10 sec "wait" before the page
CTRL+RIGHT ARROW (Move the insertion point to the beginning of the next
word)
CTRL+LEFT ARROW (Move the insertion point to the beginning of the previous
word)
CTRL+DOWN ARROW (Move the insertion point to the beginning of the next
paragraph)
CTRL+UP ARROW (Move the insertion point to the beginnin
Thanks, that is very helpful.
At 11:45 AM -0600 4/14/07, Brian Rosner wrote:
>You will want to check out how to create widgets. Here might be an
>example you are looking for as well as a an example in general.
>
>http://code.djangoproject.com/browser/django/branches/newforms-admin/django/contrib
oh, found this already: http://code.google.com/p/django-tagging/
which is all i need actually :)
On Apr 15, 1:04 pm, "ashwoods" <[EMAIL PROTECTED]> wrote:
> there is an app that i would like to make that would build on that
> funcionality...
> but try to google that and find something useful :)
creating a widget might be an overkill in this case
adding a custom class to the input field via the attrs parameter
should cover it nicely. i use this approach without the need for a
special widget.
On 4/15/07, Ray Cote <[EMAIL PROTECTED]> wrote:
>
> Thanks, that is very helpful.
>
> At 11:45 AM
I have a situation with a model that has multiple relationships to other
models as described below:
Contact (3-4 character fields)
- FK to Organization (3-4 char fields)
- Many to Many to Address (5-6 char fields)
- Many to Many to Phone (3 fields)
- Many to Many to Order
During the checkout pro
Tejas,
Can you not use the select_related on the queryset to eager load the
relationships?
Michael
On 4/15/07, Michael Trier <[EMAIL PROTECTED]> wrote:
> On 4/15/07, Tejas Shah <[EMAIL PROTECTED]> wrote:
> > Thanks guys
> >
> > The problem in this case with querying against ItemRatingsByGroup i
You will need to provide more specific information to get an answer to
that question. Namely, you will need to provide:
1) How long "several seconds" is
2) What is your view (or is it admin view)?
3) What would satisfy "good" performance
4) What do you see when you don't use the web server & d
Hi Michael
Thanks for the response
I don't think select_related works backwards on relations, so I wouldn't be
able to use it for the rating_set part
I think I've possibly come across a nice solution, by generating Left Join
Queries through django's own sql query mechanism
http://groups.google.
I am making an app that lists a number of objects using the tried and
true paginator to which you pass a fairly arbitrary queryset.
The issue is I want users to be able to save a link to a specific
entry without having them specify which page in a multipage listing to
go to.
It is probably easie
>
> You will need to provide more specific information to get an answer to
> that question. Namely, you will need to provide:
Of course.
> 1) How long "several seconds" is
Roughly 5 seconds.
> 2) What is your view (or is it admin view)?
It is a custom view. I put some print statements befor
>
> It's in general. Although.. I can't really tell to be dead honest.
> Last night I was crawling at 5-10 secs for response times.
>
> On Apr 15, 1:55 pm, "Julio Nobrega" <[EMAIL PROTECTED]> wrote:
> > On 4/15/07, Roboto <[EMAIL PROTECTED]> wrote:
> >
> > > You'll notice a SOLID 5-10 sec "wait"
On 4/15/07, Chris Moffitt <[EMAIL PROTECTED]> wrote:
> Thanks for the pointer. Any other ideas?
There are a few straight Python things you can do to speed up the code
a bit, but they won't be huge.
First off, how many keys are you usually seeing in
address.__dict__.keys()? If it's a lot, and t
On 4/15/07, aaloy <[EMAIL PROTECTED]> wrote:
> Fasterfox gave me 3.208s for the main page and less than a second for
> the others.
That's the same behaviour I saw (with Safari instead of Firefox).
First access is kinda slow, but every subsequent one is fast. That
*includes* reloading the main pag
On 4/15/07, Jay Parlar <[EMAIL PROTECTED]> wrote:
> What kind of server setup are you using? I'm not very educated on the
> various types, but I believe FCGI, for instance, will kill all the
> Python processes after awhile, if the site hasn't been hit, and will
> respawn them again once a new conn
When I enable etags, django is sending back an etag on 404 pages.
When a client does a subsequent request for the same nonexistent
page, a 304 response is sent back, because the page has not changed
(based on the etag).
When I disable etags, multiple requests for a non existent page all
return 4
For anyone looking at this thread in the future. I finally worked this
out. My problem was ridiculously easy. In the settings file for the
MEDIA_URL even though the example gives http://media.lawrence.com it
should be http://media.lawrence.com/. That trailing slash was the
cause of all my problems
Hi Sandro,
On Fri, 2007-04-13 at 13:43 +0200, Sandro Dentella wrote:
> > sandro.dentella a écrit :
> > > Thanks! that was it. Now I can reproduce the error. Which is the
> > > "correct" solution?
> > >
> > > An easy and not really nice one is to encode title into
> > > DEFAULT_CHARSET, but I'd r
> The actual code is here -
http://www.satchmoproject.com/trac/browser/satchmo/trunk/satchmo/shop...
and the save function starts at line 150.
I had a look and was wondering about the
self.clean_data['other_field'] references within various clean_x
methods. I thought, perhaps cyclic references (
31 matches
Mail list logo