elfs: (Default)
[personal profile] elfs

We all know the drill with MySQL and Django.  You have a dev database, probably compressed, and you need to roll it out so your server’s in a “pristine” state before you start running migrations and adding stuff.  And the routine typically looks something like this: gzip -dc dev_database.gz | mysql -u djanguser -p djangodb.  It is also perfectly legitimate (and less error-prone) with Django to do this instead: gzip -dc dev_database.gz | ./manage.py dbshell.

Yes, that’s painfully obvious. But sometimes, we miss the painfully obvious.

This entry was automatically cross-posted from Elf's technical journal, ElfSternberg.com

Profile

elfs: (Default)
Elf Sternberg

February 2026

S M T W T F S
1234567
891011121314
151617181920 21
22232425262728

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Feb. 21st, 2026 08:23 pm
Powered by Dreamwidth Studios