Skip to content

Tag: django

Python Django Beginner: can’t open manage.py

Trying to get started with Django on pycharm. But I get this error message whenever i run manage.py: C:UsersVinceAppDataLocalProgramsPythonPython37-32python.exe: can’t open file ‘manage.py’: [Errno 2] No such file or directory I do have a django directory opened with a manage.py file in it. …

dictionary update sequence element #0 has length 0; 2 is required

I was working on my project and everthing worked fine. I tried to open the server in another browser and this error appeared. I stopped the project and start it agian and it stop working on my main browser aswell. I dont have any idea what this cause it. If there is any other information that you need tell me…

Django model saves when it shouldn’t

I’m trying to set custom validation rules on my Django models. I have the following code: Entity.py Security.py What I’m trying to do is to prevent a Security from being saved if its field entities holds more than 1 company. The entities field is a ManyToMany relationship with Entity, as it can ho…