mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-02 05:12:32 +10:00
working archivebox command inside django legacy folder
This commit is contained in:
11
archivebox/env.py
Normal file
11
archivebox/env.py
Normal file
@@ -0,0 +1,11 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user