Commit 8f46e39a authored by sim's avatar sim

Cleaner code thanks to pipenv

parent 95783e85
...@@ -4,15 +4,10 @@ from sqlalchemy import engine_from_config, pool ...@@ -4,15 +4,10 @@ from sqlalchemy import engine_from_config, pool
from logging.config import fileConfig from logging.config import fileConfig
import re import re
# Add projet root directory in path and setup Django... # Setup django to be able to import gargantext
import os
import django import django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'gargantext.settings')
django.setup() django.setup()
# ...to be able to import gargantext.
from django.conf import settings from django.conf import settings
from gargantext import models from gargantext import models
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment