How to Migrate Data from SQLite to PostgreSQL in Django

Поділитися
Вставка
  • Опубліковано 5 січ 2025

КОМЕНТАРІ •

  • @SpRaT92
    @SpRaT92 Місяць тому

    you're a lifesaver! thank you so much!

  • @adrianwafula8667
    @adrianwafula8667 Рік тому

    This is a good video, although my data.json didnt load i learnt smth! suscribed for sure

  • @TDD_SA
    @TDD_SA Рік тому

    Thanks man, that was very simple and straightforward..I hope to see videos like this in future 🔮

  • @mystoryuganda
    @mystoryuganda 2 роки тому

    Thank you for sharing, am learning something from your channel

  • @samitpaudel7886
    @samitpaudel7886 Рік тому

    Thanks works perfectly fine!

  • @gencaypolat8901
    @gencaypolat8901 2 роки тому

    Thank you man!

  • @frameff9073
    @frameff9073 2 роки тому

    Thank you

  • @infohub3709
    @infohub3709 2 роки тому

    Thanks for sharing bro. But please, I encountered this (UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 0: invalid start byte) error when I ran the code "python manage.py loaddata data.json". Anyway around this please?

    • @CodeWithClinton
      @CodeWithClinton  2 роки тому

      Make sure you are working on 'utf-8'

    • @infohub3709
      @infohub3709 2 роки тому

      @@CodeWithClinton that's the problem. Working in UTF-8 gave me the error. But changing to UTF-16 solved the problem for me.

    • @CodeWithClinton
      @CodeWithClinton  2 роки тому

      @@infohub3709 Wow, 'utf-16' caused me some errors. 😅😅. Thank God your code is working.

    • @robinsonbrz
      @robinsonbrz 2 роки тому

      @@infohub3709 I had the same problem, even using UTF-8 importing and exporting. I solve the problem opening the data.json on notepad and saving the file as UTF8. That way loaddata worked just fine. All the tutorial worked perfect. thanks to @Code With Clinton .

  • @JoseAntonio-sn6sf
    @JoseAntonio-sn6sf Рік тому

    how to migrate from postgresql to sqlite3?