Re: Models Causing Admin to Crash

2007-02-27 Thread Ramiro Morales

On 2/27/07, DuncanM <[EMAIL PROTECTED]> wrote:
>
> Any idea where outside it could be? I am using mod_python with apache.

Have you done what Honza suggested?. Namely, stopping Apache,
running you app under the Django development webserver instead and trying
to reproduce the use case?.

Regards,

-- 
 Ramiro Morales

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Models Causing Admin to Crash

2007-02-27 Thread DuncanM

Any idea where outside it could be? I am using mod_python with apache.

Thanks for all your help
Duncan

On Feb 26, 7:34 pm, "Honza Král" <[EMAIL PROTECTED]> wrote:
> On 2/26/07, DuncanM <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi,
> > I have some models related to a football (soccer) team, I had models
> > for everything working fine except my Results model.  I tried adding
> > it yesterday and encountered a few problems with it, which was solved
> > due to the help from these groups (thanks).  However now when I run
> > syncdb I don't get any errors (which I was yesterday and are now
> > fixed) so I thought everything was ok.
>
> > I log into my admin and everytime I click on the "Results" model
> > within my admin I think I crash the server (because it comes back with
> > this response
> > "Proxy Error
>
> > The proxy server received an invalid response from an upstream server.
> > The proxy server could not handle the request GET /admin/teams/
> > result/.
>
> > Reason: Error reading from remote server"
>
> > after a few minutes of trying, and within apache I have to restart it
> > to get it back up and running again.
>
> try it with the development server, the problem seems to be outside of
> django itself
>
>
>
>
>
> > Here is my Results model:
>
> > class Result(models.Model):
> >   team = models.ForeignKey(Team, core=True)
> >   venue = models.CharField(maxlength=1, choices=Fixture_Choices)
> >   date = models.DateField()
> >   opponent = models.CharField(maxlength=100)
> >   competition = models.ForeignKey(Competition)
> >   howdenscore = models.IntegerField()
> >   opponentscore = models.IntegerField()
> >   goalkeeper = models.ForeignKey(Player,
> > related_name='goalkeeper_for')
> >   leftback = models.ForeignKey(Player, related_name='leftback_for')
> >   centreback1 = models.ForeignKey(Player,
> > related_name='centreback1_for')
> >   centreback2 = models.ForeignKey(Player,
> > related_name='centreback2_for')
> >   rightback = models.ForeignKey(Player, related_name='rightback_for')
> >   leftmid = models.ForeignKey(Player, related_name='leftmid_for')
> >   centremid1 = models.ForeignKey(Player,
> > related_name='centremid1_for')
> >   centremid2 = models.ForeignKey(Player,
> > related_name='centremid2_for')
> >   rightmid = models.ForeignKey(Player, related_name='rightmid_for')
> >   striker1 = models.ForeignKey(Player, related_name='striker1_for')
> >   striker2 = models.ForeignKey(Player, related_name='striker2_for')
> >   sub1 = models.ForeignKey(Player, related_name='sub1')
> >   sub2 = models.ForeignKey(Player, related_name='sub2')
> >   sub3 = models.ForeignKey(Player, related_name='sub3')
> >   sub4 = models.ForeignKey(Player, related_name='sub4')
> >   sub5 = models.ForeignKey(Player, related_name='sub5')
> >   class Admin:
> > pass
> > list_display = ('date', 'team', 'venue', 'opponent',
> > 'competition', 'howdenscore', 'opponentscore')
> > list_filter = ['date', 'team', 'venue', 'competition']
> > search_fields = ['date']
> >   def __str__ (self):
> > return self.opponent
>
> > Does anyone have any idea whats going on because I surely do not.
>
> > Thanks in advance,
> > Duncan
>
> --
> Honza Kr?l
> E-Mail: [EMAIL PROTECTED]
> ICQ#:   107471613
> Phone:  +420 606 678585


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Models Causing Admin to Crash

2007-02-26 Thread Honza Král
On 2/26/07, oggie rob <[EMAIL PROTECTED]> wrote:
>
> I can't tell if this is the cause, but you should remove the "pass"
> right under "class Admin":

pass is just an empty command, it doesn't do anything

>
>  -rob
>
>
> >
>


-- 
Honza Kr�l
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Models Causing Admin to Crash

2007-02-26 Thread Honza Král
On 2/26/07, DuncanM <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I have some models related to a football (soccer) team, I had models
> for everything working fine except my Results model.  I tried adding
> it yesterday and encountered a few problems with it, which was solved
> due to the help from these groups (thanks).  However now when I run
> syncdb I don't get any errors (which I was yesterday and are now
> fixed) so I thought everything was ok.
>
> I log into my admin and everytime I click on the "Results" model
> within my admin I think I crash the server (because it comes back with
> this response
> "Proxy Error
>
> The proxy server received an invalid response from an upstream server.
> The proxy server could not handle the request GET /admin/teams/
> result/.
>
> Reason: Error reading from remote server"
>
> after a few minutes of trying, and within apache I have to restart it
> to get it back up and running again.

try it with the development server, the problem seems to be outside of
django itself

>
> Here is my Results model:
>
> class Result(models.Model):
>   team = models.ForeignKey(Team, core=True)
>   venue = models.CharField(maxlength=1, choices=Fixture_Choices)
>   date = models.DateField()
>   opponent = models.CharField(maxlength=100)
>   competition = models.ForeignKey(Competition)
>   howdenscore = models.IntegerField()
>   opponentscore = models.IntegerField()
>   goalkeeper = models.ForeignKey(Player,
> related_name='goalkeeper_for')
>   leftback = models.ForeignKey(Player, related_name='leftback_for')
>   centreback1 = models.ForeignKey(Player,
> related_name='centreback1_for')
>   centreback2 = models.ForeignKey(Player,
> related_name='centreback2_for')
>   rightback = models.ForeignKey(Player, related_name='rightback_for')
>   leftmid = models.ForeignKey(Player, related_name='leftmid_for')
>   centremid1 = models.ForeignKey(Player,
> related_name='centremid1_for')
>   centremid2 = models.ForeignKey(Player,
> related_name='centremid2_for')
>   rightmid = models.ForeignKey(Player, related_name='rightmid_for')
>   striker1 = models.ForeignKey(Player, related_name='striker1_for')
>   striker2 = models.ForeignKey(Player, related_name='striker2_for')
>   sub1 = models.ForeignKey(Player, related_name='sub1')
>   sub2 = models.ForeignKey(Player, related_name='sub2')
>   sub3 = models.ForeignKey(Player, related_name='sub3')
>   sub4 = models.ForeignKey(Player, related_name='sub4')
>   sub5 = models.ForeignKey(Player, related_name='sub5')
>   class Admin:
> pass
> list_display = ('date', 'team', 'venue', 'opponent',
> 'competition', 'howdenscore', 'opponentscore')
> list_filter = ['date', 'team', 'venue', 'competition']
> search_fields = ['date']
>   def __str__ (self):
> return self.opponent
>
>
> Does anyone have any idea whats going on because I surely do not.
>
> Thanks in advance,
> Duncan
>
>
> >
>


-- 
Honza Kr�l
E-Mail: [EMAIL PROTECTED]
ICQ#:   107471613
Phone:  +420 606 678585

--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Models Causing Admin to Crash

2007-02-26 Thread DuncanM



On Feb 26, 5:45 pm, "oggie rob" <[EMAIL PROTECTED]> wrote:
> I can't tell if this is the cause, but you should remove the "pass"
> right under "class Admin":
>
>  -rob

Nope I have that on my other classes as well and I don't have any
problems with them, I did try removing it just in case but it still
doesn't work.

Still stumped :(


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Models Causing Admin to Crash

2007-02-26 Thread oggie rob

I can't tell if this is the cause, but you should remove the "pass"
right under "class Admin":

 -rob


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Models Causing Admin to Crash

2007-02-26 Thread DuncanM

Hi,
I have some models related to a football (soccer) team, I had models
for everything working fine except my Results model.  I tried adding
it yesterday and encountered a few problems with it, which was solved
due to the help from these groups (thanks).  However now when I run
syncdb I don't get any errors (which I was yesterday and are now
fixed) so I thought everything was ok.

I log into my admin and everytime I click on the "Results" model
within my admin I think I crash the server (because it comes back with
this response
"Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /admin/teams/
result/.

Reason: Error reading from remote server"

after a few minutes of trying, and within apache I have to restart it
to get it back up and running again.

Here is my Results model:

class Result(models.Model):
  team = models.ForeignKey(Team, core=True)
  venue = models.CharField(maxlength=1, choices=Fixture_Choices)
  date = models.DateField()
  opponent = models.CharField(maxlength=100)
  competition = models.ForeignKey(Competition)
  howdenscore = models.IntegerField()
  opponentscore = models.IntegerField()
  goalkeeper = models.ForeignKey(Player,
related_name='goalkeeper_for')
  leftback = models.ForeignKey(Player, related_name='leftback_for')
  centreback1 = models.ForeignKey(Player,
related_name='centreback1_for')
  centreback2 = models.ForeignKey(Player,
related_name='centreback2_for')
  rightback = models.ForeignKey(Player, related_name='rightback_for')
  leftmid = models.ForeignKey(Player, related_name='leftmid_for')
  centremid1 = models.ForeignKey(Player,
related_name='centremid1_for')
  centremid2 = models.ForeignKey(Player,
related_name='centremid2_for')
  rightmid = models.ForeignKey(Player, related_name='rightmid_for')
  striker1 = models.ForeignKey(Player, related_name='striker1_for')
  striker2 = models.ForeignKey(Player, related_name='striker2_for')
  sub1 = models.ForeignKey(Player, related_name='sub1')
  sub2 = models.ForeignKey(Player, related_name='sub2')
  sub3 = models.ForeignKey(Player, related_name='sub3')
  sub4 = models.ForeignKey(Player, related_name='sub4')
  sub5 = models.ForeignKey(Player, related_name='sub5')
  class Admin:
pass
list_display = ('date', 'team', 'venue', 'opponent',
'competition', 'howdenscore', 'opponentscore')
list_filter = ['date', 'team', 'venue', 'competition']
search_fields = ['date']
  def __str__ (self):
return self.opponent


Does anyone have any idea whats going on because I surely do not.

Thanks in advance,
Duncan


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---