if employee_pk is not None:
self.fields['technology'].queryset = Technology.objects.exclude(
skill__employee_id=employee_pk
).order_by('name')
self.fields['technology'].queryset = Technology.objects.filter(group__name="Framework")
You are trying to change the nullable field 'group' on technology to non-nullable without a default; we can't do that (the database needs something to populate existing rows).
Please select a fix:
1) Provide a one-off default now (will be set on all existing rows with a null value for this column)
2) Ignore for now, and let me handle existing rows with NULL myself (e.g. because you added a RunPython or RunSQL operation to handle NULL values in a previous data migration)
3) Quit, and let me add a default in models.py
Я делал ini файл
и добавлял системный Unit-файл для uWSGI командой
sudo nano /etc/systemd/system/uwsgi.service
uwsgi.services
И в конфиге Nginx прописывал ссылку на ini файл