Skip to content

Commit 25a1f6f

Browse files
committed
Updated to Django 1.6.
1 parent 42f2790 commit 25a1f6f

6 files changed

Lines changed: 15 additions & 19 deletions

File tree

api/models.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ def delete(self, *args, **kwargs):
8383
self.owner.publish()
8484

8585

86-
@python_2_unicode_compatible
8786
class ProviderManager(models.Manager):
8887
"""Manage database interactions for :class:`Provider`."""
8988

@@ -126,7 +125,6 @@ def __str__(self):
126125
return "{}-{}".format(self.id, self.get_type_display())
127126

128127

129-
@python_2_unicode_compatible
130128
class FlavorManager(models.Manager):
131129
"""Manage database interactions for :class:`Flavor`."""
132130

@@ -292,7 +290,6 @@ def destroy(self):
292290
return tasks.destroy_layer.delay(self).wait()
293291

294292

295-
@python_2_unicode_compatible
296293
class NodeManager(models.Manager):
297294

298295
def new(self, formation, layer, fqdn=None):
@@ -537,7 +534,6 @@ def run(self, command):
537534
return node.run(command)
538535

539536

540-
@python_2_unicode_compatible
541537
class ContainerManager(models.Manager):
542538

543539
def scale(self, app, structure, **kwargs):
@@ -733,7 +729,7 @@ def push(cls, push):
733729
# create the build
734730
new_build = cls.objects.create(**push)
735731
# send a release signal
736-
release_signal.send(sender=push, build=new_build, app=app, user=user)
732+
release_signal.send(sender=user, build=new_build, app=app, user=user)
737733
# see if we need to scale an initial web container
738734
if len(app.formation.node_set.filter(layer__runtime=True)) > 0 and \
739735
len(app.container_set.filter(type='web')) < 1:

deis/settings.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
}
3030
}
3131

32+
CONN_MAX_AGE = 60 * 3
33+
3234
# Hosts/domain names that are valid for this site; required if DEBUG is False
3335
# See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
3436
ALLOWED_HOSTS = ['localhost']

dev_requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Deis controller requirements
22
boto==2.16.0
33
celery==3.0.22 # 3.0.23 errors, see https://github.com/opdemand/deis/issues/148
4-
Django==1.5.5
5-
django-allauth==0.14.1
4+
Django==1.6.0
5+
django-allauth==0.14.2
66
django-celery==3.0.23
77
django-json-field==0.5.5
88
django-yamlfield==0.5
9-
djangorestframework==2.3.8
9+
djangorestframework==2.3.9
1010
dop==0.1.4
1111
gevent==1.0
1212
gunicorn==18.0
@@ -15,7 +15,7 @@ psycopg2==2.5.1
1515
pycrypto==2.6.1
1616
pyrax==1.6.1
1717
PyYAML==3.10
18-
South==0.8.2
18+
South==0.8.4
1919

2020
# Deis client requirements
2121
docopt==0.6.1

docs/conf.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@
2020
#sys.path.insert(0, os.path.abspath('.'))
2121
sys.path.insert(0, os.path.abspath('..'))
2222
# set up Django
23-
from deis import settings
24-
from django.core.management import setup_environ
25-
23+
os.environ['DJANGO_SETTINGS_MODULE'] = 'deis.settings'
24+
from django.conf import settings
2625
if not settings.SECRET_KEY:
2726
settings.SECRET_KEY = 'TotallyFake-SECRET_KEY-ForSphinxDocs'
28-
setup_environ(settings)
2927

3028
# -- General configuration -----------------------------------------------------
3129

docs/docs_requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Deis requirements for Sphinx documentation generation
22
boto==2.16.0
33
celery==3.0.22 # 3.0.23 errors, see https://github.com/opdemand/deis/issues/148
4-
Django==1.5.5
4+
Django==1.6.0
55
django-celery==3.0.23
66
django-json-field==0.5.5
7-
djangorestframework==2.3.8
7+
djangorestframework==2.3.9
88
dop==0.1.4
99
paramiko==1.12.0
1010
pyrax==1.6.1

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Deis controller requirements
22
boto==2.16.0
33
celery==3.0.22 # 3.0.23 errors, see https://github.com/opdemand/deis/issues/148
4-
Django==1.5.5
5-
django-allauth==0.14.1
4+
Django==1.6.0
5+
django-allauth==0.14.2
66
django-celery==3.0.23
77
django-json-field==0.5.5
88
django-yamlfield==0.5
9-
djangorestframework==2.3.8
9+
djangorestframework==2.3.9
1010
dop==0.1.4
1111
gevent==1.0
1212
gunicorn==18.0
@@ -15,4 +15,4 @@ psycopg2==2.5.1
1515
pycrypto==2.6.1
1616
pyrax==1.6.1
1717
PyYAML==3.10
18-
South==0.8.2
18+
South==0.8.4

0 commit comments

Comments
 (0)