Q: Django table column is a number Is there a way if a database column uses a number (0,1,2,3,4,5) to set it up as Django model? The database is already created with mongoDB, so I can't make any changes to it, so any easy/fast workaround?

A: You can set up a Django model with different field names and set db_column param to each field so that it corresponds to the database column name. For example:
class Example(models.Model):
    firstField = models.IntegerField(db_column='0')
    secondField = models.CharField(db_column='1')
    ...


A: No you can not assign to literals in Python. You could prefix the column names while creating the fields, e.g. _0, but generally a number isn't considered a good field name
