settings.sample.py

Fri, 24 Nov 2017 18:50:29 +0200

author
Iannis <ulalume3@yahoo.com>
date
Fri, 24 Nov 2017 18:50:29 +0200
changeset 6
c02712d2ab9e
parent 0
a172f26a566a
permissions
-rw-r--r--

Updated script according to new database/api changes.

Added basic logging functions, instead of print statements.

ioannis@0 1 """ This file contains the user-specific settings for the scc_access script.
ioannis@0 2
ioannis@0 3 You should rename the file settings.sample.py to setting.py.
ioannis@0 4 """
ioannis@0 5
ioannis@0 6 # Add here the HTTP user name and password that is needed to access the SCC site.
ioannis@0 7 BASIC_LOGIN = ('username', 'password')
ioannis@0 8
ioannis@0 9 # Add here the user-name and password that is needed to log in to the SCC site.
ioannis@0 10 # It is recommended to use credential for a user without management privileges
ioannis@0 11 DJANGO_LOGIN = ('username', 'password')
ioannis@0 12
ioannis@0 13 # Change this to the directory to download the files
ioannis@0 14 OUTPUT_DIR = '/path/to/files/scc_output/'
ioannis@0 15
ioannis@0 16 # SCC base URL. Normally you shouldn't need to change that. You should change
ioannis@0 17 # this only if you want to use a different SCC installation e.g. a local version.
ioannis@0 18 BASE_URL = 'https://scc.imaa.cnr.it/'

mercurial