Quick question: is it a good idea to use sqlite while developing a Django project, and use MySQL on the production server?
It is not impossible to use Django with Sqlite as database in production, primarily depending on your website/webapp traffic and how hard you hit your db (alongside what kind of operations you perform on it i.e. reads/writes/etc).
The biggest problem with using SQLite in production is disaster recovery. If your server dies, so does your data. That's… not good. Other database servers have replication so they can stream database changes to another server in case one goes down.
I'd highly recommend using the same database backend in production as in development, and all stages in between. Django will abstract the database stuff, but having different environments will leave you open to horrible internationalisation, configuration issues, and nasty tiny inconsistencies that won't even show up until you push it live.
Personally, I'd stick to mysql, but I never got on with postgres :)
I second all previous answers, adding some explicit reasons:
And you can even try to compete with SQLite in terms of speed, take a look at my answer for other question:
Increase speed for MySQL table creation in Django?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With