Sign inSign up

warfox/django-url-shortner

By warfox

Updated almost 9 years ago

URL Shortner

Image
0

284

warfox/django-url-shortner repository overview

TDD in Django Tutorial

https://www.youtube.com/watch?v=qfkFhcxd2XI

  • The short URL must be always smaller than the original URL.
  • If you give the short URL, you must be able to recover the original URL.
  • The home page must have a form to enter the long URL.
  • Submitting the home page form should show the short URL.
  • Clicking on the short URL must redirect to the original (long) URL.

Setup

python -m venv venv
source venv/bin/activate.fish
pip install django
django-admin startuproject tiny
cd tiny
./manage.py startapp shorturls

Test

cd tiny
python manage.py test -v 2

Run

python manage.py migrate
python manage.py runserver

Pip freeze

Output installed packages in requirements format.

packages are listed in a case-insensitive sorted order.

pip freeze > requirements.txt

Tag summary

Content type

Image

Digest

Size

274.6 MB

Last updated

almost 9 years ago

docker pull warfox/django-url-shortner