A fully functional and beautiful URL shortener built with Django, Tailwind CSS, and Font Awesome. Supports login/signup via modals, tracks clicks, and provides analytics for both authenticated and anonymous users.
- π Authentication using custom modals (Signup, Login, Logout)
- βοΈ Shorten Long URLs with unique short codes
- π Analytics Dashboard for total clicks, top URLs, and stats
- π§ Click Counter on each shortened URL
- ποΈ Manage Links with History, About, and Analytics pages
- π‘ User-Friendly UI built using Tailwind CSS and Font Awesome
- π¬ Toasts for success/error messages across all pages
- π Copy to Clipboard for easy sharing of short URLs
- π§βπ€βπ§ Works for both Authenticated and Anonymous Users
- β‘ Fast and Lightweight using Django and Tailwind CSS
git clone https://github.com/naveenchaudhary13/django-url-shortener.git
cd django-url-shortener
python -m venv env
source env/bin/activate # or env\Scripts\activate on Windows
pip install -r requirements.txt
python manage.py runserver
The project comes with an already migrated SQLite database.
- Username:
admin
- Password:
admin
Three demo users are pre-created:
user1
/user1pass
user2
/user2pass
user3
/user3pass
templates/
β Contains all HTML templates (home, base, nav, history, analytics, about)static/
β Custom JS and CSS (toast logic, modal styling)shortener/models.py
β Main model for URL shortening withclick_count
,short_code
, etc.shortener/views/
β CBVs for all pages and logic