-1

I am working on Atom Editor on MacOS,

The first few lines in 'db.sqlite':

SQLite format 3@  & :&.���
D�
/O  �X9c��!d��O-�1indexauth_user_groups_user_id_6a12ed8bauth_user_groupsCREATE

How to display the ���?

AbstProcDo
  • 19,953
  • 19
  • 81
  • 138

1 Answers1

2

You shouldn't open the db.sqlite file in a text editor, try deleting the file and run

python manage.py migrate

again. It should recreate the db.sqlite file.

cezar
  • 11,616
  • 6
  • 48
  • 84
Samuel Omole
  • 185
  • 1
  • 7
  • It does not work,`django.db.utils.DatabaseError: database disk image is malformed` – AbstProcDo Oct 31 '17 at 22:47
  • 1
    I found someone else who had the same issue...well kinda, you could the solution if it works for u, [https://stackoverflow.com/questions/13675615/svn-cleanup-sqlite-database-disk-image-is-malformed] and if it doesnt work out, you can try creating a new django project in a virtual env and copy your files over to the new project – Samuel Omole Nov 01 '17 at 14:16