allow cross origin requests

This commit is contained in:
Sanj 2012-11-13 16:28:15 +05:30
parent 3bc70a9cf8
commit da4f4eb458
2 changed files with 11 additions and 0 deletions

View File

@ -4,6 +4,7 @@ RapidSMS==0.9.6a
South==0.7.5 South==0.7.5
-e git://github.com/schuyler/arrest.git@0017837a45bcb31786f953fba976d454ae684ecc#egg=arrest-dev -e git://github.com/schuyler/arrest.git@0017837a45bcb31786f953fba976d454ae684ecc#egg=arrest-dev
-e git://github.com/etianen/django-reversion.git#egg=reversion -e git://github.com/etianen/django-reversion.git#egg=reversion
chardet==1.0.1 chardet==1.0.1
django-allauth==0.5.0 django-allauth==0.5.0
django-avatar==1.0.5 django-avatar==1.0.5
@ -36,3 +37,5 @@ oauth2==1.5.211
psycopg2==2.4.5 psycopg2==2.4.5
python-openid==2.2.5 python-openid==2.2.5
wsgiref==0.1.2 wsgiref==0.1.2
-e git://github.com/elevenbasetwo/django-cors.git#egg=cors

View File

@ -56,6 +56,14 @@ INSTALLED_BACKENDS = {
} }
} }
MIDDLEWARE_CLASSES = (
'django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'cors.middleware.AllowOriginMiddleware',
)
# to help you get started quickly, many django/rapidsms apps are enabled # to help you get started quickly, many django/rapidsms apps are enabled
# by default. you may wish to remove some and/or add your own. # by default. you may wish to remove some and/or add your own.