##Introduction
A Simple URL Shortener, written in Python, supported by the Django Framework
This App is live at:
[URL Shortener] (http://devansh.pythonanywhere.com)
##Database used
MySQL
##Dependencies
- Python 2.7
- Django 1.6.1
##Deploying the App
- Install Django(1.6.1) through the command line (or pip)
sudo apt-get install python-django
- Clone the directory into a working project, say MyProject
git clone http://github.com/devanshgoenka97/url-shortener
- Install the MySQL client for python through pip
pip install mysql-client python-dev
- In the
settings.py
file insideMyProject/URLShortener/
change theDATABASES
->ENGINE
to
django.db.backends.mysql
- Create an appropriate database in MySQL and sync
python manage.py syncdb
- Create a superuser
python manage.py createsuperuser
- Run the Server
python manage.py runserver
- Open your browser to
127.0.0.1:8000
to use the app
##For the official documentation for Django, Visit