A simple URL Shortner project written in python/django.
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',
}
}
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
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