A simple URL shortening web application built using Django.
The URL Shortener is a web application that allows users to convert long URLs into shorter, more manageable links. This project is built using Django, providing a straightforward interface to input long URLs and generate shortened versions.
- Shorten long URLs to more concise forms.
- Redirection from shortened URLs to their original destinations.
- User-friendly interface for URL input and copy functionality.
-
Clone the repository:
git clone https://github.com/breezeconcept/URL-Shortner.git
-
Navigate to the project directory:
cd url-shortener
-
Install dependencies:
pip install -r requirements.txt
-
Run the server:
python manage.py runserver
-
Access the application:
Open your web browser and go to
http://localhost:8000/
.
- Access the home page at
http://localhost:8000/
. - Enter a long URL into the input field.
- Click the "Shorten URL" button to generate a shortened link.
- Copy the shortened URL by clicking the "Copy" button.
- Paste the shortened URL where needed.
The project's folder structure is as follows:
url_shortener/
: Django app directory containing application files.manage.py
: Django's command-line utility for administrative tasks.requirements.txt
: List of Python dependencies.
- Python
- Django
- HTML
- CSS
- JavaScript
Contributions are welcome! Please fork the repository, make changes, and create a pull request. For major changes, please open an issue first to discuss the proposed changes.
This project is licensed under the MIT License - see the LICENSE file for details.
- This project is based on the Django web framework.
- Inspired by the need for a simple URL shortener.