Open MrAch26 opened 3 years ago
Issue-Label Bot is automatically applying the label question
to this issue, with a confidence of 0.75. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
You need to inherit from firebase_orm.models
Calling save on the object should create it in firestore
python manage.py makemigrations does nothing... database migrations are only relevant for sql databases
Ok this is my model :
class Customer(models.Model):
name = models.TextField()
type_customer = models.TextField(db_column='type')
class Meta:
db_table = 'medications'
and the object i created is `Customer(name='daniel')
when i do a.save()
i get this error -->
Hi I am trying to use the package but not quite sure that I am using it well... I have configured FIREBASE_ORM_CERTIFICATE and FIREBASE_ORM_BUCKET_NAME correctly but when I'm trying to use it in models and then python manage.py makemigrations nothing happened.... Do I need to use Firebase.ORM.models instead of django.db.models ? Or simply create another models.py ? Do I need to create the collections in firestore before creating it ? Do I need to change something with the database settings ? I hope what I am saying make sense I believe I am still a beginner in Django Thanks a lot in advance for the help Best Daniel