Models
class AbstractLodge(models.Model):
number = models.IntegerField(null=True, blank=True)
name = models.CharField(max_length=100)
coat_of_arms = models.ImageField(upload_to='coat_of_arms/', null=True, blank=True)
consecrated = models.DateField()
installation_month = models.CharField(
choices=[
('JAN', 'January'),
('FEB', 'February'),
('MAR', 'March'),
('APR', 'April'),
('MAY', 'May'),
('JUN', 'June'),
('JUL', 'July'),
('AUG', 'August'),
('SEP', 'September'),
('OCT', 'October'),
('NOV', 'November'),
('DEC', 'December'),
],
blank=True,
max_length=3
)
meeting = models.OneToOneField(Meeting, on_delete=models.SET_NULL, null=True, blank=True)
email = models.CharField(max_length=200, blank=True)
website = models.CharField(max_length=255, blank=True)
def __str__(self):
return self.name
class Meta:
abstract = True
class GrandLodge(AbstractLodge):
class Meta(AbstractLodge.Meta):
abstract = False
class ProvincialGrandLodge(AbstractLodge):
grand_lodge = models.ForeignKey(GrandLodge, on_delete=models.CASCADE)
province = models.OneToOneField(Province, on_delete=models.CASCADE)
class PrivateLodge(AbstractLodge):
provincial_grand_lodge = models.ForeignKey(ProvincialGrandLodge, on_delete=models.CASCADE)
area = models.ForeignKey(Area, on_delete=models.SET_NULL, null=True)
Settings
Debug = False
SECRET_KEY = os.environ['SECRET_KEY']
ALLOWED_HOSTS = ['.fmis.private.co.uk']
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'dontbother',
'USER': 'dontbother',
'PASSWORD': 'dontstealit',
'HOST': '127.0.0.1',
'PORT': '3306',
}
}
STATIC_ROOT = '/home/ryanuwmx/fmis.removedforprivacy.co.uk/static'
STATIC_URL = '/static/'
MEDIA_ROOT = '/home/ryanuwmx/media.removedforprivacy.co.uk/'
MEDIA_URL = 'http://media.removedforprivacy.co.uk/'
The issue is in the admin, so i dont have views or templates to show.