• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2015 Google Inc. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15"""Provides a base Django settings module used by the rest of the tests."""
16
17import os
18
19INSTALLED_APPS = [
20    'django.contrib.admin',
21    'django.contrib.auth',
22    'django.contrib.contenttypes',
23    'django.contrib.sessions',
24    'django.contrib.messages',
25    'django.contrib.staticfiles',
26    'oauth2client.contrib.django_util',
27    'tests.contrib.django_util.apps.DjangoOrmTestApp',
28]
29
30SECRET_KEY = 'this string is not a real django secret key'
31DATABASES = {
32    'default': {
33        'ENGINE': 'django.db.backends.sqlite3',
34        'NAME': os.path.join('.', 'db.sqlite3'),
35    }
36}
37MIDDLEWARE_CLASSES = (
38    'django.contrib.sessions.middleware.SessionMiddleware'
39)
40
41ALLOWED_HOSTS = ['testserver']
42
43GOOGLE_OAUTH2_CLIENT_ID = 'client_id2'
44GOOGLE_OAUTH2_CLIENT_SECRET = 'hunter2'
45GOOGLE_OAUTH2_SCOPES = ('https://www.googleapis.com/auth/cloud-platform',)
46
47ROOT_URLCONF = 'tests.contrib.django_util.test_django_util'
48