@@ -4,16 +4,43 @@ softwarecollections
44Software Collections Management Website
55
66
7+ Date migration from Django-1.6.x (Fedora-20) to Django-1.8.x (Fedora 22)
8+ -------------------------------------------------------------------
9+
10+ 1 . With Django 1.6.x dump the data:
11+
12+ softwarecollections dumpdata scls tagging auth.user > data.json
13+
14+ 2 . Remove the database and upgrade the system or move data.json to the new system.
15+
16+ 3 . Check the new id of ContentType SoftwareCollection:
17+
18+ softwarecollections shell
19+ >>> from django.contrib.contenttypes.models import ContentType
20+ >>> ContentType.objects.get(app_label='scls', model='softwarecollection').id
21+ 2
22+
23+ 4 . Fix the id in data.json:
24+
25+ sed -i -r 's/"content_type": [ 0-9] +,/"content_type": 2,/g' data.json
26+
27+ 5 . Load updated data:
28+
29+ softwarecollections loaddata data.json
30+
31+ Voilà!
32+
33+
734Installation
835------------
936
1037Enable yum repository from copr:
1138
12- sudo wget -O /etc/yum.repos.d/SoftwareCollections.repo http://copr-fe.cloud.fedoraproject.org/coprs/mstuchli/ SoftwareCollections/repo/fedora-20-x86_64/
39+ sudo dnf copr enable jdornak/ SoftwareCollections
1340
1441Install package softwarecollections:
1542
16- sudo yum -y install softwarecollections
43+ sudo dnf install softwarecollections
1744
1845
1946Configuration (production instance)
@@ -27,7 +54,7 @@ Check the configuration in config files:
2754If you have changed the configuration of database connection
2855(which is recommended for production), initialize the database with:
2956
30- sudo softwarecollections syncdb -- migrate --noinput
57+ sudo softwarecollections migrate
3158
3259
3360Development instance
@@ -56,8 +83,7 @@ Create local configuration:
5683
5784Initialize development database:
5885
59- ./manage.py syncdb --all
60- ./manage.py migrate --fake
86+ ./manage.py migrate
6187
6288Run development server:
6389
@@ -77,7 +103,7 @@ first make Yourself a superuser:
77103To update your code and database to the last available version run:
78104
79105 git pull --rebase
80- ./manage.py syncdb -- migrate --noinput
106+ ./manage.py migrate
81107
82108You may also need to install some new requirements (see the spec file).
83109
@@ -104,10 +130,8 @@ Help
104130----
105131
106132If this is Your first time working with Django application, read through the
107- [ Django Tutorial] ( https://docs.djangoproject.com/en/1.6 /intro/tutorial01/ ) .
133+ [ Django Tutorial] ( https://docs.djangoproject.com/en/1.8 /intro/tutorial01/ ) .
108134
109135For the detailed information about all aspect of using Django see the
110- [ Django Documentation] ( https://docs.djangoproject.com/en/1.6 / ) .
136+ [ Django Documentation] ( https://docs.djangoproject.com/en/1.8 / ) .
111137
112- If You have changed some model and You want to create migrations, see the
113- [ South Tutorial] ( http://south.readthedocs.org/en/latest/tutorial/part1.html ) .
0 commit comments