35👍
✅
Try using BigIntegerField if you integers are that big. From the documentation:
A 64 bit integer, much like an IntegerField except that it is guaranteed to fit numbers from -9223372036854775808 to 9223372036854775807. The admin represents this as an
<input type="text">
(a single-line input).
1👍
Try this
Change models.IntegerField() to models.BigIntegerField()
class TableName(models.Model):
ColumnName= models.BigIntegerField(default=0)
- [Django]-How do I set a default, max and min value for an integerfield Django?
- [Django]-Create if doesn't exist
- [Django]-Large Django application layout
1👍
Do not forget to migrate the changes you did, otherwise it will not work
python manage.py migrate
python manage.py makemigrations
- [Django]-Collectstatic error while deploying Django app to Heroku
- [Django]-What's wrong with "magic"?
- [Django]-Use get_queryset() method or set queryset variable?
Source:stackexchange.com