Ok, so I promised this a long time ago but I’ve hardly had the time to work on it and now it’s finally here.  A beta version of my twitter clone.

http://www.speedyshare.com/635861674.html

There is a setting you can add to your settings.py to change the number of chirps that show on a single page (default 15): NUMBER_OF_CHIRPS_PER_PAGE

Lots of things have changed! Please look through the code, I’ve commented it so it should be easy to follow (please note as of yet there is no user recognition when @someone is typed in the content of a chirp- That’ll come later)

 

Updated! This post is now old and out-of-date, I’ve updated the sourcecode and it can be seen at my-implementation-of-a-twitter-clone-in-django-take-2

This is my first ever django app so any feedback would be greatly appreciated.  I worked on something simple like this so I can learn the ins and outs of django nice and quickly while still producing something that is of some use in the actual site itself.

As athe.la will be very community-based, I thought it would only be appropriate to have my own kind of twitter so people can post their thoughts and reply to each other.

Further Reading:
A simple ‘Twitter’ clone in Django
s-o-l sourcecode

Specifications

  • On the homepage people can see the posts written by their friends (including their own).
  • Another page should allow the user to see posts written by their friends’ friends.
  • Friendships are one-way. [a] can be a friend of [b] but the vice-versa isn’t necessary.
  • Posts will have a required content and an optional title.
  • People can reply to posts. (The posts are called Chirps, the replies Whistles)
  • These whistles are not themselves chirps and are only seen when the chirp is viewed in detail.

Continue reading »

© 2011 athe.la blog Suffusion theme by Sayontan Sinha