old_contents: # -*- coding: utf-8 -*-
  '''
  Local settings
  
  - Run in Debug mode
  - Use console backend for emails
  - Add Django Debug Toolbar
  - Add django-extensions as app
  '''
  
  from .common import *  # noqa
  
  # DEBUG
  # ------------------------------------------------------------------------------
  DEBUG = env.bool('DJANGO_DEBUG', default=True)
  TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
  
  # SECRET CONFIGURATION
  # ------------------------------------------------------------------------------
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
  # Note: This key only used for development and testing.
  SECRET_KEY = env("DJANGO_SECRET_KEY", default='CHANGEME!!!')
  
  # Mail settings
  # ------------------------------------------------------------------------------
  EMAIL_HOST = 'localhost'
  EMAIL_PORT = 1025
  EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',
                      default='django.core.mail.backends.console.EmailBackend')
  
  # CACHING
  # ------------------------------------------------------------------------------
  CACHES = {
      'default': {
          'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
          'LOCATION': ''
      }
  }
  
  # django-debug-toolbar
  # ------------------------------------------------------------------------------
  MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
  INSTALLED_APPS += ('debug_toolbar', )
  
  INTERNAL_IPS = ('127.0.0.1', '10.0.2.2',)
  
  DEBUG_TOOLBAR_CONFIG = {
      'DISABLE_PANELS': [
          'debug_toolbar.panels.redirects.RedirectsPanel',
      ],
      'SHOW_TEMPLATE_CONTEXT': True,
  }
  
  # django-extensions
  # ------------------------------------------------------------------------------
  INSTALLED_APPS += ('django_extensions', )
  
  # TESTING
  # ------------------------------------------------------------------------------
  TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  
  # Your local stuff: Below this line define 3rd party library settings
  REST_FRAMEWORK = {
      'DEFAULT_AUTHENTICATION_CLASSES': (
          'rest_framework.authentication.BasicAuthentication',
          'rest_framework.authentication.TokenAuthentication',
      ),
      'DEFAULT_PERMISSION_CLASSES': (
          'rest_framework.permissions.IsAuthenticated',
      ),
      'DEFAULT_RENDERER_CLASSES': (
          'rest_framework.renderers.JSONRenderer',
          'rest_framework.renderers.BrowsableAPIRenderer',
      ),
      'DEFAULT_PARSER_CLASSES': (
          'rest_framework.parsers.JSONParser',
      )
  }
  
  OAUTH2_CLIENT_ID_GOOGLE = "205004874679-sce0aiev2rgvu41sjve3fpeqqb85cfeq.apps.googleusercontent.com"
  
new_contents: # -*- coding: utf-8 -*-
  
  #
  # Copyright 2016 edX PDR Lab, National Central University, Taiwan.
  #
  #     http://edxpdrlab.ncu.cc/
  #
  # 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.
  #
  # Created By: yrchen@ATCity.org
  # Maintained By: yrchen@ATCity.org
  #
  
  '''
  Local settings for Commmon Repo project.
  http://www.commonrepo.com/
  
  - Run in Debug mode
  - Use console backend for emails
  - Add Django Debug Toolbar
  - Add django-extensions as app
  '''
  
  from .common import *  # noqa
  
  # DEBUG
  # ------------------------------------------------------------------------------
  DEBUG = env.bool('DJANGO_DEBUG', default=True)
  TEMPLATES[0]['OPTIONS']['debug'] = DEBUG
  
  # SECRET CONFIGURATION
  # ------------------------------------------------------------------------------
  # See: https://docs.djangoproject.com/en/dev/ref/settings/#secret-key
  # Note: This key only used for development and testing.
  SECRET_KEY = env("DJANGO_SECRET_KEY", default='CHANGEME!!!')
  
  # Mail settings
  # ------------------------------------------------------------------------------
  EMAIL_HOST = 'localhost'
  EMAIL_PORT = 1025
  EMAIL_BACKEND = env('DJANGO_EMAIL_BACKEND',
                      default='django.core.mail.backends.console.EmailBackend')
  
  # CACHING
  # ------------------------------------------------------------------------------
  CACHES = {
      'default': {
          'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
          'LOCATION': ''
      }
  }
  
  # django-debug-toolbar
  # ------------------------------------------------------------------------------
  MIDDLEWARE_CLASSES += ('debug_toolbar.middleware.DebugToolbarMiddleware',)
  INSTALLED_APPS += ('debug_toolbar', )
  
  INTERNAL_IPS = ('127.0.0.1', '10.0.2.2',)
  
  DEBUG_TOOLBAR_CONFIG = {
      'DISABLE_PANELS': [
          'debug_toolbar.panels.redirects.RedirectsPanel',
      ],
      'SHOW_TEMPLATE_CONTEXT': True,
  }
  
  # django-extensions
  # ------------------------------------------------------------------------------
  INSTALLED_APPS += ('django_extensions', )
  
  # TESTING
  # ------------------------------------------------------------------------------
  TEST_RUNNER = 'django.test.runner.DiscoverRunner'
  
  # Your local stuff: Below this line define 3rd party library settings
  REST_FRAMEWORK = {
      'DEFAULT_AUTHENTICATION_CLASSES': (
          'rest_framework.authentication.BasicAuthentication',
          'rest_framework.authentication.TokenAuthentication',
      ),
      'DEFAULT_PERMISSION_CLASSES': (
          'rest_framework.permissions.IsAuthenticated',
      ),
      'DEFAULT_RENDERER_CLASSES': (
          'rest_framework.renderers.JSONRenderer',
          'rest_framework.renderers.BrowsableAPIRenderer',
      ),
      'DEFAULT_PARSER_CLASSES': (
          'rest_framework.parsers.JSONParser',
      )
  }
  
  OAUTH2_CLIENT_ID_GOOGLE = "205004874679-sce0aiev2rgvu41sjve3fpeqqb85cfeq.apps.googleusercontent.com"
  
subject: 更新 config/local.py, 新增版權宣告資訊