Projet final D.A. Python Openclassrooms
Open your terminal and run:
- "django-admin.py startproject weatwork ." Where '.' is the WORKDIR that is defined in our dockerfile.
Use this command in your terminal:
- python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'
The command is :
- docker-compose run weatwork
The command is : docker-compose run weatwork sh -c "python manage.py test"
The command is : docker-compose run weatwork sh -c "python manage.py makemigrations <YOUR_APP_NAME>"
-
https://docs.djangoproject.com/en/3.2/topics/auth/customizing/
-
https://docs.djangoproject.com/en/3.2/topics/auth/customizing/
-
https://docs.djangoproject.com/en/3.2/topics/auth/customizing/
-https://docs.travis-ci.com/user/job-lifecycle/#customizing-the-build-phase
-
https://docs.djangoproject.com/en/3.2/internals/contributing/writing-code/unit-tests/
-
https://docs.python.org/3/library/unittest.html#assert-methods
-
https://stackoverflow.com/questions/52621819/django-unit-test-wait-for-database
-
https://docs.djangoproject.com/en/3.2/ref/django-admin/#django.core.management.call_command
-
https://docs.djangoproject.com/en/3.2/howto/custom-management-commands/