On Wed, Dec 22, 2010 at 7:55 AM, Andy <selforgani...@gmail.com> wrote: > Say I have these models: > > class Musician(models.Model): > first_name = models.CharField(max_length=50) > last_name = models.CharField(max_length=50) > > class Album(models.Model): > artist = models.ForeignKey(Musician) > name = models.CharField(max_length=100) > > MySQL with MyISAM tables doesn't support Foreign Key. So in this case > what CREATE TABLE statements will be generated for Musician & Album? > Will the FOREIGN KEY clause still be generated if MyISAM is being used? >
Yes. Django has no concept of your underlying DB engine. Use this command to see how django would create all your models. python manage.py sqlall Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.