Last active
October 12, 2016 16:00
-
-
Save anthonydillon/9511e9c4edd98a55041e0eae1fabc88b 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 website.models import Page | |
from website.db_helpers import import_page_from_json_file | |
if Page.objects.filter(url="download").exists(): | |
Page.objects.get(url="download").delete() | |
import_page_from_json_file('download.json') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment