Skip to content

Instantly share code, notes, and snippets.

@etng
Created March 7, 2014 09:52
Show Gist options
  • Save etng/9408675 to your computer and use it in GitHub Desktop.
Save etng/9408675 to your computer and use it in GitHub Desktop.
clear django cache
export DJANGO_SETTINGS_MODULE='my_project.settings'
cd my_project/
python manage.py shell
from django.core.cache import cache
cache.clear()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment