I have a container called fabio
inside which I have a django project installed,with the manage
corresponding to its manage.py
.
However when I try
sudo nixos-container run fabio -- sudo -u mysite manage runserver_plus 10.233.2.2:80
[sudo] password di paki:
System check identified some issues:
WARNINGS:
?: (urls.W002) Your URL pattern '/comment' has a route beginning with a '/'. Remove this slash as it is unnecessary. If this pattern is targeted in an include(), ensure the include() pattern has a trailing '/'.
(0.002)
SELECT c.relname,
CASE WHEN c.relispartition THEN 'p' WHEN c.relkind IN ('m', 'v') THEN 'v' ELSE 't' END
FROM pg_catalog.pg_class c
LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind IN ('f', 'm', 'p', 'r', 'v')
AND n.nspname NOT IN ('pg_catalog', 'pg_toast')
AND pg_catalog.pg_table_is_visible(c.oid)
; args=None
(0.001) SELECT "django_migrations"."app", "django_migrations"."name" FROM "django_migrations"; args=()
Traceback (most recent call last):
File "/nix/store/82wxnj0jpadla8fd2fhjfdcjw36iy2yz-lavoro-fabio-git/manage.py", line 17, in <module>
execute_from_command_line(sys.argv)
File "/nix/store/d3j918sarybg6h011bqsf6wk9gz351xh-python3-3.7.6-env/lib/python3.7/site-packages/django/core/management/__init__.py", line 381, in execute_from_command_line
utility.execute()
File "/nix/store/d3j918sarybg6h011bqsf6wk9gz351xh-python3-3.7.6-env/lib/python3.7/site-packages/django/core/management/__init__.py", line 375, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/nix/store/d3j918sarybg6h011bqsf6wk9gz351xh-python3-3.7.6-env/lib/python3.7/site-packages/django/core/management/base.py", line 323, in run_from_argv
self.execute(*args, **cmd_options)
File "/nix/store/d3j918sarybg6h011bqsf6wk9gz351xh-python3-3.7.6-env/lib/python3.7/site-packages/django/core/management/base.py", line 364, in execute
output = self.handle(*args, **options)
File "/nix/store/d3j918sarybg6h011bqsf6wk9gz351xh-python3-3.7.6-env/lib/python3.7/site-packages/django_extensions/management/utils.py", line 62, in inner
ret = func(self, *args, **kwargs)
File "/nix/store/d3j918sarybg6h011bqsf6wk9gz351xh-python3-3.7.6-env/lib/python3.7/site-packages/django_extensions/management/commands/runserver_plus.py", line 262, in handle
self.inner_run(options)
File "/nix/store/d3j918sarybg6h011bqsf6wk9gz351xh-python3-3.7.6-env/lib/python3.7/site-packages/django_extensions/management/commands/runserver_plus.py", line 388, in inner_run
ssl_context=ssl_context,
File "/nix/store/d3j918sarybg6h011bqsf6wk9gz351xh-python3-3.7.6-env/lib/python3.7/site-packages/werkzeug/serving.py", line 988, in run_simple
s.bind(server_address)
PermissionError: [Errno 13] Permission denied
Where am I doing wrong?