2022-04-02 20:40:21 +02:00
|
|
|
## Settings and upgrades
|
|
|
|
|
|
|
|
Almost everything related to django-fritzconnection's configuration is handled in a `"../conf/settings.py"` file.
|
2024-08-27 20:51:05 +02:00
|
|
|
You can edit the file `/home/yunohost.app/django-fritzconnection/local_settings.py` to enable or disable features.
|
2022-04-02 20:40:21 +02:00
|
|
|
|
2024-08-27 20:51:05 +02:00
|
|
|
Test sending emails, e.g.:
|
2022-04-02 20:40:21 +02:00
|
|
|
|
|
|
|
```bash
|
|
|
|
ssh admin@yourdomain.tld
|
2024-08-27 20:51:05 +02:00
|
|
|
root@yunohost:~# /home/yunohost.app/django-fritzconnection/manage.py sendtestemail --admins
|
2022-04-02 20:40:21 +02:00
|
|
|
```
|
|
|
|
|
2024-08-27 20:51:05 +02:00
|
|
|
How to debug a django YunoHost app, take a look into:
|
2022-04-02 20:40:21 +02:00
|
|
|
|
2024-08-27 20:51:05 +02:00
|
|
|
* https://github.com/YunoHost-Apps/django-fritzconnection_ynh#developer-info
|
2022-04-02 20:40:21 +02:00
|
|
|
|
|
|
|
## local test
|
|
|
|
|
2024-08-27 20:51:05 +02:00
|
|
|
For quicker developing of djfritz_ynh in the context of YunoHost app,
|
2022-04-02 20:40:21 +02:00
|
|
|
it's possible to run the Django developer server with the settings
|
|
|
|
and urls made for YunoHost installation.
|
|
|
|
|
|
|
|
e.g.:
|
|
|
|
```bash
|
2024-08-27 20:51:05 +02:00
|
|
|
~$ git clone https://github.com/YunoHost-Apps/django-fritzconnection.git
|
|
|
|
~$ cd djfritz_ynh/
|
|
|
|
~/django-fritzconnection$ ./dev-cli.py --help
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
The output will looks like:
|
|
|
|
|
|
|
|
[comment]: <> (✂✂✂ auto generated help start ✂✂✂)
|
|
|
|
```
|
|
|
|
Usage: ./dev-cli.py [OPTIONS] COMMAND [ARGS]...
|
|
|
|
|
|
|
|
╭─ Options ────────────────────────────────────────────────────────────────────────────────────────╮
|
|
|
|
│ --help Show this message and exit. │
|
|
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
|
|
╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────╮
|
|
|
|
│ check-code-style Check code style by calling darker + flake8 │
|
|
|
|
│ coverage Run tests and show coverage report. │
|
|
|
|
│ diffsettings Run "diffsettings" manage command against a "local_test" YunoHost │
|
|
|
|
│ installation. │
|
|
|
|
│ fix-code-style Fix code style of all your_cool_package source code files via darker │
|
|
|
|
│ install Run pip-sync and install 'djfritz_ynh' via pip as editable. │
|
|
|
|
│ local-test Build a "local_test" YunoHost installation and start the Django dev. │
|
|
|
|
│ server against it. │
|
|
|
|
│ mypy Run Mypy (configured in pyproject.toml) │
|
|
|
|
│ pip-audit Run pip-audit check against current requirements files │
|
|
|
|
│ publish Build and upload this project to PyPi │
|
|
|
|
│ test Compile YunoHost files and run Django unittests │
|
|
|
|
│ tox Run tox │
|
|
|
|
│ update Update "requirements*.txt" dependencies files │
|
|
|
|
│ update-test-snapshot-files Update all test snapshot files (by remove and recreate all snapshot │
|
|
|
|
│ files) │
|
|
|
|
│ version Print version and exit │
|
|
|
|
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
|
|
```
|
|
|
|
[comment]: <> (✂✂✂ auto generated help end ✂✂✂)
|