Skip to content

osama-mohamed/url_shortener_django

Repository files navigation

URL Shortener By Django

For live preview :

URL Shortener

Usage :

Run project by :

# 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.

Done :

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

Developer

This project made by Osama Mohamed

License

This project is licensed under the MIT License