On Apr 25, 4:22 pm, Jonas Ghyllebert <jghylleb...@nuvia.io> wrote: > Hi, > > Thanks for the quick reply. > > when we test the application local, it works like a charm. > But when we deployed it on Google App engine using Cloud SQL, the > application works now and then and this particular page is much slower than > the others. > When there's an error, Django shows the 500 - internal server error. > > These are my models: > *Zip* > > class Zip(models.Model): > > zip_code = models.IntegerField() > > zip_name = models.CharField(max_length=75) > > zip_lang = models.CharField(max_length=2) > > province = models.ForeignKey(Province) > > class Meta: > > ordering = ["zip_name"] > > verbose_name = "postcode" > > verbose_name_plural = "postcodes" > > def __unicode__(self): > return self.zip_name + ' (' + unicode(self.zip_code) +')' > > * > * > *Region* > > class Region(models.Model): > > region_name = models.CharField(max_length=75) > > office = models.ForeignKey(Office) > > region_primary = models.BooleanField() > > def __unicode__(self): > > return self.region_name > > class Meta: > > verbose_name = "regio" > > verbose_name_plural = "regio's" > > There is an extra table which stores which zips are included in one Region: > *Zip_per_region* > > class Zip_per_region(models.Model): > > region = models.ForeignKey(Region) > > zip = models.ForeignKey(Zip) > > class Meta: > > verbose_name = "postcode"
I am afraid I can't help you. It seems the issue is related to Google App Engine and Django interactions, and I know nothing about GAE. I hope somebody else is able to help you out. - Anssi -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.