mirror of
https://github.com/jazzband/django-ddp.git
synced 2026-04-25 09:24:42 +00:00
Merge branch 'release/0.9.2'
This commit is contained in:
commit
2fea9b9c43
3 changed files with 12 additions and 1 deletions
|
|
@ -1,6 +1,10 @@
|
|||
Change Log
|
||||
==========
|
||||
|
||||
0.9.2
|
||||
-----
|
||||
* Use HTTPS for DDP URL if settings.SECURE_SSL_REDIRECT is set.
|
||||
|
||||
0.9.1
|
||||
-----
|
||||
* Added support for django.contrib.postres.fields.ArrayField
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
from __future__ import print_function, absolute_import
|
||||
from ejson import dumps
|
||||
from django.apps import apps
|
||||
from django.conf import settings
|
||||
from django.http import HttpResponse
|
||||
from django.views.generic import View
|
||||
|
||||
|
|
@ -31,6 +32,12 @@ class MeteorView(View):
|
|||
'ROOT_URL': request.build_absolute_uri('/'),
|
||||
'ROOT_URL_PATH_PREFIX': '',
|
||||
}
|
||||
# Use HTTPS instead of HTTP if SECURE_SSL_REDIRECT is set
|
||||
if config['DDP_DEFAULT_CONNECTION_URL'].startswith('http:') \
|
||||
and settings.SECURE_SSL_REDIRECT:
|
||||
config['DDP_DEFAULT_CONNECTION_URL'] = 'https:%s' % (
|
||||
config['DDP_DEFAULT_CONNECTION_URL'].split(':', 1)[1],
|
||||
)
|
||||
config.update(self.runtime_config)
|
||||
return HttpResponse(
|
||||
'__meteor_runtime_config__ = %s;' % dumps(config),
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -5,7 +5,7 @@ from setuptools import setup, find_packages
|
|||
|
||||
setup(
|
||||
name='django-ddp',
|
||||
version='0.9.1',
|
||||
version='0.9.2',
|
||||
description=__doc__,
|
||||
long_description=open('README.rst').read(),
|
||||
author='Tyson Clugg',
|
||||
|
|
|
|||
Loading…
Reference in a new issue