The site was created using Django, PostgreSQL and Tailwind CSS. It has a public page that shows Courses, Formations and some information about me. Using Django Admin I created the Models where I can register the information about the courses and Formations that allows me to update the site content dinamically.
Run all tests locally
coverage run -m pytestRun an individual test
coverage run -m pytest mysite/tests.py mysite/tests_dashboard.pyGenerate a report on terminal
coverage report -mGenerate a html report
coverage htmlVisualize the report opening the htmlcov/index.html file or running the command bellow and opening the http://0.0.0.0:8000/ on the browser
python -m http.server- Generate translations
python manage.py makemessages -l pt_BR -i venv
python manage.py makemessages -l en -i venv-
Edit the .po files with Poedit
-
Compile the translations
python manage.py compilemessagesCompile modifications on tailwind.config.js file
npx tailwindcss build -i style.css -o dist/my-site.cssFix import ordering with isort and show some warnings about the code with flake8 on the console
python manage.py cleancode