Software Collections Management Website
-
With Django 1.6.x dump the data:
softwarecollections dumpdata scls tagging auth.user > data.json
-
Remove the database and upgrade the system or move data.json to the new system.
-
Check the new id of ContentType SoftwareCollection:
softwarecollections shell
from django.contrib.contenttypes.models import ContentType ContentType.objects.get(app_label='scls', model='softwarecollection').id 2
-
Fix the id in data.json:
sed -i -r 's/"content_type": [0-9]+,/"content_type": 2,/g' data.json
-
Load updated data:
softwarecollections loaddata data.json
Voilà!
Enable yum repository from copr:
sudo dnf copr enable jdornak/SoftwareCollections
Install package softwarecollections:
sudo dnf install softwarecollections
Check the configuration in config files:
sudo vim /etc/softwarecollections/localsettings
sudo vim /etc/httpd/conf.d/softwarecollections.conf
If you have changed the configuration of database connection (which is recommended for production), initialize the database with:
sudo softwarecollections migrate
Follow the installation steps. You do not need package softwarecollections itself, but you need all it's requirements.
Clone the git repository:
git clone [email protected]:misli/softwarecollections.git
cd softwarecollections
Clone the packaging-guide repository
git clone [email protected]:pmkovar/packaging-guide.git
Import packaging-guide
./guide-build packaging-guide
./guide-import packaging-guide
Create local configuration:
cp softwarecollections/localsettings{-development,}.py
Initialize development database:
./manage.py migrate
Run development server:
./manage.py runserver
Voilà!
No registration of user is required. You may simply login if You have FAS account.
If You want to access the admin site, first make Yourself a superuser:
./manage.py makesuperuser $USER
To update your code and database to the last available version run:
git pull --rebase
./manage.py migrate
You may also need to install some new requirements (see the spec file).
To create and build RPM from the latest tagged release type:
tito build --rpm
tito release copr
To create RPM from the last commit (it does not have to be pushed to the repo) type:
tito build --rpm --test
tito release copr-test
Note that you need rel-eng/releasers.conf:
sed "s/<USERNAME>/$USERNAME/" < rel-eng/releasers.conf.template > rel-eng/releasers.conf
If this is Your first time working with Django application, read through the Django Tutorial.
For the detailed information about all aspect of using Django see the Django Documentation.