initial commit
This commit is contained in:
85
README.rst
Normal file
85
README.rst
Normal file
@@ -0,0 +1,85 @@
|
||||
Project success_diag_20260222053525
|
||||
===================================
|
||||
|
||||
About success_diag_20260222053525
|
||||
---------------------------------
|
||||
Ocyan project: success_diag_20260222053525
|
||||
|
||||
Installation
|
||||
------------
|
||||
Create a virtualenv, you only need to do this once for each project::
|
||||
|
||||
mkvirtualenv success_diag_20260222053525
|
||||
|
||||
Next build the project, by installing dependencies and creating the database::
|
||||
|
||||
make
|
||||
|
||||
Running
|
||||
-------
|
||||
Activate the virtualenv::
|
||||
|
||||
workon success_diag_20260222053525
|
||||
|
||||
You can see which virtualenv is activated, because your
|
||||
terminal will be prefixed with (success_diag_20260222053525).
|
||||
|
||||
Next start the development server::
|
||||
|
||||
make run
|
||||
|
||||
Testing
|
||||
-------
|
||||
Testing is done with the default Django testing capabilities. Check the 'Testing in Django' chapter in Django documentation for details.
|
||||
|
||||
To run the tests, issue the following command::
|
||||
|
||||
make test
|
||||
|
||||
Linting
|
||||
-------
|
||||
Source code is formatted using the `black`[1] formatter in its default settings. Installing format-on-save support for your editor is highly recommended.
|
||||
`Pylint`[2] is used for source code analysis.
|
||||
All utilities are installed via the test extra. This extra is installed by default when using the Makefile.
|
||||
|
||||
The following command check style and syntax::
|
||||
|
||||
make lint
|
||||
|
||||
|
||||
1. black: https://pypi.org/project/black/
|
||||
2. pylint: https://pypi.org/project/pylint/
|
||||
|
||||
Edit template translation
|
||||
-------------------------
|
||||
The translation in templates
|
||||
|
||||
Activate the virtualenv::
|
||||
|
||||
workon success_diag_20260222053525
|
||||
|
||||
Create the locale directory in the root of the project::
|
||||
|
||||
mkdir success_diag_20260222053525/locale
|
||||
|
||||
Go in the project_name directory::
|
||||
|
||||
cd success_diag_20260222053525/
|
||||
|
||||
Run this command to create a file with all translatable strings in the project (note: this is only for the dutch translations)::
|
||||
|
||||
manage.py makemessages -l nl
|
||||
|
||||
Go to your text editor and go in this file::
|
||||
|
||||
success_diag_20260222053525/success_diag_20260222053525/locale/nl/LC_MESSAGES/django.po
|
||||
|
||||
This file will have all of the translations some will be correct and dont need to be chanced
|
||||
|
||||
Edit all the translations u want to change
|
||||
Delete all of the translation u dont want to chance
|
||||
save file
|
||||
|
||||
Apply the translations::
|
||||
|
||||
manage.py compilemessages
|
||||
Reference in New Issue
Block a user