You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
447 B

2 years ago
2 years ago
  1. from google.oauth2 import service_account
  2. from .base import * # noqa: F403
  3. from .base import env
  4. MIDDLEWARE.append("api.middleware.RangesMiddleware") # noqa: F405
  5. DJANGO_DRF_FILEPOND_STORAGES_BACKEND = "storages.backends.gcloud.GoogleCloudStorage"
  6. GS_BUCKET_NAME = env("BUCKET_NAME", "doccano")
  7. GS_PROJECT_ID = env("GS_PROJECT_ID")
  8. GS_CREDENTIALS = service_account.Credentials.from_service_account_file(env("GOOGLE_APPLICATION_CREDENTIALS"))