Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 1.76 KB

README.rst

File metadata and controls

56 lines (42 loc) · 1.76 KB

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