An open API service indexing awesome lists of open source software.

https://github.com/fccn/ecommerce-nau-extensions

NAU extensions to the Open edX Ecommerce
https://github.com/fccn/ecommerce-nau-extensions

Last synced: 4 months ago
JSON representation

NAU extensions to the Open edX Ecommerce

Awesome Lists containing this project

README

          

==================================================================================
NAU extensions to the Open edX Ecommerce
==================================================================================

This is an extensions project to aim to change the Open edX
`Ecommerce `__
behavior for the NAU project.

Configuration
===============

Add the `nau_extensions` to the `INSTALLED_APPS`, for example if you are using devstack
edit the `ecommerce/settings/private.py` file add change to::
from .production import INSTALLED_APPS
INSTALLED_APPS += ("paygate", "nau_extensions", )

LANGUAGE_CODE = "pt"
from django.utils.translation import ugettext_lazy as _
LANGUAGES = (
('pt-pt', _('Português')),
('en', _('English')),
)
LOGO_URL = "https://lms.nau.edu.pt/static/nau-basic/images/nau_azul.svg"

NAU_FINANCIAL_MANAGER = {
"edx": {
"url": "http://financial-manager.local.nau.fccn.pt:8000/api/billing/transaction-complete/",
"token": "Bearer abcdABCD1234",
}
}

Development
=============

To create migrations for this project the next command inside ecommerce container::
python manage.py makemigrations nau_extensions

Then run the migrations::
python manage.py migrate

Use specific Python version, use ecommerce requirements::
pyenv shell 3.12
python -m venv venv
. venv/bin/activate
pip install -r ../ecommerce/requirements.txt
pip install -r ../ecommerce/requirements/dev.txt

Lint::
ECOMMERCE_SOURCE_PATH=`pwd`/../ecommerce make lint

License
=======

This work is licensed under the terms of the `GNU Affero General Public License (AGPL) `_.