Skip to content

Latest commit

 

History

History

corpus_navigation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

PASRL-UI

Setup

  • Create a mysql DB according to the infos on pasrl_ui/settings.py

  • Create a log for the app with write access (/var/log/django/pasrl_ui.log, as in pasrl_ui/settings.py, or modify the path to the log in the settings file and create it at that path)

  • Run

      $ python manage.py migrate
      $ python manage.py createsuperuser
      $ python manage.py runserver #server de dev
    

Reloading data

Using a Django fixture, created from the delimited outputs of PASRL (propositions extracted from the corpus).

$ python manage.py flush
$ python manage.py migrate
# from ./pasrl_ui/ext_scripts, run
./create_fixture.sh INPUT_FILE
# this will create ../ext_data/json/INPUT_FILE_final.json, which you do loaddata on
$ python manage.py loaddata INPUT_FILE_final.json
$ python manage.py createsuperuser

Running

Normal way for a Django app:

python manage.py runserver PORT_NUMBER

Apps