Last active
December 18, 2016 09:28
-
-
Save harmo/47761904cdabd009407a to your computer and use it in GitHub Desktop.
Migration Django vers 1.4.5, puis vers 1.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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