Skip to content

Instantly share code, notes, and snippets.

@harmo
Last active December 18, 2016 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harmo/47761904cdabd009407a to your computer and use it in GitHub Desktop.
Save harmo/47761904cdabd009407a to your computer and use it in GitHub Desktop.
Migration Django vers 1.4.5, puis vers 1.5
pip install -U "django < 1.5"
service memcached restart
# Remove old setting call DATABASE_ENGINE
----------------------------------------------------------------------------------------
pip install -U django
service memcached restart
Mise à jour des url dans les templates:
\{%\s?url\s([a-zA-Z0-9_.-]+[:][a-zA-Z0-9_.-]+)\s(.*)%\}
{% url '$1' $2 %}
Edition des settings
Mise à jour des medias + statics
"{{\s*MEDIA_URL\s*}}([^"]+)
"{% static '$1' %}
{{\s*MEDIA_URL\s*}}([\S]+)
"{% static '$1' %}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment