Client of the django-orchestra web hosting control panel for the final users. Developed using django framework.
Find a file
dependabot[bot] 5d46ddcbda
Bump requests from 2.22.0 to 2.31.0
Bumps [requests](https://github.com/psf/requests) from 2.22.0 to 2.31.0.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.22.0...v2.31.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-22 22:45:24 +00:00
musician Format date using SHORT_DATE_FORMAT 2022-03-17 22:34:54 +01:00
userpanel Use django.contrib.messages to show alerts 2021-10-14 11:59:59 +02:00
.env.example Add basic structure to access django-orchestra API 2019-10-29 10:47:50 +01:00
.gitignore Initial commit. Create app skeleton. 2019-10-10 09:18:34 +02:00
CHANGELOG.md Release version 0.2.0 2022-03-11 14:07:06 +01:00
docker-compose.yml add docker files 2022-03-17 01:36:46 +01:00
Dockerfile Rename dockerfile -> Dockerfile 2022-03-17 22:49:46 +01:00
LICENSE Add new BSD License (3 Clause) 2020-01-07 12:48:26 +01:00
manage.py Initial commit. Create app skeleton. 2019-10-10 09:18:34 +02:00
README.md Add reference to docker-compose (quickstart) 2022-03-17 22:52:05 +01:00
requirements.txt Bump requests from 2.22.0 to 2.31.0 2023-05-22 22:45:24 +00:00
setup.py Add package version information. 2019-10-25 13:30:51 +02:00

django musician

Python code is written following PEP 8 sytle guide and it is based on Django framework.

Quickstart development

Start development environment based on docker compose by running:

docker-compose up

How do I get set up?

  1. Install Python and its packet manager (pip)
# on a Debian based environment:
apt=(
    git
    python3-pip
    python3-setuptools
)
sudo apt-get install --no-install-recommends -y ${apt[@]}

  1. Install virtualenv (isolate app python related requirements)
sudo pip3 install virtualenv
  1. Clone this repository
git clone https://github.pangea.org/slamora/django-musician.git
  1. Prepare env and install requirements
cd django-musician
virtualenv env
source env/bin/activate
pip3 install -r requirements.txt
  1. Start django devel server (check everything is ok)
python manage.py migrate
python manage.py runserver
  1. Open http://127.0.0.1:8000/ in your browser.

  2. If everything works, follow Django deployment instructions.

How to generate/update translations

  1. Go to musician folder and run:
cd django-musician/musician
../manage.py makemessages
processing locale ca
processing locale es
  1. Edit generated .po files and save it when you have finished.
musician/locale/ca/LC_MESSAGES/django.po  # catalan
musician/locale/es/LC_MESSAGES/django.po  # spanish
  1. To able to use a .po file in an application, it needs to be compiled to the binary .mo file format.
../manage.py compilemessages

More detailed instrucions on Django Translation docs