--- /dev/null
+# This is an auto-generated Django model module.
+# You'll have to do the following manually to clean this up:
+# * Rearrange models' order
+# * Make sure each model has one field with primary_key=True
+# Feel free to rename the models, but don't rename db_table values or field names.
+#
+# Also note: You'll have to insert the output of 'django-admin.py sqlcustom [appname]'
+# into your database.
+
+from django.db import models
+
+class Auth(models.Model):
+ id = models.IntegerField(primary_key=True)
+ user = models.CharField(max_length=384)
+ password = models.CharField(max_length=384)
+ actif = models.IntegerField()
+ expire = models.IntegerField()
+ source = models.CharField(max_length=192)
+ class Meta:
+ db_table = u'auth'
+
+ def __unicode__(self):
+ return self.user
+
+class Mailbox(models.Model):
+ id = models.IntegerField(primary_key=True)
+ user = models.CharField(max_length=384)
+ domain = models.CharField(max_length=384)
+ homedir = models.CharField(max_length=768)
+ actif = models.IntegerField()
+ expire = models.IntegerField()
+ source = models.CharField(max_length=192)
+ class Meta:
+ db_table = u'mailbox'
+
+ def __unicode__(self):
+ return self.homedir
+
+class Virtual(models.Model):
+ id = models.IntegerField(primary_key=True)
+ user = models.CharField(max_length=384)
+ domain = models.CharField(max_length=384)
+ destination = models.CharField(max_length=768)
+ actif = models.IntegerField()
+ expire = models.IntegerField()
+ source = models.CharField(max_length=192)
+ class Meta:
+ db_table = u'virtual'
+
+ def __unicode__(self):
+ return "utilisateur (%s), destination (%s)" % (self.user,
+ self.destination)
+
--- /dev/null
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
+
+Replace this with more appropriate tests for your application.
+"""
+
+from django.test import TestCase
+
+
+class SimpleTest(TestCase):
+ def test_basic_addition(self):
+ """
+ Tests that 1 + 1 always equals 2.
+ """
+ self.assertEqual(1 + 1, 2)
'PASSWORD': conf.PASSWORD, # Not used with sqlite3.
'HOST': conf.HOST, # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
+ },
+ 'ancienneBD': {
+ 'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
+ 'NAME': conf.DB0, # Or path to database file if using sqlite3.
+ 'USER': conf.USER0, # Not used with sqlite3.
+ 'PASSWORD': conf.PASSWORD0, # Not used with sqlite3.
+ 'HOST': conf.HOST0, # Set to empty string for localhost. Not used with sqlite3.
+ 'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
'django.contrib.messages',
'django.contrib.staticfiles',
'south',
+ 'ancien_messagerie',
# Uncomment the next line to enable the admin:
# 'django.contrib.admin',
# Uncomment the next line to enable admin documentation: