From 3f9fdbd5a3e590e6e53e42a59ca96d1010c0cec7 Mon Sep 17 00:00:00 2001 From: Bill Prin Date: Tue, 20 Sep 2016 12:28:47 -0700 Subject: Add Django Samples (#636) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Contains two sets of samples - one for the “Google auth” system and one for the “Django user auth” system. --- samples/django/django_user/myoauth/wsgi.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 samples/django/django_user/myoauth/wsgi.py (limited to 'samples/django/django_user/myoauth/wsgi.py') diff --git a/samples/django/django_user/myoauth/wsgi.py b/samples/django/django_user/myoauth/wsgi.py new file mode 100644 index 0000000..39ee648 --- /dev/null +++ b/samples/django/django_user/myoauth/wsgi.py @@ -0,0 +1,21 @@ +# Copyright 2016 Google Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import os + +from django.core.wsgi import get_wsgi_application + +os.environ.setdefault("DJANGO_SETTINGS_MODULE", "myoauth.settings") + +application = get_wsgi_application() -- cgit v1.2.3