Skip to content

franshamk/ddbldr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DrEdit for Python

A walkthrough and more details are available on Google Drive SDK docs.

Setup Instructions

  1. Create a new Google App Engine application

  2. Clone DrEdit's git repo and init submodules:

     git clone [email protected]:googledrive/dredit.git
     cd dredit
     git submodule init
     git submodule update --recursive
    
  3. Register DrEdit as described in Enable the Drive SDK using the following values

    • Set the default MIME types text/plain and text/html, and the default extensions txt and html.
    • Ensure that the set of redirect URIs includes the URI of the Google App Engine application created in step 1 (i.e. https://your_app_id.appspot.com). The same URL must be provided for the Open URL and Create URL fields.
    • Add the Google API Scopes of https://www.googleapis.com/auth/userinfo.email and https://www.googleapis.com/auth/userinfo.profile.
    • For icons, use the example icons provided in the chromewebstore directory.
  4. Copy the contents of the python/ directory to the root of the Google App Engine project

  5. Create a session secret, which should be at least 64 bytes of random characters, for example with python -c "import os; print os.urandom(64)" > session.secret

  6. Modify client_secrets.json to replace the client_id, client_secret, and redirect_uris with the values from the Google APIs Console under the API Access tab for the project. Note: Make sure you use a valid Client ID for web applications. Do not use the Client ID for Drive SDK, which is reserved for future feature development.

  7. Edit app.yaml and replace the value for the application setting with the identifier of the new Google App Engine application created in step 1.

  8. Deploy the App to App Engine as described in the Google App Engine documentation.

  9. Test the application.

  10. Continue reading to find out how DrEdit is constructed, and how to modify it to work for your own application's needs.

About

Sample application to combine drive documents

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages