Commit Graph

237 Commits

Author SHA1 Message Date
Fred Pauchet a96955f6f1 Working on migrations and models
continuous-integration/drone/push Build is passing Details
2021-04-06 19:29:02 +02:00
Fred 525fd98ac0 Working on models
continuous-integration/drone/push Build is passing Details
2021-04-05 20:53:29 +02:00
Fred b0212568d9 Describe migrations and add a basic schema
continuous-integration/drone/push Build is passing Details
2021-04-02 09:42:49 +02:00
Fred 831fb93783 Working on tests 2021-03-28 17:44:41 +02:00
Fred 16d0a344bb Ced' has left a ';' in a Python block code :-)
continuous-integration/drone/push Build is passing Details
2020-12-28 20:53:07 +01:00
Fred 333fa33135 Review logging
continuous-integration/drone/push Build is passing Details
2020-12-28 20:52:48 +01:00
Fred 739c7e7dc0 Redémarrage gracieux du process master de gunicorn
continuous-integration/drone/push Build is passing Details
`pc -C gunicorn` only lists the processes with `gunicorn` command, i.e., workers and master process. Workers are children of master as can be seen using `ps -C gunicorn fc -o ppid,pid,cmd`. We only need the pid of the master, therefore h flag is used to remove the first line which is PID text. Note that, f flag assures that master is printed above workers.

The correct procedure is to send `HUP` signal only to the master. In this way `gunicorn` is gracefully restarted, only the workers, not master, are recreated.
2020-12-28 12:46:42 +01:00
Fred 157776b35d Move files and folder for coherence
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2020-12-27 19:35:26 +01:00
Fred f08f54049a Fix some asciidoctor errors
continuous-integration/drone/push Build is failing Details
2020-12-27 19:28:11 +01:00
Fred 85befe2b7e Add some todos :-)
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2020-12-27 19:08:59 +01:00
Fred 716983c2a4 Add Expert Python Programming to resources
continuous-integration/drone/push Build is passing Details
2020-12-26 21:01:29 +01:00
Fred c2e51df127 Finalize Vagrant configuration file
continuous-integration/drone/push Build is passing Details
But I did not tested it yet :-p
It will be done as soon as Virtualbox will be up and running
on the host.
2020-12-26 20:58:35 +01:00
Fred 873676fb61 Remove unknown parameters
Current documentation talks about --name and --extension
but I don't really know what this is about.

References:
* https://docs.djangoproject.com/en/3.1/ref/django-admin/
2020-12-26 20:25:13 +01:00
Fred 65001f1a12 Add a basic 'setup.cfg' configuration file
continuous-integration/drone/push Build is passing Details
And add --template when using startproject command.
2020-12-24 19:41:26 +01:00
Fred 507501c555 A little reminder to fetch database backup
continuous-integration/drone/push Build is passing Details
2020-12-23 20:37:49 +01:00
Fred 30512fce2e Add a lot about Heroku
continuous-integration/drone/push Build is passing Details
But the deployment steps still need clarification.
For now, we just have a new app with database and backups.

Refs: #10
2020-12-21 21:26:39 +01:00
Fred 1027f5fc44 Describe Mypy
continuous-integration/drone/push Build is passing Details
2020-12-19 20:54:09 +01:00
Fred 4655ab2a57 Add resources
continuous-integration/drone/push Build is passing Details
2020-12-19 17:37:55 +01:00
Fred e324810894 Describe how changes are threated by Git
continuous-integration/drone/push Build is passing Details
2020-12-19 16:42:39 +01:00
Fred 659a3b24ba Change UTF8 user icon
continuous-integration/drone/push Build is passing Details
2020-12-19 16:29:23 +01:00
Fred ec7d5825de Explains a basic Django cycle
continuous-integration/drone/push Build is passing Details
2020-12-18 21:35:00 +01:00
Fred Pauchet efdcda2ec2 Add a global 'how it works' schema
continuous-integration/drone/push Build is passing Details
2020-12-17 21:32:07 +01:00
Fred Pauchet fdea1e535c Describe tox.ini file 2020-12-17 20:55:53 +01:00
Fred Pauchet a82558a141 Wrong [source,<type>] 2020-12-17 20:18:15 +01:00
Fred cb01c70628 Just a quick reminder to talk about 'good commit msg'
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2020-12-16 21:36:54 +01:00
Fred 86bd6fbfda Move several files to make 'django' section more consistent
* Delete venvs.adoc and merge it with 'working in isolation'
* Delete tools.adoc and merge it with 'the python language'
* Move migrations to django concepts
* Move unit_tests to django concepts
2020-12-16 21:33:45 +01:00
Fred 40c01c9a87 Refactors 2 diagrams (gwift & khana) to match django apps 2020-12-16 20:22:28 +01:00
Fred Pauchet 2cc3c152bd Reread Django part 1
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details
2020-12-15 21:37:26 +01:00
Fred b98cc1ef3b Review django installation part
continuous-integration/drone/push Build is passing Details
2020-12-15 20:55:13 +01:00
Fred Pauchet b44b60dccc Rewrite a little bit of 'working in isolation'
continuous-integration/drone/push Build is passing Details
2020-12-15 17:04:33 +01:00
Fred Pauchet 90289b4444 Delete (and integrate) external_tools and python.adoc 2020-12-15 16:59:33 +01:00
Fred Pauchet 38ac5be636 Delete documentation.adoc
continuous-integration/drone/push Build is passing Details
2020-12-15 16:56:20 +01:00
Fred Pauchet 790f774eb9 Write "documentation" section 2020-12-15 16:41:40 +01:00
Fred Pauchet f4dd9633be Finalize git (with examples)
continuous-integration/drone/push Build is failing Details
2020-12-15 13:15:14 +01:00
Fred Pauchet ee29769649 Finalize Git review 2020-12-15 13:10:07 +01:00
Fred 89f032228f Review SOLID (but still needs some work)
continuous-integration/drone/push Build is passing Details
2020-12-14 21:09:20 +01:00
Fred 7ff40c4167 Review 'building maintainable applications'
continuous-integration/drone/push Build is passing Details
2020-12-14 20:34:39 +01:00
Fred c8237667fe Finish a full review of part 1 - 12 factors
continuous-integration/drone/push Build is passing Details
2020-12-14 20:21:22 +01:00
Fred 124111f110 Add a new diagram for a basic git workflow
continuous-integration/drone/push Build is passing Details
2020-12-14 13:56:05 +01:00
Fred Pauchet c32140eb3f Review 12 factors -> #7
continuous-integration/drone/push Build is passing Details
2020-12-13 21:30:00 +01:00
Fred Pauchet caecdcf428 Rework introduction 2020-12-13 15:02:24 +01:00
Fred 9ef2a9e2b7 Mise à jour de 'source/part-3-django-concepts/queryset.adoc'
continuous-integration/drone/push Build is passing Details
2020-12-04 11:28:53 +01:00
Fred cd371ceb57 Ajouter 'source/part-3-django-concepts/queryset.adoc'
continuous-integration/drone/push Build is passing Details
2020-12-04 11:13:06 +01:00
Fred ff8b436fb9 Mise à jour de 'source/part-3-django-concepts/logging.adoc'
continuous-integration/drone/push Build is passing Details
2020-11-30 16:11:04 +01:00
Fred Pauchet d087f0726b Include images :D
continuous-integration/drone/push Build is passing Details
2020-11-28 21:58:58 +01:00
Fred Pauchet ca4451cc24 Include images :D 2020-11-28 21:57:42 +01:00
Fred Pauchet e110d9338d Still need to talk about Let's encrypt...
continuous-integration/drone/push Build is passing Details
2020-11-27 22:20:38 +01:00
Fred Pauchet 6236d5d52a Prepare battlefield for debian deployment
continuous-integration/drone/push Build is passing Details
2020-11-27 22:19:47 +01:00
Fred Pauchet 05166ccb87 Merge from master 2020-11-27 21:57:24 +01:00
Fred Pauchet cf1a7f2c1a Rework deployment
continuous-integration/drone/push Build is passing Details
2020-11-24 21:40:34 +01:00
fred ecad0cfe23 Mise à jour de 'source/part-3-django-concepts/models.adoc' 2020-09-13 19:23:17 +02:00
fred 4eea327af1 Mise à jour de 'source/part-3-django-concepts/models.adoc' 2020-09-13 19:21:32 +02:00
fred 585d4b3b7e Mise à jour de 'source/part-3-django-concepts/models.adoc' 2020-09-13 19:20:38 +02:00
fred 87438b6892 Ajouter 'source/part-2-deployment/docker.adoc' 2020-09-13 16:27:48 +02:00
fred 3f220a82b8 Mise à jour de 'source/part-3-django-concepts/templates.adoc' 2020-09-13 16:23:59 +02:00
fred 777f5a89b2 Mise à jour de 'source/part-3-django-concepts/models.adoc' 2020-09-11 15:18:43 +02:00
Fred Pauchet aff3366c0c Integrates Gwift right into Django-concepts, for a better illustration. 2020-09-08 20:32:34 +02:00
Fred Pauchet 49bce428c8 Finalises 12factors explanation. 2020-09-04 21:58:11 +02:00
Fred Pauchet 624e9318ba Continues to describe the 12 factors. 2020-09-03 21:36:17 +02:00
Fred Pauchet 8d8b6c27a3 Describes 12-factors, maintainable applications and a small introduction to environment. 2020-09-01 21:52:29 +02:00
Fred Pauchet 7a37981d10 Describes the environment. 2020-09-01 21:24:46 +02:00
Fred Pauchet bb7743459d Merges from master. 2020-08-31 21:45:56 +02:00
Fred Pauchet 6da434459b Adds a bunch of modification based
on GNU/Linux Magazine HS 109.
2020-08-31 21:42:20 +02:00
fred 951ecf07e3 Mise à jour de 'source/part-2-deployment/infrastructure.adoc' 2020-08-15 19:32:20 +02:00
fred b88aa51034 Mise à jour de 'source/part-2-deployment/00-main.adoc' 2020-05-02 16:43:16 +02:00
fred ca8b440c40 Supprimer 'source/part-2-deployment/voir-aussi.md' 2020-05-02 10:33:45 +02:00
fred e8876dcb2c Ajouter 'source/part-2-deployment/voir-aussi.md' 2020-05-02 10:30:40 +02:00
fred 55ebb3ca1d Mise à jour de 'source/part-3-django-concepts/template-tag.adoc' 2020-04-24 10:52:30 +02:00
fred e30149881d Mise à jour de 'source/part-1-workspace/unit_tests.adoc' 2020-04-22 07:32:04 +02:00
fred 40c1f97264 Mise à jour de 'source/part-9-bonus/00-main.adoc' 2020-04-19 19:06:01 +02:00
Fred Pauchet 43ea71941a structure architecture and software flow 2020-04-14 21:49:49 +02:00
Fred Pauchet 050b241646 switch pdf text admonitions to font awesome 2020-04-14 21:49:20 +02:00
Fred fadd7c592d fixing part-3-django content 2020-04-13 15:01:36 +02:00
Fred fec56cfb3d fetch old django content 2020-04-12 20:36:46 +02:00
Fred 326b3571b8 change makefile to delete sphinx and switch to asciidoc 2020-04-11 21:36:03 +02:00
Fred f0e3735fb3 working on models, admin and forms 2020-04-11 21:28:52 +02:00
Fred f28c650446 finished reviewed of part 2 - deployment 2020-04-11 10:23:57 +02:00
Fred b422705c44 fetch texts for unit tests 2020-04-11 09:27:05 +02:00
Fred b8531ae8f1 reorganize files 2020-04-11 09:23:28 +02:00
fred d00c494614 Mise à jour de 'source/part-1-workspace/django.adoc' 2020-04-10 11:06:32 +02:00
fred 61ae47499c Mise à jour de 'source/part-2-deployment/centos+debian.adoc'
Ajout d'un paragraphe sur la rotation des logs
2020-04-10 07:31:44 +02:00
fred 5e4f994671 Mise à jour de 'source/part-1-workspace/unit_tests.adoc' 2020-04-08 14:25:35 +02:00
fred 7fe206cfec Mise à jour de 'source/part-1-workspace/tools.adoc' 2020-04-06 13:32:31 +02:00
Fred ccf93ae1bd working on django 2020-04-05 11:49:29 +02:00
Fred 0ea6737d3b rework part1 2020-04-05 11:26:19 +02:00
Fred a88c816fb8 Merge branch 'master' of grimbox.be:fred/gwift-book 2020-04-04 21:48:03 +02:00
Fred 5ea82e0af6 reworks parts 2020-04-04 21:47:53 +02:00
fred 43a4109dc5 Ajouter 'source/django/template-tag.adoc' 2020-03-20 15:50:32 +01:00
fred 73cd400f30 Mise à jour de 'source/django/auth.adoc' 2020-03-20 14:05:07 +01:00
Fred 5a027cba52 rst - adoc 2020-02-17 20:45:39 +01:00
Fred Pauchet 8eb38628d0 finish migration to adoc 2020-02-16 21:11:51 +01:00
Fred Pauchet 3b60990c13 migrate rst structure to adoc 2020-02-14 21:31:08 +01:00
Fred 3e652d3371 resplit parts & chapters 2020-02-03 21:53:04 +01:00
fred 1eb53515c2 Mettre à jour 'source/logging/logging.md' 2018-11-14 10:50:12 +00:00
fred 20e7680f2c Ajouter 'source/logging/logging.md' 2018-11-14 10:46:34 +00:00
fred 25695ac3fc Mettre à jour 'source/admin/advices.rst' 2018-10-01 09:34:44 +00:00
fred 7685f2ea9b Ajouter 'source/orm/queryset.rst' 2018-10-01 06:40:52 +00:00
Fred Pauchet 79d55a73e7 working on models, modelmanager and text presentation 2017-03-19 21:07:14 +01:00
Fred Pauchet f8b948e769 finish first pass rereading for the 1st chapter 2017-03-19 20:40:48 +01:00
Fred Pauchet cd9bf4beed complete introduction and add todo on venvs 2017-03-19 20:24:15 +01:00