Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Just a hackernews clone built in django for fun
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
djangonews
posts
.gitignore
README.md
db.sqlite
manage.py

README.md

Django News

A hackernews clone built in django for fun

Demo at dj.dam.io

Complete with:

  • Post & Comments scores
  • Threaded comments
  • GitHub login

But it's not for production use, just for a quick demonstration

Installation

You need to have:

  • Django 1.5
  • django-social-auth (for GitHub login)
  • django-mptt (for threaded comments)
  • python-sqlite3

Then, just do a .manage.py runserver as usual and go to /admin/ to connect with:

login: admin
password: admin

If you want the github login:
You need to add a local_settings.py file in djangonews with GITHUB_APP_ID & GITHUB_API_SECRET set

TODO

  • Upvotes are done with a simple GET request, it needs to be a POST request
  • calculation of scores are really inefficient, caching them would be better
  • pagination of the index
  • ordering comments by score

Screenshots

home post & comments

Something went wrong with that request. Please try again.