Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

224
Views
Django, Select model field type based on database backend

I want to select model field type based on database backend. So, for instance, it database backend is SQLite, then field type will be TextField. But if backend is PostgreSQL, then field type will be JSONField. Field name will be the same in all cases. Of course I understand that code processing the field may need branching too, but it is not the problem. Problem is to add field early enough, so that migrations, etc. will work.

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!