Open Kkkassini opened 3 years ago
I am a PyCharm user, but not to the level of doing what you describe here.
I have built all of the components of Open Semantic Search by hand so that I could understand what they do.
As a first question, I would ask where you are hosting services like spaCy, Tesseract, and Tika. Those are the NLP, OCR, and document metadata services. The Django app accesses them via their respective TCP ports.
Hello, i'm new to the django and now trying to run debug mode for the whole project in order to know what is happening in every step. With Pycharm i added the docker-compose as new interpreter:
and i can run the docker-compose up with Pycharm and see the interface.
As the Pycharm official tutorial mentioned i should add a django server configuration. I first went to Languages&Frameworks - Django and enabled django support:
Then in the edit configuration menu i added a Django Server config:
Then i clicked the debug button, but failed: `opensemanticsearch_tika_1 is up-to-date opensemanticsearch_solr_1 is up-to-date opensemanticsearch_rabbitmq_1 is up-to-date Recreating opensemanticsearch_apps_1 ... Recreating opensemanticsearch_apps_1 Attaching to opensemanticsearch_apps_1 apps_1 | Usage: /usr/sbin/apache2 [-D name] [-d directory] [-f file] apps_1 | [-C "directive"] [-c "directive"] apps_1 | [-k start|restart|graceful|graceful-stop|stop] apps_1 | [-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X] apps_1 | Options: apps_1 | -D name : define a name for use in directives
apps_1 | -d directory : specify an alternate initial ServerRoot
apps_1 | -f file : specify an alternate ServerConfigFile
apps_1 | -C "directive" : process directive before reading config files
apps_1 | -c "directive" : process directive after reading config files
apps_1 | -e level : show startup errors of level (see LogLevel)
apps_1 | -E file : log startup errors to file
apps_1 | -v : show version number
apps_1 | -V : show compile settings
apps_1 | -h : list available command line options (this page)
apps_1 | -l : list compiled in modules
apps_1 | -L : list available configuration directives
apps_1 | -t -D DUMP_VHOSTS : show parsed vhost settings
apps_1 | -t -D DUMP_RUN_CFG : show parsed run settings
apps_1 | -S : a synonym for -t -D DUMP_VHOSTS -D DUMP_RUN_CFG
apps_1 | -t -D DUMP_MODULES : show all loaded modules
apps_1 | -M : a synonym for -t -D DUMP_MODULES
apps_1 | -t -D DUMP_INCLUDES: show all included configuration files
apps_1 | -t : run syntax check for config files
apps_1 | -T : start without DocumentRoot(s) check
apps_1 | -X : debug mode (only one worker, do not detach)
apps_1 | Action '-D FOREGROUND python3 -u /opt/.pycharm_helpers/pydev/pydevd.py --multiprocess --qt-support=auto --port 57013 --file /opt/project/src/open-semantic-search-apps/src/manage.py runserver 0.0.0.0:8080' failed.
apps_1 | The Apache error log may have more information.
opensemanticsearch_apps_1 exited with code 1
Aborting on container exit...
Process finished with exit code 1 ` Could anyone help me on how to run the debug mode pls? Many thanks