Projet

Général

Profil

0001-Documentation-to-upgrade-to-2.2-bump-to-2.2.0dev.patch

Nickolas Grigoriadis, 12 décembre 2014 08:13

Télécharger (2,45 ko)

Voir les différences:

Subject: [PATCH 1/3] Documentation to upgrade to 2.2, bump to 2.2.0dev

License MIT
 authentic2/__init__.py |  2 +-
 doc/upgrading.rst      | 37 ++++++++++++++++++++++++++++++++++++-
 2 files changed, 37 insertions(+), 2 deletions(-)
authentic2/__init__.py
2 2
import os
3 3
import django
4 4

  
5
__version__ = "2.1.11"
5
__version__ = "2.2.0dev"
6 6

  
7 7
# vendor contains incorporated dependencies
8 8
sys.path.append(os.path.join(os.path.dirname(__file__), 'vendor'))
doc/upgrading.rst
6 6

  
7 7
Update using pip::
8 8

  
9
    # From <2.2 to >=2.2 only as django-registration-redux
10
    #  conflicts with django-registration
11
    pip uninstall django-registration
12

  
9 13
    pip install -U authentic2
10 14

  
11 15
Authentic store all its data in a relational database as specified in its
12 16
settings.py or local_settings.py file. So in order to upgrade to a new version
13 17
of authentic you have to update your database schema using the
14
migration command  you will need to have installed the dependency django-south,
18
migration command  you will need to have installed the dependency django-south,
15 19
see the beginning of this README file.::
16 20

  
21
    # For Django 1.5 and 1.6
22
    authentic2-ctl syncdb --migrate
23
    
24
    # For Django 1.7
25
    authentic2-ctl migrate
26

  
27
Upgrading to authentic2 ver. 2.2
28
================================
29

  
30
When upgrading to Django 1.7, there are 2 backwards incompatible changes:
31

  
32
* Migrating from ``django-registration`` to ``django-registration-redux``.
33
* Migrating from south migrations to Django's built-in migration system.
34

  
35
Steps for this are::
36

  
37
    # Removes django-registration so we can replace it with django-registration-redux in the next step
38
    pip uninstall django-registration
39

  
40
    # Upgrade only authentic2 (also installs new dependencies)
41
    pip install 'authentic2>=2.2'
42
    
43
    # Ensure all south migrations are applied
17 44
    authentic2-ctl syncdb --migrate
45
    
46
    # Do a complete upgrade
47
    pip install -U authentic2
48

  
49
    # Now apply django migrations
50
    authentic2-ctl migrate
51
       
52
    
18
-