- It is a simple URL shortner which can shorten long urls:
- Install Python Django and Apps:
pip install python==3.9.10
pip install Django==4.0.3
pip install djangorestframework==3.13.1py manage.py makemigrations- Then execute these, one by one:
py manage.py migrate2.Default Super User is me so just simply create new super user and remove me. default username: vikas default password:vikas
py manage.py createsuperuserNow Simply Start Server
py manage.py runserverThis Application has API support also.You can navigate API folder under testapp.For API only POST method implemented so you can send POST request and in response you'll get your shorten url.
Before deployment just change the following things: 1.In API go to views.py and in last line replace 127.0.0.1:8000 with your custom domain.
2.Edit About Us and API Documents Page According to your need.