gramps/src/web/init_gramps.py

12 lines
175 B
Python
Raw Normal View History

"""
Clears gramps data
"""
import os
os.environ["DJANGO_SETTINGS_MODULE"] = "settings"
import settings
import grampsdb.models as dj
dj.clear_tables("primary", "secondary")