Skip to content

Created at a 24 hour hackathon, our app makes publishing events to multiple social media avenues easy. Create an event in google calendar and it automatically publishes it to Facebook, G+, Twitter, and SMS.

Notifications You must be signed in to change notification settings

antigrl/Parallel-Event

Repository files navigation

Singly Python Django Skeleton

This is a skeleton of an django project that implements the Singly API for authentication and data access. Feel free to use it however you want to start your project or simply take some ideas from.

The code that authenticates services, manages the Singly access_token, and fetches the available profiles can be found in the /singly webapp. I have used standard Django user authentication to persist sessions and a UserProfile to store the access_token for that user and the available profiles on Singly supported services. This means that a database is required. By default, we use SQLite, but this can be changed in settings.py.

Getting Started

Enter the directory and install the required python packages with pip (django, request):

cd python_django_skeleton
pip install -r requirements.py

Register a new app on https://singly.com/apps. If you are testing on your local machine, the default Callback and App urls are correct.

Edit the file /python_django_skeleton/webapp/settings.py to include the SINGLY_CLIENT_ID and SINGLY_CLIENT_SECRET that you got in the previous step.

NOTE: (use local_settings.py for this)

Set up the database. In the root folder of the app, execute

python manage.py syncdb

As prompted, you may set up an superuser if you plan on using the Django admin tools at some point.

Start the server

python manage.py runserver

THINGS LEARNED

  1. Research prior art thoroughly!! (we discovered we were cloning a better version of what we were doing 3 hours in)
  2. Talk through app idea -> interaction model (-> some domain modeling) enough to really be unified on macro concepts before ANY implementation
  3. Learn tools better in advance (shortcuts for common actions especially for design tools)
  4. Explore apis in advance =)
  5. Set up lightweight process in advance (Trello)

About

Created at a 24 hour hackathon, our app makes publishing events to multiple social media avenues easy. Create an event in google calendar and it automatically publishes it to Facebook, G+, Twitter, and SMS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •