text: 
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  import os
  
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  
  SECRET_KEY = ''
  
  SITE_ID = 1
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = True
  
  ALLOWED_HOSTS = []
  
  # Application definition.
  
  INSTALLED_APPS = (
      'myres',
      'project',
      'myres.apps.api',
  
      'authtools',
      'rest_framework',
      'rest_framework.authtoken',
      'rest_framework_jwt',
      'rest_auth',
      'corsheaders',
  
      'allauth',
      'allauth.account',
      'rest_auth.registration',
  
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.sites',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
  )
  
  AUTH_USER_MODEL = 'myres.User'
  
  MIDDLEWARE_CLASSES = (
      'corsheaders.middleware.CorsMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
      'django.middleware.security.SecurityMiddleware',
  )
  
  # djangorestframework.
  REST_FRAMEWORK = {
      'DEFAULT_PERMISSION_CLASSES': (
          'rest_framework.permissions.IsAuthenticated',
      ),
      'DEFAULT_AUTHENTICATION_CLASSES': (
          'rest_framework.authentication.SessionAuthentication',
          'rest_framework.authentication.BasicAuthentication',
          'rest_framework_jwt.authentication.JSONWebTokenAuthentication',
      ),
  }
  
  REST_USE_JWT = True
  ACCOUNT_USER_MODEL_USERNAME_FIELD = None
  ACCOUNT_EMAIL_REQUIRED = True
  ACCOUNT_USERNAME_REQUIRED = False
  ACCOUNT_AUTHENTICATION_METHOD = 'email'
  
  # django-rest-auth serializer has a username field. User custom serializer.
  REST_AUTH_REGISTER_SERIALIZERS = {
      'REGISTER_SERIALIZER': 'myres.apps.api.serializers.RegisterSerializer',
  }
  
  # django-rest-auth serializer has a username field. User custom serializer.
  REST_AUTH_SERIALIZERS = {
      'USER_DETAILS_SERIALIZER': 'myres.apps.api.serializers.UserDetailsSerializer',
      'LOGIN_SERIALIZER': 'myres.apps.api.serializers.LoginSerializer'
  }
  
  #drf-jwt
  JWT_AUTH = {
      'JWT_RESPONSE_PAYLOAD_HANDLER': 'myres.apps.api.utils.login_response_payload_handler',
  }
  
  # CORS-HEADERS Settings
  CORS_ORIGIN_ALLOW_ALL = True
  
  ROOT_URLCONF = 'myres.urls'
  
  TEMPLATES = [
      {
          'BACKEND': 'django.template.backends.django.DjangoTemplates',
          'DIRS': [],
          'APP_DIRS': True,
          'OPTIONS': {
              'context_processors': [
                  'django.template.context_processors.debug',
                  'django.template.context_processors.request',
                  'django.contrib.auth.context_processors.auth',
                  'django.contrib.messages.context_processors.messages',
              ],
          },
      },
  ]
  
  WSGI_APPLICATION = 'project.wsgi.application'
  
  
  # Database
  # https://docs.djangoproject.com/en/1.8/ref/settings/#databases
  
  DATABASES = {
      'default': {
          'ENGINE': 'django.db.backends.sqlite3',
          'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
      }
  }
  
  
  # Internationalization
  # https://docs.djangoproject.com/en/1.8/topics/i18n/
  
  LANGUAGE_CODE = 'en-us'
  
  TIME_ZONE = 'Africa/Johannesburg'
  
  USE_I18N = False
  
  USE_L10N = False
  
  USE_TZ = True
  
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/1.8/howto/static-files/
  
  STATIC_URL = '/static/'
  
  LOGIN_REDIRECT_URL = '/api/'
  