Skip to content

Commit

Permalink
Merge pull request #99 from boundlessgeo/geoint
Browse files Browse the repository at this point in the history
fix for pep8 E222 and E402 errors in CI
  • Loading branch information
Daniel Berry committed Dec 21, 2015
2 parents 4890cf2 + 545e9be commit aa43712
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion geoshape/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
]

if CORS_ENABLED:
INSTALLED_APPS = ('corsheaders',) + INSTALLED_APPS
INSTALLED_APPS = ('corsheaders',) + INSTALLED_APPS
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + ('corsheaders.middleware.CorsMiddleware',)
CORS_ORIGIN_ALLOW_ALL = True
CORS_ALLOW_METHODS = ('GET',)
5 changes: 3 additions & 2 deletions geoshape/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@
"""
import os

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "geoshape.settings")
from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "geoshape.settings")
# This application object is used by any WSGI server configured to use this
# file. This includes Django's development server, if the WSGI_APPLICATION
# setting points here.
from django.core.wsgi import get_wsgi_application

application = get_wsgi_application()

# Apply WSGI middleware here.
Expand Down

0 comments on commit aa43712

Please sign in to comment.