Created
April 27, 2017 09:25
-
-
Save vskrachkov/9c343f8ba1ca08361355110fef2ac30d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.core import serializers | |
f = open('dic_user_status.json', b'w') | |
json = serializers.serialize("json", DicUserStatus.objects.all()) | |
f.write(json) | |
f.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment