This project is the source code for an educational programming website.
You should be able to have the packages. For that, use this command to install all of the dependencies :
$ pip install -r requirements.txt # venv
$ pipenv install # pipenv
To activate environment :
# venv
$ source env/Scripts/activate # unix system
> cd env; cd Scripts; cd activate.bat # windows
Go to folder first :
$ cd proglanglearn
Administration :
- superuser creation :
$ python manage.py createsuperuser
- use default admin (username: HadesGuigui, Password: hadesguiguiadmin)
To run the project :
$ python manage.py runserver
To make migrations/migrate for the project's database :
$ python manage.py makemigrations
$ python manage.py migrate
To initialize/update files for translations :
$ django-admin makemessages -l <lang> -e html,txt,py
$ django-admin makemessages -a
To compile translations :
$ django-admin compilemessages
To clear sessions :
$ python manage.py clearsessions
To update style files :
$ sass --watch .\scss\global.scss:.\css\global.min.css .\scss\print.scss:.\css\print.min.css --style compressed
Custom commands :
- Remove useless data :
$ python manage.py uselessdata