[Answered ]-Where to save the custom field class in django?

2👍

That answer assumes that you have a Python file named fields.py in a package named custom under your project root. ie:

/project root
---manage.py
---/custom
------__init__.py
------fields.py

You can put your fields.py under any existing app and import from that location. For example, if you have an app called myapp, you can put the fields.py under that package and rewrite your import statement as:

from myapp.fields import SeparatedValuesField 
👤Selcuk

Leave a comment