Fediversity/panel
Valentin Gagarin 92563d387a test login/logout redirection (#163)
this concludes Fediversity/Fediversity#72 with a test covering most of the user story.

test in the devshell:
```
manage test panel
```

test in full isolation:
```
nix-build -A tests
```

Reviewed-on: Fediversity/Fediversity#163
Reviewed-by: kiara Grouwstra <kiara@procolix.eu>
2025-02-19 23:07:51 +01:00
..
nix test login/logout redirection (#163) 2025-02-19 23:07:51 +01:00
src test login/logout redirection (#163) 2025-02-19 23:07:51 +01:00
.envrc add .envrc files 2025-02-13 14:48:21 +01:00
.gitignore scaffold Django web service 2025-02-13 00:26:28 +01:00
default.nix scaffold Django web service 2025-02-13 00:26:28 +01:00
README.md add debug toolbar 2025-02-18 18:25:37 +01:00
shell.nix scaffold Django web service 2025-02-13 00:26:28 +01:00

Fediversity Panel

The Fediversity Panel is a web service for managing Fediversity deployments with a graphical user interface, written in Django.

Development

  • To obtain all tools related to this project, enter the development environment with nix-shell.

    If you want to do that automatically on entering this directory:

    • Set up direnv

    • Run direnv allow in the directory where repository is stored on your machine

      Note

      This is a security boundary, and allows automatically running code from this repository on your machine.

  • Run NixOS integration tests and Django unit tests:

    nix-build -A tests
    
  • List all available Django management commands with:

    manage
    
  • With a fresh database, run:

    manage migrate
    
  • Run the server locally:

    manage runserver
    
  • Create an admin user:

    manage createsuperuser
    

    and log in at http://localhost:8000/admin.

  • After changing the database schema, add migrations and apply them:

    manage makemigrations
    manage migrate
    
  • Use the Django Debug Toolbar for troubleshooting in the browser