Thanks a lot! Solved my
django.db.utils.IntegrityError: Problem installing fixture ... duplicate
key value violates unique constraint
problem :)
W dniu wtorek, 5 maja 2020 18:24:12 UTC+2 użytkownik marc bellazzini
napisał:
>
> SOLVED
>
> # after more extensive googling .
>
> ORIGINAL SE
SOLVED
# after more extensive googling .
ORIGINAL SERVER
- cd to your web project directory
- python manage.py dumpdata > db.json
NEW SERVER
- sftp db.json file to new server web project directory
- python manage.py migrate
- python manage.py shell
-- >> from django.contrib.contenttypes.mode
SOLVED
# after more extensive googling I found a solution myself. I hope this
helps someone else
ORIGINAL SERVER
- cd to your web project directory
- python manage.py dumpdata > db.json
- python manage.py migrate
- python manage.py shell
-- >> from django.contrib.contenttypes.models import
Hello,
I have Django 2.x running on an old Ubuntu server with a MySQL database. I
have installed a new Ubuntu 20.04 server on another machine with Django 3.x
and MySQL. I would like to backup the old Django/mysql database and restore
it on the new server. What is the best practice for doing th
4 matches
Mail list logo