Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1.16 KB

README.rst

File metadata and controls

38 lines (26 loc) · 1.16 KB

Thanks for the Feedback

Development setup

It's recommended you use virtualenvwrapper and The Developer Society Dev Tools.

Presuming you are using those tools, getting started on this project is pretty straightforward:

$ dev-clone thanksforfeedback
$ workon thanksforfeedback
$ make reset

Generate some credentials in Google Cloud Console, save as credentials.json. You can now run the development server:

$ make serve

To setup a sheet, you can run a script like this:

import gspread
from oauth2client.service_account import ServiceAccountCredentials
scope = ["https://spreadsheets.google.com/feeds", "https://www.googleapis.com/auth/drive"]
creds = ServiceAccountCredentials.from_json_keyfile_name("credentials.json", scope)
client = gspread.authorize(creds)
sheet = client.create('My Feedback Log')
sheet.share('[email protected]', perm_type='user', role='writer')

Make sure the name matches the name in views.py.