text: 
  # Paqueterias a instalar
  # # pip install django-heroku
  # # dj-database-url
  # # gunicorn
  # # whitenoise
  # # python-decouple
  
  import os
  # Importaciones necesarios de heroku inicio
  from decouple import config
  import dj_database_url
  # Importaciones necesarios de heroku fin
  
  # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
  BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
  
  
  # Quick-start development settings - unsuitable for production
  # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
  
  # SECURITY WARNING: keep the secret key used in production secret!
  
  
  # SECURITY WARNING: don't run with debug turned on in production!
  DEBUG = False
  
  ALLOWED_HOSTS = ['']
  
  
  # Application definition
  
  INSTALLED_APPS = [
      'django.contrib.admin',
      'django.contrib.auth',
      'django.contrib.contenttypes',
      'django.contrib.sessions',
      'django.contrib.messages',
      'django.contrib.staticfiles',
  
      # Agregando aplicaciones independientes de Django
      'Login',
      'example',
      'rest_framework',
      'rest_framework.authtoken',
  ]
  
  MIDDLEWARE = [
      'django.middleware.security.SecurityMiddleware',
      'django.contrib.sessions.middleware.SessionMiddleware',
      'django.middleware.common.CommonMiddleware',
      'django.middleware.csrf.CsrfViewMiddleware',
      'django.contrib.auth.middleware.AuthenticationMiddleware',
      'django.contrib.messages.middleware.MessageMiddleware',
      'django.middleware.clickjacking.XFrameOptionsMiddleware',
      'whitenoise.middleware.WhiteNoiseMiddleware',
  ]
  
  SITE_ID = 1
  
  REST_FRAMEWORK = {
      'DEFAULT_PERMISSION_CLASSES':('rest_framework.permissions.IsAuthenticated',),
      'DEFAULT_AUTHENTICATION_CLASSES':('rest_framework.authentication.TokenAuthentication',),
      'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
      'PAGE_SIZE': 100
  }
  
  CORS_ALLOW_METHODS = (
      'DELETE',
      'GET',
      'POST',
      'PUT',
  )
  
  
  ROOT_URLCONF = 'arqui.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 = 'arqui.wsgi.application'
  
  # Password validation
  # https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
  
  AUTH_PASSWORD_VALIDATORS = [
      {
          'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
      },
      {
          'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
      },
  ]
  
  
  # Internationalization
  # https://docs.djangoproject.com/en/2.2/topics/i18n/
  
  LANGUAGE_CODE = 'es-mx'
  
  TIME_ZONE = 'UTC'
  
  USE_I18N = True
  
  USE_L10N = True
  
  USE_TZ = True
  
  
  # Static files (CSS, JavaScript, Images)
  # https://docs.djangoproject.com/en/2.2/howto/static-files/
  
  
  STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
  STATIC_URL = '/static/'
  STATICFILES_DIRS = (
      os.path.join(BASE_DIR, 'static'),
  )
  STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
  
  
  # try:
  #     from arqui.local_settings import *
  # except ImportError:
  #     pass
  
  # if not DEBUG:
  #     SECRET_KEY = 'SECRET_KEY'
  DATABASES = {
      'default': dj_database_url.config(
          default=config('DATABASE_URL')
      )
      # 'default': {
      #     'ENGINE' : 'django.db.backends.postgresql_psycopg2',
      #     'NAME' : 'DB_NAME',
      #     'USER': 'DB_USER',
      #     'PASSWORD': 'DB_PASSWORD',
      #     'HOST': 'DB_HOST',
      #     'PORT': 'DB_PORT'
      # }
  } 
  
      # import django_heroku
      # django_heroku.settings(locals())