Answer the question
In order to leave comments, you need to log in
In an attempt to write a readonly database via terminal when creating an object?
In general, the essence of the problem.
There is a django project. There is an application inside the project.
Inside the application, in the Models (model) file, there are two classes.
I run Conemu as an admin and enter the project folder.
all commands like :
python manage.py runserver etc. commands work
The database is created, the migration was carried out without problems
using the commands
python manage.py makemigrations
python manage.py migrate I
run
python manage.py shell
in it and create a class object in the Models file using the
people command = People(here are the characteristics according to the class)
people.save()
And here is the error
In attempt to write a readonly database that there is no access, although the migration was carried out without problems.
I went into the properties of the folder, there seems to be access.
Conemu ran as admin. Why there are not enough rights I can not understand.
Answer the question
In order to leave comments, you need to log in
Try changing the owner of the directory where the project is stored viachown
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question