https://github.com/developersociety/thanksforfeedback
https://github.com/developersociety/thanksforfeedback
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/developersociety/thanksforfeedback
- Owner: developersociety
- Created: 2024-06-20T21:00:24.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T10:27:03.000Z (about 2 years ago)
- Last Synced: 2024-06-24T21:50:52.864Z (about 2 years ago)
- Language: HTML
- Size: 193 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
=======================
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:
.. code:: console
$ 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:
.. code:: console
$ make serve
To setup a sheet, you can run a script like this:
.. code:: python
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('me@example.com', perm_type='user', role='writer')
Make sure the name matches the name in views.py.