File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 fi
4545
4646 invoke statics
47+ invoke loadthesauri
4748
4849 echo " Executing UWSGI server $cmd for Production"
4950fi
Original file line number Diff line number Diff line change @@ -25,3 +25,6 @@ include-package-data = true
2525[tool .setuptools .packages .find ]
2626where = [" ." ]
2727exclude = [" tests*" ]
28+
29+ [tool .setuptools .package-data ]
30+ "*" = [" **/thesauri/*.rdf" ]
Original file line number Diff line number Diff line change @@ -195,6 +195,18 @@ def fixtures(ctx):
195195 print (f"Warning: Failed to load project fixtures: { e } " )
196196
197197
198+ @task
199+ def loadthesauri (ctx ):
200+ print ("**************************thesauri*******************************" )
201+ try :
202+ ctx .run (
203+ f"python manage.py thesaurus autoload --settings={ _localsettings ()} " ,
204+ pty = True ,
205+ )
206+ except Exception :
207+ pass
208+
209+
198210@task
199211def updateadmin (ctx ):
200212 print ("***********************update admin details**************************" )
You can’t perform that action at this time.
0 commit comments