-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
  • 17,381
  • 14
  • 68
  • 114

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
  • 10,930
  • 6
  • 40
  • 81
Samuel Omole
  • 167
  • 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