Djitter - how to build a twitter clone using Django 2.0

Djitter - how to build a twitter clone using Django 2.0

Published 24. may 2018 06:25 by Stein Ove Helset

Getting started with Django 2.0 by building a twitter clone.

Introduction

I have written a tutorial series to help you get started with Django 2.0 which is the latest release of the framework. I'm a big fan of learning by doing and that's why I think this tutorial is very suitable for those who are beginners and even for other who's more experienced. I've aimed it at people with no experience with Django, so it might be too easy for someone.

I'll try to explain things as good as I can and I hope that you understand most of it. If you've got any questions your are more than welcome to leave a comment and I'll answer as soon as possible.

Djitter - Twitter

Building a twitter clone using Django is a really exciting project and something that you can learn a lot from by doing. Of course we can't build a clone of twitter as it is today since it's a huge platform. Instead we'll be building a simplified clonse where we can register, post djeets, follow other djeeters and view their feed.

I have split the project into nine parts and been trying to keep it as simple as possible. I'm thinking of adding more parts to this projects later, but right now this should be enough to get you started with Django 2.0. In the last part of this series I will talk more about what I want to add to this series.

Since this tutorial is meant to get you up and running I have tried to keep things as simple as possible when writing the code. Much of what I have written can be done if different and maybe better ways, but since this is meant for a beginner it makes more sense for me to build it like I do in this tutorial. In the last part (Part 9) of this tutorial I will go to a little refactoring of the code and even some other optimization of the code.


Series index

Part one
In the first part of this series we will go through how you're setting up a Django project. We will discuss the use of virtualenvironments and some configurations of Django.
Read part one here.

Part two
In this part we will set up the base templates we're going to use in the project. We'll be using standard code from Bootstrap just to keep it as simple as possible.
Read part two here.

Part three
In the third part we will be creating the apps that this project requries. We will also be setting up the database models where we will be describing how the data should look like.
Read part three here.

Part four
This part will cover the sign in and sign up forms..
Read part four here.

Part five
Now things are starting to get more interesting. In this part of the series we will set up the view and the templates so that you can view your profile after you are signed in..
Read part five here.

Part six
In this part we will start making it more of a social network. Finally you will be able to post djeets..
Read part six here.

Part seven
Now it's time to view your feed. We will be listing out the djeets from the djeeters you are following.
Read part seven here.

Part eight
In part eight we will make it possible for you to follow and stop following other djeeters. We will also add two more views so that you can see who you are following and who are following you.
Read part eight here.

Part nine
The last part of this series will cover some basic optimization of the code and some minor refactoring.
Read part nine here.


Part one of this series will be posted very soon! If you want you can sign up for our newsletter at the bottom of this screen and you will be notified every time we post a new part of this series in our blog. Here you can see a screenshot of the sign in screen of the project you'll be building.

Djitter - Welcome

That's it for today. Looking forward to start posting the tutorial, I hope you'll like it!

Share this post

Comments

No comments yet

Add comment