Changes

Jump to navigation Jump to search
288 bytes added ,  12:50, 8 June 2017
no edit summary
Line 1: Line 1:  +
= Django =
 
==== Requirements: ====
 
==== Requirements: ====
 
* Python
 
* Python
Line 56: Line 57:  
  href="{% static 'cpc/css/tree.css' %}"
 
  href="{% static 'cpc/css/tree.css' %}"
 
  href="{% url 'civilarea_history_create' task.id %}"
 
  href="{% url 'civilarea_history_create' task.id %}"
 +
 +
== Reset Migrations ==
 +
 +
1) Fake migrations back to 0
 +
./manage.py migrate app zero --fake
 +
 +
2) Delete migrations files
 +
git rm "app/migrations/*"
 +
 +
3) Create new migration file
 +
./manage.py makemigrations app
 +
 +
4) Pretend to run the new migration
 +
./manage.py migrate app --fake

Navigation menu