I'm just trying to do a bit of home development on Ubuntu 9.04 which has Python 2.6.
When trying to populate the database from the models it's randomly ignoring model definitions. I have no idea what's going on but the deprecation warning of sets may be to do with it? Output of ./manage.py syncdb: darr...@lenny:/home/darth/darth$ ./manage.py syncdb /var/lib/python-support/python2.6/MySQLdb/__init__.py:34: DeprecationWarning: the sets module is deprecated from sets import ImmutableSet Creating table auth_permission Creating table auth_group Creating table auth_user Creating table auth_message Creating table django_content_type Creating table django_session Creating table django_site Creating table bmi_servertype Creating table bmi_tomcatstyle Creating table bmi_server Creating table bmi_site Creating table bmi_buildtype Creating table bmi_build Creating table bmi_generalsettings Creating table django_admin_log bmi/models.py: from django.db import models import datetime class ServerType(models.Model): server_type = models.CharField('Server Use', max_length=100) def __unicode__(self): return self.server_type class TomcatStyle(models.Model): tomcat_style = models.CharField('Description', max_length=100) filesystem_location = models.CharField('Tomcat Filesystem Location (before the site name)', max_length=100) suffix = models.CharField('Site Suffix (to be appended to the site name)', max_length=100, blank=True) def __unicode__(self): return self.tomcat_style class Server(models.Model): server_name = models.CharField(max_length=50) created_date = models.DateTimeField('Date Created') server_type = models.ForeignKey(ServerType) admin_user = models.CharField(max_length=20) admin_password = models.CharField(max_length=20) ip_address = models.IPAddressField() tomcat_style = models.ForeignKey(TomcatStyle, blank=True, null=True) def __unicode__(self): return self.server_name class Site(models.Model): broker_name = models.CharField('Broker Name', max_length=50) site_name = models.CharField('Site Name', max_length=50) created_date = models.DateTimeField('Date Created') st_tomcat_server = models.ForeignKey(Server, related_name='st_tomcat') uat_tomcat_server = models.ForeignKey(Server, related_name='uat_tomcat') live_tomcat_server = models.ForeignKey(Server, related_name='live_tomcat') st_sql_server = models.ForeignKey(Server, related_name='st_sql') uat_sql_server = models.ForeignKey(Server, related_name='uat_sql') live_sql_server = models.ForeignKey(Server, related_name='live_sql') def __unicode__(self): return self.broker_name class BuildType(models.Model): build_type = models.CharField('Type of build', max_length=100) def __unicode__(self): return self.build_type class BuildStage(models.Model): build_stage_name = models.CharField(max_length=20) def __unicode__(self): return self.build_stage_name class Build(models.Model): site = models.ForeignKey(Site) current_stage = models.ForeignKey(BuildStage) created_date = models.DateTimeField('Date Created') build_release = models.CharField('Release', max_length=7, unique=True) notes = models.TextField('Build Notes') sys_test_workflow = models.BooleanField('Include System Test Workflow') proj_coord_workflow = models.BooleanField('Include Project Co-ordination') build_path = models.CharField(max_length=200, blank=True, null=True) def __unicode__(self): return self.build_release class DeployTo(models.Model): build_release = models.ForeignKey(Build) build_stage = models.ForeignKey(BuildStage) planned_date = models.DateTimeField('Planned Date') scheduled_date = models.DateTimeField('Scheduled Deployment') class GeneralSettings(models.Model): releases_dir = models.CharField('Local Path to Releases Directory', max_length=100, unique=True) class Meta: verbose_name_plural = 'General Settings' def __unicode__(self): return "General Darth settings" --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---