Skip to content

Commit

Permalink
tweak django example
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Apr 9, 2024
1 parent ace2990 commit c7851e1
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions examples/python-django/devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@ let
db_name = "db";
in
{
packages = [ pkgs.git pkgs.postgresql_14 ];

languages.python = {
enable = true;
package = pkgs.python310;
version = "3.11";
poetry.enable = true;
};

Expand All @@ -29,15 +27,11 @@ in
listen_addresses = db_host;
};

processes = {
runserver.exec = ''
python manage.py runserver
'';
};
processes.runserver.exec = "python manage.py runserver";
processes.runserver.process-compose.depends_on.postgres.condition = "process_ready";

enterTest = ''
wait_for_port ${db_port}
python manage.py test
'';

}

0 comments on commit c7851e1

Please sign in to comment.