We have a group project we are working in college and opted for Django and Firebase. We used the polls guide Writing your first Django app, part 2 | Django documentation | Django to get started and all is well up until part two where it begins to introduce SQLlite - but we want to use Firebase and then tried watching a few youtube tutorials but it does not work and it is clear to me we are probably missing a large chunk of configuration between the step we had reached in the initial polls guide and the youtube firebase+Django tutorial.
If anyone has had experience doing this it would be great for some assistance. Thanks in advance. Also, apologies in advance if this question is totally out of place we are knew to everything here.
<opinion> Personally, I find Django to be so very tightly tied to the relational DB model that I wouldn’t have any interest in even trying to use a NoSQL database as anything other than a secondary data store. I wouldn’t say your question is “out of place” - it’s definitely not because a lot of people have expressed using NoSQL databases with Django. It’s just that there’s a fundamental mis-match between the goals and objectives of each and I’ve yet to see any reasoning as to why this combination would create a desirable solution. <opinion>
Yes I see what you are saying. The reason for Firebase is purely because it allows us to host our web application as well as provide a database all in one. It is convenient for these small college projects. Personally I would prefer to use just a relation database and host it elsewhere but Firebase offers so much in terms of convenience and it should come in helpful. We could just be making a mistake here in how we are going about the project also. It is an “all in one” approach we were hoping that firebase would offer and coupled with Django we would have our front and backend taken care of. Thanks for tip we will look into it!
Yes I see what you are saying. The reason for Firebase is purely because it allows us to host our web application as well as provide a database all in one. It is convenient for these small college projects.
Personally I would prefer to use just a relation database and host it elsewhere but Firebase offers so much in terms of convenience and it should come in helpful. We could just be making a mistake here in how we are going about the project also.
It is an “all in one” approach we were hoping that firebase would offer and coupled with Django we would have our front and backend taken care of. Thanks for tip we will look into it!
This is a couple of years too late, but in case it helps anyone, you can deploy Django with Postgres for free on Fly.io either with their Postgres databases or something like Neon Postgres.
If you want a separate frontend, try Astro with Django REST Framework on the backend. Astro can fetch from DRF with client-side JavaScript or on the backend if you run it in SSR mode. Astro can be hosted on Firebase Hosting or somewhere like Fly.io.