mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 20:23:12 +00:00
15 lines
277 B
Python
15 lines
277 B
Python
import os
|
|
import sys
|
|
|
|
|
|
PYTHON_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
sys.path.append(PYTHON_DIR)
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "core.settings")
|
|
|
|
import django
|
|
django.setup()
|
|
|
|
from django.conf import settings
|
|
|
|
DATABASE_FILE = settings.DATABASE_FILE
|