Member-only story
Django Framework : Build URL Shortener Application Using Django and Pyshorteners
3 min readJan 29, 2024
In this article, we are going to build a simple URL Shortener application using django Framework and pyshortener package, that will going to short the long urls, so let’s dive into it.
Install Dependencies
We need to install these two dependencies to start with this project :
Install django and pyshorteners by this command
pip install django pyshorteners
It will install both dependencies in a single hit. Let’s dive next to setup our django project.
Setup the Django Project
First, let’s create a setup a simple django project by following these instructions :
- Let’s create a django project i am giving a project name `urlshortener`.
django-admin startproject urlshortener
- Next move inside to `urlshortener` project.
cd urlshortener
- Now Let’s create a app i am giving a app name `main`.
python3 manage.py startapp main