Coder Social home page Coder Social logo

seevil / softwarecollections Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sclorg/softwarecollections

0.0 2.0 0.0 3.35 MB

Software Collections Management Website nad Utils

License: BSD 3-Clause "New" or "Revised" License

Shell 0.60% Python 45.84% JavaScript 0.65% HTML 38.68% CSS 14.22%

softwarecollections's Introduction

softwarecollections

Software Collections Management Website

Date migration from Django-1.6.x (Fedora-20) to Django-1.8.x (Fedora 22)

  1. With Django 1.6.x dump the data:

    softwarecollections dumpdata scls tagging auth.user > data.json

  2. Remove the database and upgrade the system or move data.json to the new system.

  3. 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

  4. Fix the id in data.json:

    sed -i -r 's/"content_type": [0-9]+,/"content_type": 2,/g' data.json

  5. Load updated data:

    softwarecollections loaddata data.json

Voilà!

Installation

Enable yum repository from copr:

sudo dnf copr enable jdornak/SoftwareCollections

Install package softwarecollections:

sudo dnf install softwarecollections

Configuration (production instance)

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

Development instance

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).

RPM build

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

Help

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.

softwarecollections's People

Contributors

asamalik avatar msimacek avatar msrb avatar pmkovar avatar synfo avatar tomasradej avatar tradej avatar xsuchy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.