Hi I would like to add another selection field to the findings. For this I have extended the models.py file:
exploitable = models.BooleanField(default=True,
verbose_name=('Exploitable'),
help_text=("Indicates whether this vulnerability is exploitable or not."))
now if i try to run makemigrations as follows:
"docker-compose exec -it uwsgi ./manage.py makemigrations"
I get the following error message:
Migrations for 'dojo':
dojo/db_migrations/0190_finding_exploit.py
- Add field exploit to finding
Traceback (most recent call last):
File "/app/./manage.py", line 11, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/init.py", line 446, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/init.py", line 440, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 402, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 448, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 96, in wrapped
res = handle_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/commands/makemigrations.py", line 239, in handle
self.write_migration_files(changes)
File "/usr/local/lib/python3.11/site-packages/django/core/management/commands/makemigrations.py", line 279, in write_migration_files
with open(writer.path, "w", encoding="utf-8") as fh:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/app/dojo/db_migrations/0190_finding_exploit.py'
Who can help me?
Best regards
Hi I would like to add another selection field to the findings. For this I have extended the models.py file:
exploitable = models.BooleanField(default=True,
verbose_name=('Exploitable'),
help_text=("Indicates whether this vulnerability is exploitable or not."))
now if i try to run makemigrations as follows:
"docker-compose exec -it uwsgi ./manage.py makemigrations"
I get the following error message:
Migrations for 'dojo':
dojo/db_migrations/0190_finding_exploit.py
- Add field exploit to finding
Traceback (most recent call last):
File "/app/./manage.py", line 11, in
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/init.py", line 446, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.11/site-packages/django/core/management/init.py", line 440, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 402, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 448, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/base.py", line 96, in wrapped
res = handle_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/django/core/management/commands/makemigrations.py", line 239, in handle
self.write_migration_files(changes)
File "/usr/local/lib/python3.11/site-packages/django/core/management/commands/makemigrations.py", line 279, in write_migration_files
with open(writer.path, "w", encoding="utf-8") as fh:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/app/dojo/db_migrations/0190_finding_exploit.py'
Who can help me?
Best regards