Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.7 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.7 KB

Levy Sheet Music Drupal Sites

Test Instance: https://levy-test.mse.jhu.edu (Can only access while on VPN)

Production Instance: https://levysheetmusic.mse.jhu.edu/

Drupal settings required for these scripts

Install JSON:API module

Install Paragraph Type Permissions sub-module

Authentication

In your /post and /get folders, please create a secrets.py and secretsProd.py files that contains the following information. For secrets.py, the baseURL should correspond to the URL of the test/stage site. For secretsProd.py the baseURL should correspond to the URL of the production (official) site. This information will be used in the scripts that require authentication to post to Drupal.

username='username'
password='password'
baseURL='https://example.com/'

In order to ensure that these files are not uploaded to GitHub, add secrets.py and secretsProd.py to a .gitignore file in your /post and /get folders.

# Local
secrets.py
secretsProd.py

Wiki

Please see the wiki for instructions and more information about the API.