URL Shortener By Django
# change database connection information in settings.py DATABASES default values with your info then run
1. python manage.py migrate
2. python manage.py runserver
# if you want to manage to project just create super user account by :
3. python manage.py createsuperuser
That's it.
Now the project is running at http://localhost:8000
and your routes is:
Route | HTTP Method | Description |
---|---|---|
{host} | POST | Paste original link to be shortened |
{host}/<short_url> | GET | Redirect to the original link |
{host}/admin/ | GET | Admin control panel |
For detailed explanation on how project work, read the Django Docs and MySQLDB Docs
This project made by Osama Mohamed
This project is licensed under the MIT License