Skip to content

Latest commit

 

History

History
54 lines (30 loc) · 1.15 KB

README.md

File metadata and controls

54 lines (30 loc) · 1.15 KB

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

  1. Install Django(1.6.1) through the command line (or pip)

sudo apt-get install python-django

  1. Clone the directory into a working project, say MyProject

git clone http://github.com/devanshgoenka97/url-shortener

  1. Install the MySQL client for python through pip

pip install mysql-client python-dev

  1. In the settings.py file inside MyProject/URLShortener/ change the DATABASES -> ENGINE to

django.db.backends.mysql

  1. Create an appropriate database in MySQL and sync

python manage.py syncdb

  1. Create a superuser

python manage.py createsuperuser

  1. Run the Server

python manage.py runserver

  1. Open your browser to 127.0.0.1:8000 to use the app

##For the official documentation for Django, Visit

Django documentation

##Created by

Devansh Goenka