added command to laod products from woo.enreda.coop, required extra env variables

This commit is contained in:
Sam
2021-02-22 10:21:13 +00:00
parent d53a6337b5
commit 42d806f557
4 changed files with 56 additions and 2 deletions

View File

@@ -12,12 +12,13 @@ https://docs.djangoproject.com/en/2.2/ref/settings/
import os
import dotenv
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Get variables from .env
import dotenv
dotenv.read_dotenv(
dotenv=os.path.join(BASE_DIR, '../.env'),
override=True