You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
435 B
18 lines
435 B
#!/usr/bin/env python
|
|
import os
|
|
import sys
|
|
import threading
|
|
from text_analysis.views import upload
|
|
import django
|
|
|
|
if __name__ == "__main__":
|
|
t = threading.Thread(target=upload, name='upload')
|
|
t.daemon = True
|
|
t.start()
|
|
|
|
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "text_analysis.settings")
|
|
django.setup()
|
|
from django.core.management import execute_from_command_line
|
|
execute_from_command_line(sys.argv)
|
|
|
|
|