Skip to main content

CoopStarter Application

Project description

CoopStarter Application data repository

This project is a Python module, compatible with Django REST Framework and DjangoLDP additional module, describing the models and the API needed and available on the future coopstarter application.

Installation

Here is the detailed explaination of the preferred installation process. Depending on your OS and your python installation, commands could have to be run using either python or python3.

Manage many projects at the same time

If you'll have to work on many projects at the same time, we recommande to use virtualenvwrapper. https://virtualenvwrapper.readthedocs.io/en/latest/

If you're not using virtualenvwrapper, create the python virtual environnement dedicated to the project

mkdir coopstarter
cd coopstarter
pip install virtualenv
virtualenv venv
source venv/bin/activate
# Install sib-manager
pip install sib-manager
# Create your server folder
sib startproject coopstarter
# Enter in your project
cd coopstarter

Open the file "packages.yml", and replace the content of 'ldppackages :' by :

oidc_provider: 'git+https://github.com/jblemee/django-oidc-provider.git@develop'
django_countries: django_countries
djangoldp_account: djangoldp_account
djangoldp_circle: djangoldp_circle
djangoldp_conversation: djangoldp_conversation
coopstarter_data: coopstarter_data
djangoldp_like: djangoldp_like
djangoldp_uploader: djangoldp_uploader
#Create your project
sib install coopstarter

Running the project

python manage.py createsuperuser
python manage.py creatersakey
python manage.py runserver

If successful, this command will make available on 127.0.0.1:8000/admin/ the administrator backend. You will then be able to log-in with 'admin' as identifier and as password.

Initialising the database

Warning! At this step, you should can Balessan or Alice

Nota Bene : If you using virtualenvwrapper, replace "../venv" by "path/to/your/virtualenv"

As some fixtures are provided to enrich the application database easily, the following command will allow you to properly load them.

python manage.py loaddata ../venv/lib/python3.6/site-packages/coopstarter_data/fixtures/*.json

If you load the coopstarter_data package locally through a symlink for development purpose, you should use the following command:

python manage.py loaddata coopstarter_data/fixtures/*.json

If you have some issues with the previous command, such as Field table does not exist or equivalent, please run:

python manage.py makemigrations
python manage.py migrate

And run the loaddata command once more.

If you get a error message like : `django.db.utils.OperationalError: no such table: coopstarter_data_mymissingtable, please run :

python3 manage.py migrate --run-syncdb

Funding

EULOGO

This software has been co-funded by the European Union. The contents of this software are the sole responsibility of Cooperatives Europe and can in no way be taken to reflect the views of the European Union.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

coopstarter_data-0.1.69.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coopstarter_data-0.1.69-py3-none-any.whl (26.2 kB view details)

Uploaded Python 3

File details

Details for the file coopstarter_data-0.1.69.tar.gz.

File metadata

  • Download URL: coopstarter_data-0.1.69.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.9

File hashes

Hashes for coopstarter_data-0.1.69.tar.gz
Algorithm Hash digest
SHA256 34e6ce771e3f22f152a097407a43c08aefd4461212b14d2e26d7a656fc3b9462
MD5 0beaafea09bcc3c5857213a934c7665f
BLAKE2b-256 41bed7922e9143430b3a21a8ae3eeb41ff094fdc8108b718946e788689abcc1f

See more details on using hashes here.

File details

Details for the file coopstarter_data-0.1.69-py3-none-any.whl.

File metadata

  • Download URL: coopstarter_data-0.1.69-py3-none-any.whl
  • Upload date:
  • Size: 26.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.9

File hashes

Hashes for coopstarter_data-0.1.69-py3-none-any.whl
Algorithm Hash digest
SHA256 074bedc903f1a588c36ee2d93ca205e41c73578e5f63cd299baaf68aaf44110d
MD5 713a53968099c7885b2775d0c7c3fec1
BLAKE2b-256 96cb604e4a12c58569b12421ae439adf134b5c6d1ebbde34dd833ecf5ac35d01

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page