School management system.
- Download the source code
git clone -b dev https://github.com/pythonbrad/mayaschool.git --depth 1
- Creating of a virtual env
python3 -m venv .maya_env
source .maya_env/bin/activate
- How to install the depedencies
pip install -r requirements.txt
- Config the environment (.env file)
cd mayaschool
cp .env_example .env
- How to config the database
python manage.py makemigrations
python manage.py migrate
- Config the translation
python manage.py makemessages
python manage.py compilemessages
- How to create an admin account
python manage.py createsuperuser
- How to clean the migrationq
for migration in $(find . | grep "migrations/0.*.py");do rm -f $migration; done
- How to install the depedencies
cd static
mkdir vendor
cd vendor
git clone --depth 1 https://github.com/ColorlibHQ/AdminLTE.git tmp
cp -r tmp/dist adminlte
cp tmp/LICENSE adminlte/LICENSE
cp -r tmp/plugins/* .
rm -rf tmp
python manage.py runserver