Commit 8749af6f authored by Administrator's avatar Administrator

[CLEAN] Init clean.

parent d6dbafd9
......@@ -9,6 +9,6 @@ psql -d gargandb -f init2.sql
sleep 2
#../manage.py shell < init.py
../manage.py shell < ../init_gargantext.py
../manage.py shell < init_gargantext.py
#psql -d gargandb -f hstore2jsonb.sql
from gargantext_web.db import *
# Instantiante table NgramTag:
f = open("part_of_speech_labels.txt", 'r')
for line in f.readlines():
name, description = line.strip().split('\t')
_tag = Tag(name=name, description=description)
session.add(_tag)
session.commit()
f.close()
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