Skip to content

ricardodani/django-simple-url-shortner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-simple-url-shortner

A simple URL Shortner project written in python/django.

Screenshots

Create

Created with Success

Index Logged in

Login page

Register modal

Register page

Configure

Configure your cache backend on CACHES directive in settings. Example:

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '127.0.0.1:11211',
    }
}

Install

Requirements:

pip install -r requeriments.txt

Tests:

python manage.py test

Sync database:

python manage.py makemigrations urlshortner
python manage.py migrate

Runserver:

python manage.py runserver

Support on Windows with Django 1.10

Contributor: Samuel Dias Ricardo Lapa Dani

Configuring CACHE on settings.py using DatabaseCache instead of Memcached (not supported by Windows):

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
        'LOCATION': 'my_cache_table',
    }
}

Sync database:

python manage.py createcachetable

About

A simple URL Shortner project written in python/django.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published