Skip to content

GetStream/django_twitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f40b788 · Oct 4, 2018
Mar 12, 2015
Mar 29, 2018
Mar 29, 2018
Oct 10, 2017
Oct 5, 2017
Mar 12, 2015
Feb 19, 2015
Oct 5, 2017
Oct 20, 2016
Dec 4, 2014
Oct 4, 2018

Repository files navigation

Stream Twitter clone

This is a simple Twitter clone app built with Stream's API. It shows you how you can use GetStream.io to build a site similar to Twitter.

Note there is also a lower level Python - Stream integration library which is suitable for all Python applications.

You can sign up for a Stream account at https://getstream.io/get_started.

If you're looking to self-host your feed solution we suggest the open source Stream-Framework, created by the Stream founders.

Tutorial

This application is based on the Build a scalable Twitter clone with Django and GetStream.io tutorial.

Live Demo

You can see a live demo of this application here.

Heroku

The best way to try this application is via Heroku; you can deploy this example (for free) on Heroku by pressing the Deploy button below.

Deploy

If you prefer to run this locally then make sure to signup for GetStream's service and follow this steps:

Install the requirements

pip install -r requirements.txt

Add your API keys to pytutorial/settings.py

STREAM_API_KEY = 'my_api_key'
STREAM_API_SECRET = 'my_api_secret'

Run server in debug mode pytutorial/settings.py

DEBUG = True

Setup your database and the demo data:

python manage.py after_deploy

Collect static files (javascript/css)

python manage.py collectstatic

Start the webserver

python manage.py runserver

Copyright and License Information

Copyright (c) 2015-2017 Stream.io Inc, and individual contributors. All rights reserved.

See the file "LICENSE" for information on the history of this software, terms & conditions for usage, and a DISCLAIMER OF ALL WARRANTIES.