mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
- Drop django==1.9 as it reached end of life - Drop python2.6, python3.3, and bring python3.6 - Bring django-2.0 in the matrix as expected failure until we add its support
26 lines
647 B
Python
26 lines
647 B
Python
from configurations import Configuration
|
|
|
|
|
|
class Mixin1(object):
|
|
@property
|
|
def ALLOWED_HOSTS(self):
|
|
allowed_hosts = super(Mixin1, self).ALLOWED_HOSTS[:]
|
|
allowed_hosts.append('test1')
|
|
return allowed_hosts
|
|
|
|
|
|
class Mixin2(object):
|
|
|
|
@property
|
|
def ALLOWED_HOSTS(self):
|
|
allowed_hosts = super(Mixin2, self).ALLOWED_HOSTS[:]
|
|
allowed_hosts.append('test2')
|
|
return allowed_hosts
|
|
|
|
|
|
class Inheritance(Mixin2, Mixin1, Configuration):
|
|
|
|
def ALLOWED_HOSTS(self):
|
|
allowed_hosts = super(Inheritance, self).ALLOWED_HOSTS[:]
|
|
allowed_hosts.append('test3')
|
|
return allowed_hosts
|