Giter Site home page Giter Site logo

django-hackathon-starter's Introduction

Django Hackathon Starter

A boilerplate application for Django web applications.

If you've attented hackathons, you already know how much time can be wasted figuring out what language to pick, which web framework to choose, which APIs to incorporate, and figuring out OAuth authentication. Django Hackathon Starter aims to provide these features out of the box, allowing the team to save hours of time getting these pieces together.

Even if you are not using this for a hackathon, Django Hackathon Starter is sure to save any developer hours or even days of development time and can serve as a learning guide for web developers.

Basic Authentication / OAuth Signin

Login

API Examples

API Examples

Table of Contents

Features

  • User Registration
  • Sphinx Documentation
  • Django Nosetests
  • Integration with Django Rest Framework
  • Basic Authentication with username and password
  • OAuth 2.0 Authentication
    • Github
    • LinkedIn
    • Instagram
    • Facebook
    • Google+
    • Dropbox
    • Foursquare
  • OAuth 1.0a Authentication
    • Twitter
    • Tumblr
  • API Examples
    • Yelp API
    • Github API
    • Instagram API
    • Tumblr API
    • Twitter API
    • Twilio API
    • Meetup API
    • Steam API
    • Quandl Stock API
    • New York Times API
    • LinkedIn API
    • Facebook API
    • Google+ API
    • Dropbox API
    • Foursquare API

Pre-requisites

This project relies on bower for front-end dependencies, which in turn requires npm. npm is now bundled with NodeJS, which you can download and install here.

For Python-specific libraries, this project relies on pip. The easiest way to install pip can be found here.

Getting Started

To get up and running, simply do the following:

$ git clone https://github.com/DrkSephy/django-hackathon-starter.git
$ cd django-hackathon-starter

# Install the requirements
$ pip install -r requirements.txt

# Install bower
$ npm install -g bower
$ bower install

# Perform database migrations
$ python manage.py makemigrations
$ python manage.py migrate

NOTE: We highly recommend creating a Virtual Environment. Python Virtual Environments allow developers to work in isolated sandboxes and to create separation between python packages installed via pip.


Getting API Keys

  1. Register an account on Yelp.com
  2. Visit the Yelp for developers page
  3. You will obtain the following: CONSUMER KEY, CONSUMER SECRET, TOKEN, TOKEN_SECRET
  4. Within settings.py, add the following:
    • YELP_CONSUMER_KEY = Yelp Consumer Key
    • YELP_CONSUMER_SECRET = Yelp Consumer Secret
    • YELP_TOKEN = Yelp Token
    • YELP_TOKEN_SECRET = Yelp Token Secret

  1. Register an account on Meetup.com
  2. Visit Meetup OAuth Consumers page
    • Enter a project name for the consumer name field
    • For redirect url field, enter: http://127.0.0.1:8000/hackathon/
  3. Within settings.py, add the following:
    • MEETUP_CONSUMER_KEY = Meetup key
    • MEETUP_CONSUMER_SECRET = Meetup secret key

  1. Register an account on Twilio.com
  2. Get your Twilio Number
  3. Setup the numbers you want to be able to send messages to
  4. Grab your account_sid and auth_token here
  5. Within scripts/twilioapi.py:
    • Replace account_sid with your own Twilio account_sid
    • Replace auth_token with your own Twilio auth_token

  1. Register an account on Github.com.
  2. Visit Github developer applications page
  3. Click on Register new application.
    • Enter Application name and Homepage URL field
    • For redirect url field, enter: http://127.0.0.1:8000/hackathon/
  4. Click Register application.
  5. Within settings.py, add the following:
    • GITHUB_CLIENT_ID = Github-client-id
    • GITHUB_CLIENT_SECRET = Github-client-secret

  1. Register an account on Twitter.com
  2. Visit Twitter application management page
  3. Click on Create New App
    • Enter Application name, Description, and Website field
    • For Callback URL field, enter: http://127.0.0.1:8000/hackathon/
  4. Click Create your Twitter application
  5. Go to the Permissions tab
  6. Under Access, select Read and Write type
  7. Go to Keys and Access Tokens tab
  8. Under Your Access Token, click on Create my access token to generate access tokens
  9. Within settings.py, add the following:
    • TWITTER_CONSUMER_KEY = Twitter-consumer-key
    • TWITTER_CONSUMER_SECRET = Twitter-consumer-secret
    • TWITTER_ACCESS_TOKEN = Twitter-access-token
    • TWITTER_ACCESS_TOKEN_SECRET = Twitter-access-token-secret

  1. Register an account on Instagram.com.
  2. Visit Instagram manage clients page
  3. Click on Register a New Client
    • Enter Application name, Description, and Website URL field
    • For Redirect URI field, enter: http://127.0.0.1:8000/hackathon/
  4. Within settings.py, add the following:
    • INSTAGRAM_CLIENT_ID = Instagram-client-id
    • INSTAGRAM_CLIENT_SECRET = Instagram-client-secret

  1. Register an account on Linkedin.com.
  2. Visit Linkedin developer Network page
  3. Click on Add New Application
    • Enter Company Info, Application Info, and Contact Info section
    • Under OAuth User Agreement section, select scopes needed
    • For OAuth 2.0 Redirect URLs field, enter: http://127.0.0.1:8000/hackathon/
  4. Click Add Application
  5. Within settings.py, add the following:
    • LINKEDIN_CLIENT_ID = Linkedin-client-id
    • LINKEDIN_CLIENT_SECRET = Linkedin-client-secret

  1. Register an account on Facebook.com
  2. Visit Facebook Developers page
  3. After logging in, Click on My Apps and then on Add a New App
    • Choose Website as the platform and add the name for your project
    • Give your app a name.
    • Choose the category your app falls into.
    • Click Create App ID
    • Skip the quickstart process and you will be redirected to the app dashboard.
  4. Copy the app ID and the app secret.
  5. From the left menu choose the Settings option.
  6. Click on Add Platform and choose Website once again.
  7. Under site URL, specift the URL to be redirected after authentication is complete.
  8. Click save.
  9. In settings.py change the following values:
    • FACEBOOK_APP_ID = your_app_id
    • FACEBOOK_APP_SECRET = your_app_secret

  1. Register an account on Google.com.
  2. Navigate to Google Developer Console.
  3. Click on Create Project, give your app a name and click Create (this might take a few sceonds).
  4. You will be redirected to the project dashboard. From the left menu choose APIs & auth and then choose APIs.
  5. Choose the API you would like to use (the built in example uses Google+ API).
  6. Click on Enable API.
  7. From the side menu, under APIs & auth select consent screen.
    • Fill your app name under Product Name.
    • Hit save button on the bottom.
  8. From the side menu, under APIs & auth select credentials:
    • Click on Create new Client ID.
    • Under Authorized JavaScript origins specify you app base address (e.g http://localhost:8000).
    • Under Authorized redirect URIs specify the URL to be redirected after authentication is complete.
    • Hit Create Client ID button (this might also take a few seconds).
  9. Copy your new generated client_id and client_secret:
  10. Under settings.py change the following values:
    • GOOGLE_PLUS_APP_ID = your_client_id
    • GOOGLE_PLUS_APP_SECRET = your_client_secret

  1. Register an account on Dropbox.com.
  2. Navigate to Dropbox Developers.
  3. From the side menu, select App Console and click on Create app.
  4. Configure the app permissions. This example uses the following configuration:
    • App type- Dropbox API app
    • My app needs access to files already on Dropbox.
    • My app needs access to a user's full Dropbox.
    • Note: This kind of configuration will require you to submit your app for approval.
  5. Give your app a name and click the Create app button.
  6. You will be redirected to the app console:
    • Under Redirect URIs specify the URL to be redirected after authentication is complete (e.g http://locahost:8000/home) and click add.
    • Copy your App key and App secret.
  7. Under settings.py change the following values:
    • DROPBOX_APP_ID = your_app_id
    • DROPBOX_APP_SECRET = your_app_secret

  1. Register and account on Foursquare.com.
  2. Navigate to Foursquare For Developers.
  3. From the top menu bar select My Apps and you will be redirected to the app dashboard.
  4. Hit Create a New App:
    • Give your app a name.
    • Under Download / welcome page url, specify your app main url (e.g http://www.localhost:8000).
    • Under Redirect URI, specify the URL to be redirected after authentication is complete (e.g http://locahost:8000/home) and click add.
    • Scroll all the way to the botttom and hit Save Changes.
  5. From the App page you were redirected to, copy your App key and App secret.
  6. Under settings.py change to following values:
    • FOURSQUARE_APP_ID = your_client_id
    • FOURSQUARE_APP_SECRET = your_app_secret

  1. Register an account on Tumblr.com.
  2. Visit Tumblr applications page.
  3. Click on Register Application.
  4. Click Register.
  5. Within settings.py, add the following:
    • TUMBLR_CONSUMER_KEY = Tumblr-consumer-key
    • TUMBLR_CONSUMER_SECRET = Tumblr-consumer-secret

  1. Register an account on Steam
  2. Visit Steam Community developers page
  3. After logging in, add the Domain Name as the name of your application and key is shown
  4. Within your views.py add the Key in key underneath the view for your steam application

  1. Register an account on NY Times Developer Network
  2. Click on Register
  3. After logging in, click on APIs (http://developer.nytimes.com/apps/register) Write in the Name of your application and click each sub-API that you will use
    • Agree to the Terms of Service and click on Register Application
  4. Within your settings.py add the following:
    • POPAPIKEY = Most Popular API
    • TOPAPIKEY = Top Stories API

  1. Register an account on Quandl
  2. After logging in, click on Me and then Account settings to find the API key
  3. Within your settings.pyadd QUANDLAPIKEY = Key

Project Structure

Name Description
hackathon_starter/settings.py Django settings module containing database and API keys/tokens
hackathon/admin.py Registered models for Django's admin page
hackathon/models.py Django models and profiles for user login
hackathon/tests.py Integration tests
hackathon/urls.py Django Hackathon Starter URL dispatcher
hackathon/views.py Django views file
hackathon/serializers.py Allows JSON representation for Django Model fields
hackathon/forms.py Basic form fields
hackathon/static/ Front-end JavaScript / CSS files
hackathon/unittests Unit tests
hackathon/scripts/ API Example scripts
**hackathon/scripts/**github.py Script for interacting with Github API
**hackathon/scripts/**instagram.py Script for interacting with Instagram API
**hackathon/scripts/**linkedin.py Script for interacting with LinkedIn API
**hackathon/scripts/**meetup.py Script for interacting with Meetup API
**hackathon/scripts/**nytimes.py Script for interacting with New York Times API
**hackathon/scripts/**quandl.py Script for interacting with Quandl API
**hackathon/scripts/**scraper.py Basic web scraper for getting sales from Steam
**hackathon/scripts/**facebook.py Script for interacting with Facebook API
**hackathon/scripts/**dropbox.py Script for interacting with Dropbox API
**hackathon/scripts/**foursquare.py Script for interacting with Foursquare API
**hackathon/scripts/**googlePlus.py Script for interacting with Google+ API
**hackathon/scripts/**steam.py Script for interacting with Steam API
**hackathon/scripts/**tumblr.py Script for interacting with Tumblr API
**hackathon/scripts/**twilioapi.py Script for interacting with Twilio API
**hackathon/scripts/**twitter.py Script for interacting with Twitter API
**hackathon/scripts/**yelp.py Script for interacting with Yelp API
**hackathon/templates/**hackathon/ Templates for API examples
**hackathon/templates/**hackathon/base.html Base template, contains navbar

Contributing

We welcome contributions of all kinds. If you would like to know what work is needed to be done, check the issue tracker. Before sending a pull request, please open an issue. This project follows the pep-0008 style guide.

LICENSE

The MIT License (MIT)

Copyright (c) 2015 David Leonard

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

django-hackathon-starter's People

Contributors

decentral1se avatar drksephy avatar eswariswarna avatar lsxliron avatar mk200789 avatar mquezada88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

django-hackathon-starter's Issues

Update Facebook readme

Due to the older Facebook example being removed, I am no longer sure if those steps are correct. Would it be possible to update these steps?

More integration with Django REST framework

Currently there is a simple Django Rest framework example for creating Code Snippets and sending a JSON response to the server. It would be good to have a deeper example which supports more features beyond GET requests (PUT, DELETE, UPDATE).

/hackathon/githubTopRepositories/ fails

Athough /hackathon/githubResume/ and /hackathon/githubUser/ work properly on my resh install on a brand new virtualenv, /hackathon/githubTopRepositories/ fails.

Here is my stacktrace :

Environment:


Request Method: POST
Request URL: http://127.0.0.1:8000/hackathon/githubTopRepositories/

Django Version: 1.7.6
Python Version: 2.7.12
Installed Applications:
('django.contrib.admin',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'hackathon',
 'bootstrapform',
 'django_nose',
 'rest_framework',
 'corsheaders')
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'corsheaders.middleware.CorsMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware')


Traceback:
File "/home/edelans/.virtualenvs/django-starter/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
  111.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/edelans/github/django-hackathon-starter/hackathon_starter/hackathon/views.py" in githubTopRepositories
  532.         list = getTopContributedRepositories(user, repositories, settings.GITHUB_CLIENT_ID, settings.GITHUB_CLIENT_SECRET)
File "/home/edelans/github/django-hackathon-starter/hackathon_starter/hackathon/scripts/github.py" in getTopContributedRepositories
  260.         jsonList.append(json.loads(req.content))
File "/home/edelans/.virtualenvs/django-starter/local/lib/python2.7/site-packages/simplejson/__init__.py" in loads
  505.         return _default_decoder.decode(s)
File "/home/edelans/.virtualenvs/django-starter/local/lib/python2.7/site-packages/simplejson/decoder.py" in decode
  370.         obj, end = self.raw_decode(s)
File "/home/edelans/.virtualenvs/django-starter/local/lib/python2.7/site-packages/simplejson/decoder.py" in raw_decode
  400.         return self.scan_once(s, idx=_w(s, idx).end())

Exception Type: JSONDecodeError at /hackathon/githubTopRepositories/
Exception Value: Expecting value: line 1 column 1 (char 0)

Error while running python3 mange.py makemigrations

Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 351, in      execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 325, in execute
django.setup()
File "/usr/local/lib/python3.4/dist-packages/django/__init__.py", line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python3.4/dist-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/usr/local/lib/python3.4/dist-packages/django/apps/config.py", line 86, in create
module = import_module(entry)
File "/usr/lib/python3.4/importlib/__init__.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
File "<frozen importlib._bootstrap>", line 2224, in _find_and_load_unlocked
ImportError: No module named 'bootstrapform'

Implement Feature Generator

A command-line based feature generator would help developers pick and choose the features they'd like to have in the base Django application, i.e: Twitter OAuth, Github OAuth, etc.

How to access default site on Vagrant

Hello,

I have followed every step and deployed this in a vagrant VM configured with puphpet.
The machine is running apache in Ubuntu, how do I enable the site and log into this default config

Thanks,

Adam

Add settings for different envs

This project is an awesome project starter. Thanks!

Problem

But one thing caught my eye: there's only one configuration file for all possible envs: development, stage, testing, production and local.

Maybe it would be a good idea to add some kind of library to handle that? Some popular examples: django-configurations and django-split-settings.

Also, adding a lot of social providers inside the same settings file may grow it long and nasty.

Solution

Here's a brief example, how to use django-split-settings. We will need new settings package structure:

your_project/settings/
├── __init__.py
├── components
│   ├── __init__.py
│   ├── database.py
│   ├── common.py
└── environments
    ├── __init__.py
    ├── development.py
    ├── local.py.template
    ├── production.py
    └── testing.py

And here's settings/__init__.py:

"""
This is a django-split-settings main file.
For more information read this:
https://github.com/sobolevn/django-split-settings

Default environment is `production`.
To change settings file:
`DJANGO_ENV=testing python manage.py runserver`
"""

from os import environ
from split_settings.tools import optional, include

ENV = environ.get('DJANGO_ENV') or 'production'  # since it's a production-ready template

base_settings = [
    'components/common.py',  # standard django settings
    'components/database.py',  # database setup
    
    # Select the right env:
    'environments/%s.py' % ENV,
    # Optionally override some settings:
    optional('environments/local.py'),
]

# Include settings:
include(*base_settings)

So after that it would be crystal-clear for users where to put extra configurations like: django-debug-toolbar and other which are used for development or testing only.

Conclusion

Pros:

  • Clear settings structure
  • No refactoring and no effect on the end user
  • Multiple possible environments with reasonable default

Cons:

  • Extra dependency

Maybe I am missing any cons, please correct me if I am wrong.

Further readings

Here's a detailed article I wrote on this topic: https://medium.com/wemake-services/managing-djangos-settings-e2b7f496120d


So, what do you think? I will send a PR if that's fine.

Add landing/homepage

Hi,

I think you should add a landing/homepage. For one thing, it's counter-intuitive to start a project on a local server and have an error where index.html would usually be, though I see that you have already used index.html in the app. Could do something like this at a project level in hackathon-starter/urls.py:

from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.views.generic import TemplateView

urlpatterns = patterns('',
url(r'^$', TemplateView.as_view(template_name='homepage.html'), name="homepage"),
url(r'^hackathon/', include('hackathon.urls')),
url(r'^admin/', include(admin.site.urls)),
# url(r'^openid/(.*)', SessionConsumer()),
)

And add templates (with homepage.html) and static directories:

hackathon-starter/
    manage.py
    hackathon-starter/
        __init__.py
        settings.py
        urls.py
        wsgi.py
    hackathon/
            app-level-files
    static/ 
    templates/
        homepage.html

Of course the homepage.html would provide a link to (/hackathon) index.html. What do you think?

Add docker

Docker is pretty common now, we could add docker support.

Implement Facebook Login

One of the most common sign-in methods (Facebook) has not been implemented. Users often fall back to using this method, so it should be a high priority to get it done.

Change flow of API examples

Currently, some API examples require the user to be specifically authenticated to a particular service. For example, the Facebook example will not work if the user is authenticated with Google+. We should have a method that will redirect the user to be authenticated for the proper API method (i.e, if the user is currently logged in through Facebook and wants to use the Dropbox API, we should re-direct the user to be authenticated through Dropbox). This should be done for all the API examples that require authentication.

Also for the examples done by @mk200789, I propose we change the re-direct url structure like this:

  • Let's say the user clicks the Twitter example, but is not authenticated with Twitter. The user is redirected to authenticate with Twitter, and upon successful authentication the user is redirected to http://localhost:8000/hackathon/. Instead, we should then redirect the user to the API example they requested to view (Twitter in this case). An implementation to do is:
    • Create separate callbacks for each API example. For example, Twitter will redirect the user (after authentication) to a url: http://localhost:8000/hackathon/oauthcallback/twitter. On this view function, we now redirect the user to the Twitter example they requested to use.
    • As such, authentication views such as Dropbox would have a redirect_uri of http://localhost:8000/hackathon/oauthcallback/dropbox, and would properly re-direct the user to the API example. This is perhaps a solution to the first problem on top, where if the user isn't authenticated with the right service, we re-direct them to be authenticated, then bring them back to the API they requested to view.

Questions and comments are welcome. This would greatly improve the user flow, as right now it requires the user to log out and log back in with the proper method, and would remove having the user go back to the main page after authenticating for an API examples (as shown by the Twitter example).

Python 3 port

Have not yet quite figured out how to contribute using git (as my profile probably shows!) but in case anyone needs it I ported the app to Python 3.4 (tested with django 1.8.4).

https://github.com/kabaka0/django-hackathon-starter

Sorry for using 'Issues', I assume it is not the right forum for this.

One unittest fails though, testGetForkedRepositories(). I currently have it set as skipped. I assume that 'DrkSephy's repositories have changed hence the failure.

Support of Django 1.11

When I am using Django 1.11 it gives error - 'No module named creation'.
Does this starter kit support Django 1.11 ? IMHO support for Django 1.11 must be there, as it is going to be supported for a long time.

'Getting started' instructions not working for Ubuntu 16.04

I got a number of errors in following your instructions. It may help to explain what settings to use in the virtualenvironment, for example the python version. I have to use sudo to install the requirements without getting errors get errors such as:
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-che3oe8o/unroll/

And then trying to run the make migrations I get the error:
Traceback (most recent call last):
File "manage.py", line 8, in
from django.core.management import execute_from_command_line
ImportError: No module named 'django'

Facebook API: How to ask for user email?

I have spent hours trying to get the user email after login, but the response object from facebook api script would only return the user's name and id. Anyone know how? Thanks.

Install TRAVIS

I think it would be awesome to install travis.ci in this repository for testing purposes, don't you think?

otauth2 pip installation failure with django 1.7 and 1.8

during the pip install -r requirements.txt I have the following message

Collecting nose==1.3.4 (from -r requirements.txt (line 23))
Downloading nose-1.3.4-py3-none-any.whl (154kB)
100% |████████████████████████████████| 155kB 474kB/s
Collecting oauth2==1.5.211 (from -r requirements.txt (line 24))
Downloading oauth2-1.5.211.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 20, in
File "/tmp/pip-build-a8l23vkw/oauth2/setup.py", line 18
print "unable to find version in %s" % (VERSIONFILE,) ^

SyntaxError: invalid syntax

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-a8l23vkw/oauth2

I tried with django 1.7 and 1.8 virtual environments with python3
has anyone else met the same issue ?
Thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.