Changes between Version 20 and Version 21 of org/operations/Infrastructure/support.torproject.org


Ignore:
Timestamp:
Jun 3, 2014, 1:24:15 AM (6 years ago)
Author:
Sherief
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • org/operations/Infrastructure/support.torproject.org

    v20 v21  
    88* Passenger (libapache2-mod-passenger)
    99* Django (python-django)
     10* [https://packages.debian.org/wheezy/python-django-south python-django-south]
    1011* [https://gitweb.torproject.org/pups.git pups]
    1112
     
    5051# Fill in the CONFIG dict (look at sample settings)
    5152}}}
     53
     54''' Upgrade: '''
     55
     56Sometimes after creating your schema you'd want to add a column or two but django 1.4.5 doesn't support that. Luckily there is an solution for this (python-django-south) and this is how to use it..
     57
     58{{{
     59
     60#app_name can be pups/webchat/stats
     61
     62./manage.py schemamigration app_name --init
     63
     64./manage.py migrate app_name --fake
     65
     66# Now you can add db columns
     67
     68./manage.py schemamigration app_name --auto
     69
     70./manage.py migrate app_name
     71}}}