R
R
Robin Alikhanov2019-05-30 14:20:58
Django
Robin Alikhanov, 2019-05-30 14:20:58

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

1 answer(s)
L
Lighter Ilya, 2019-05-30
@robin1985

Try changing the owner of the directory where the project is stored viachown

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question