Skip to content

A Django Sample App integrating the Box.com and SendGrid API

Notifications You must be signed in to change notification settings

justingosan/SendBox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#SendBox

A Django Sample App integrating the Box.com and SendGrid API. You can check out a demo here: SendBox. Also an online guide here: SendBox Guide

##Requirements:

##Quick Setup:

  1. Install the required modules:

    pip install -r https://raw.github.com/justingo/SendBox/master/requirements.txt
    
  2. Start a django project:

    python django-admin.py startproject 'myproject'
    
  3. Copy '/sendbox/' to project root (beside manage.py).

  4. Tweak 'myproject/settings (refer to inline comments)':

    BOX_API_KEY = '' # Box Key goes here
    
    SESSION_ENGINE = 'django.contrib.sessions.backends.cached_db'
    
    #SendGrid Email Config
    SENDGRID_API_USER = '' # SendGrid API User here
    SENDGRID_API_KEY = ''  # SendGrid API Pass here
    DEFAULT_SUBJECT = "I've shared a file to you from Box.com!"
    SENDGRID_API_URL = "https://sendgrid.com/api/mail.send.json"
    
    # Could be any database (used for session storage)
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.sqlite3',
            'Name' : 'database.sqltie'
        }
    }
    
    # Don't forget to append 'sendbox'
    INSTALLED_APPS = (
        ...
        'sendbox',
    )
  5. Also setup 'myproject/urls':

    urlpatterns = patterns('',
        url(r'', include('sendbox.urls')),
    )
  6. Now back to the command line:

    python manage.py syncdb
    #no need for admin user
    
  7. You're good to go! Run this to test it out:

    python manage.py runserver
    

About

A Django Sample App integrating the Box.com and SendGrid API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages