Project Development
Version 27 (Etienne Pallier, 03/24/2016 06:32 pm) → Version 28/177 (Etienne Pallier, 03/25/2016 03:22 pm)
h1. Project Development
Project Installation page : [[Project Installation]]
HOWTO Format Redmine Wiki : http://www.redmine.org/projects/redmine/wiki/FrRedmineWikiFormatting
{{>toc}}
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}TODO%
* Preload some data for some tables:
* country
* sequencetype
* ...
* updated et created : champs automatiques Django
* Tester install eclipse from scratch (vérifier qu'on n'a plus besoin de faire "set as pydev" et "set as django" et set DJANGO_MANAGE_LOCATION et set DJANGO_SETTINGS_MODULE)
* Séparation des BD Django et Pyros
* Intégration des modules Django déjà développés
* Intégration continue avec Jenkins (+ run des tests sur une VM Windows)
* Planifier la suite...
* Doc pour le meeting de mai
* pyrossu : pyrossu!
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}LIENS UTILES%
* Liens vers web local :
* homepage: http://localhost:8000
* admin: http://localhost:8000/admin
* Eclipse:
* Shift-Ctrl-f (ou Shift-Cmd-f) : reformatage du fichier selon PEP8
* Shift-Ctrl-1 : make doc string ...
* Django:
* Coding style: https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/
* Git docs:
* Permissions gitlab: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/permissions/permissions.md
* https://git-scm.com/docs
* https://git-scm.com/book/fr/v1/Les-bases-de-Git-Travailler-avec-des-d%C3%A9p%C3%B4ts-distants
* les workflows: https://aresu.dsi.cnrs.fr/spip.php?article219
* Git for Eclipse users : http://wiki.eclipse.org/EGit/Git_For_Eclipse_Users
* Git sur sourcesup (avec jenkins) : https://services.renater.fr/sourcesup/formation/chap04#gestion_d_un_projet_avec_git_jenkins_sonar_et_nexus
* CADOR web interface: http://cador.obs-hp.fr/ros/manual/cador_actions.html
* pylint (analyse de code) : https://www.pylint.org
* pyreverse (uml diagrams generation, inclus dans pylint) : https://www.logilab.org/blogentry/6883
* tox (a generic virtualenv management and test command line tool) : https://testrun.org/tox/latest/index.html
---
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}I - DATABASE SCHEMA (v0.2.1)%
{{thumbnail(PYROS_PDM_v021.png, size=300, title=Pyros data model)}}
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}II - Get the project (from gitlab)%
h3. Gitlab management interface
https://gitlab.irap.omp.eu/epallier/pyros
https://gitlab.irap.omp.eu/epallier/pyros/team
h3. Get the project
https://projects.irap.omp.eu/projects/pyros/wiki/Project_Installation#II-Get-the-project-from-gitlab
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}III - INSTALLATION%
https://projects.irap.omp.eu/projects/pyros/wiki/Project_Installation#III-INSTALLATION
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}IV - CONFIGURATION of the Django Back Office (administration interface)%
[[django_backoffice_config|Configuration of the Django Back office (admin)]]
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}V - EVOLUTION OF THE MODEL%
h3. Linking the User model to the django's one
* Modifications in models.py :
* Rename User model to PyrosUser
* Rename user table name to pyros_user
* Change all occurences (User -> PyrosUser, users -> pyros_users, ...)
* from django.contrib.auth.models import User <== add at the beginning of the file
* user = models.OneToOneField(User, on_delete=models.CASCADE) <== add this field in PyrosUser declaration
* delete fields in PyrosUser : name, firstname, email, login, pass
* Modifications in admin.py :
* Change all occurences (User* -> PyrosUser*, users -> pyros_users, ...)
<pre>
$ python manage.py makemigrations pyrosapp
$ python manage.py migrate
</pre>
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}VI - INSTALLATION FROM THE BEGINNING (for dev only, history of the initial project creation)%
[[pyros_install_from_start|Pyros installation from the beginning]]
Project Installation page : [[Project Installation]]
HOWTO Format Redmine Wiki : http://www.redmine.org/projects/redmine/wiki/FrRedmineWikiFormatting
{{>toc}}
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}TODO%
* Preload some data for some tables:
* country
* sequencetype
* ...
* updated et created : champs automatiques Django
* Tester install eclipse from scratch (vérifier qu'on n'a plus besoin de faire "set as pydev" et "set as django" et set DJANGO_MANAGE_LOCATION et set DJANGO_SETTINGS_MODULE)
* Séparation des BD Django et Pyros
* Intégration des modules Django déjà développés
* Intégration continue avec Jenkins (+ run des tests sur une VM Windows)
* Planifier la suite...
* Doc pour le meeting de mai
* pyrossu : pyrossu!
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}LIENS UTILES%
* Liens vers web local :
* homepage: http://localhost:8000
* admin: http://localhost:8000/admin
* Eclipse:
* Shift-Ctrl-f (ou Shift-Cmd-f) : reformatage du fichier selon PEP8
* Shift-Ctrl-1 : make doc string ...
* Django:
* Coding style: https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/
* Git docs:
* Permissions gitlab: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/permissions/permissions.md
* https://git-scm.com/docs
* https://git-scm.com/book/fr/v1/Les-bases-de-Git-Travailler-avec-des-d%C3%A9p%C3%B4ts-distants
* les workflows: https://aresu.dsi.cnrs.fr/spip.php?article219
* Git for Eclipse users : http://wiki.eclipse.org/EGit/Git_For_Eclipse_Users
* Git sur sourcesup (avec jenkins) : https://services.renater.fr/sourcesup/formation/chap04#gestion_d_un_projet_avec_git_jenkins_sonar_et_nexus
* CADOR web interface: http://cador.obs-hp.fr/ros/manual/cador_actions.html
* pylint (analyse de code) : https://www.pylint.org
* pyreverse (uml diagrams generation, inclus dans pylint) : https://www.logilab.org/blogentry/6883
* tox (a generic virtualenv management and test command line tool) : https://testrun.org/tox/latest/index.html
---
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}I - DATABASE SCHEMA (v0.2.1)%
{{thumbnail(PYROS_PDM_v021.png, size=300, title=Pyros data model)}}
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}II - Get the project (from gitlab)%
h3. Gitlab management interface
https://gitlab.irap.omp.eu/epallier/pyros
https://gitlab.irap.omp.eu/epallier/pyros/team
h3. Get the project
https://projects.irap.omp.eu/projects/pyros/wiki/Project_Installation#II-Get-the-project-from-gitlab
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}III - INSTALLATION%
https://projects.irap.omp.eu/projects/pyros/wiki/Project_Installation#III-INSTALLATION
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}IV - CONFIGURATION of the Django Back Office (administration interface)%
[[django_backoffice_config|Configuration of the Django Back office (admin)]]
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}V - EVOLUTION OF THE MODEL%
h3. Linking the User model to the django's one
* Modifications in models.py :
* Rename User model to PyrosUser
* Rename user table name to pyros_user
* Change all occurences (User -> PyrosUser, users -> pyros_users, ...)
* from django.contrib.auth.models import User <== add at the beginning of the file
* user = models.OneToOneField(User, on_delete=models.CASCADE) <== add this field in PyrosUser declaration
* delete fields in PyrosUser : name, firstname, email, login, pass
* Modifications in admin.py :
* Change all occurences (User* -> PyrosUser*, users -> pyros_users, ...)
<pre>
$ python manage.py makemigrations pyrosapp
$ python manage.py migrate
</pre>
---
h2. %{margin-left:0px; font-weight:bold; font-size:25px; display:block; color:red;}VI - INSTALLATION FROM THE BEGINNING (for dev only, history of the initial project creation)%
[[pyros_install_from_start|Pyros installation from the beginning]]