From 83b7318a4672d32ed77cd3f906f43f5ad1cce854 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 14 Dec 2017 18:47:45 -0800 Subject: archived old apps that I'm not using --- app/unused_apps/daily/create_daily.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 app/unused_apps/daily/create_daily.py (limited to 'app/unused_apps/daily/create_daily.py') diff --git a/app/unused_apps/daily/create_daily.py b/app/unused_apps/daily/create_daily.py new file mode 100644 index 0000000..5441b77 --- /dev/null +++ b/app/unused_apps/daily/create_daily.py @@ -0,0 +1,14 @@ +import sys +import os +from os.path import dirname, abspath +import django +PROJECT_ROOT = abspath(dirname(dirname(dirname(__file__)))) + '/' +sys.path.append(PROJECT_ROOT) +sys.path.append(PROJECT_ROOT + '/app') +sys.path.append(PROJECT_ROOT + '/app/lib') +sys.path.append(PROJECT_ROOT + '/config') +sys.path.append(PROJECT_ROOT + '/venv/bin/python3') +os.environ['DJANGO_SETTINGS_MODULE'] = 'config.settings' +django.setup() +from daily import retriever +retriever.create_daily() -- cgit v1.2.3-70-g09d2