A boilerplate application for Django web applications.
|
10 years ago | |
---|---|---|
hackathon_starter | 10 years ago | |
.hgignore | 10 years ago | |
.pylintrc | 10 years ago | |
README.md | 10 years ago | |
bower.json | 10 years ago | |
requirements.txt | 10 years ago |
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.
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
mv bower_components/ hackathon_starter/hackathon/static
# 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.
NOTE: To get you up and running quickly, we have provided dummy API keys for use. We highly recommend setting up your own keys and replacing them within settings.py
.
CONSUMER KEY
, CONSUMER SECRET
, TOKEN
, TOKEN_SECRET
.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
consumer name
field.redirect url
field, enter: http://127.0.0.1:8000/hackathon/
.settings.py
, add the following:
MEETUP_CONSUMER_KEY
= Meetup key
MEETUP_CONSUMER_SECRET
= Meetup secret key
account_sid
and auth_token
here.scripts/twilioapi.py
:
account_sid
with your own Twilio account_sid
.auth_token
with your own Twilio auth_token
.Application name
and Homepage URL
field.redirect url
field, enter: http://127.0.0.1:8000/hackathon/
.settings.py
, add the following:
GITHUB_CLIENT_ID
= Github-client-id
GITHUB_CLIENT_SECRET
= Github-client-secret
Application name
, Description
, and Website
field.Callback URL
field, enter: http://127.0.0.1:8000/hackathon/
.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
Application name
, Description
, and Website URL
field.Redirect URI
field, enter: http://127.0.0.1:8000/hackathon/
.settings.py
, add the following:
INSTAGRAM_CLIENT_ID
= Instagram-client-id
INSTAGRAM_CLIENT_SECRET
= Instagram-client-secret
Company Info
, Application Info
, and Contact Info
section.OAuth User Agreement
section, select scopes needed.OAuth 2.0 Redirect URLs
field, enter: http://127.0.0.1:8000/hackathon/
.settings.py
, add the following:
LINKEDIN_CLIENT_ID
= Linkedin-client-id
LINKEDIN_CLIENT_SECRET
= Linkedin-client-secret
views.py
add the App ID in yourappid
underneath the view for your facebook application.views.py
add the Key in key
underneath the view for your steam application.settings.py
add the following:
POPAPIKEY
= Most Popular API
TOPAPIKEY
= Top Stories API
settings.py
add QUANDLAPIKEY
= Key