docs
docs copied to clipboard
problem_storage_root
when I manage problems through the site interface and upload test data, i found that the data was upload on site directory, but I set problem_storage_root to another path and the data between them can not sync, how can I solve this?
Hi,
I'm not sure I quite understand your question. problem_storage_root in the judge should be set to whatever directory the site is uploading data to (specifically, that to which PROBLEM_DATA_ROOT is set in local_settings.py).
Oh, i know……PROBLEM_DATA_ROOT not in the sample file: https://github.com/DMOJ/docs/blob/master/sample_files/local_settings.py
I don't know that I should set it.
And can you explain how to use the event server and what can it do? thank you.
I'm sorry but another question has confused me,after I set problem_storage_root and PROBLEM_DATA_ROOT to a certain path, I upload test data through the site, (the problem code is '1000' and the problem's problem group id is 'simple'), I found that just a folder named '1000' inside with test data and init.yml. But when I start the judger, it seems that it can not found the problem, unless I create a folder named 'simple' and move the folder '1000' inside it, do you have any better suggestions?
The following worked for me.
In judge/judge_conf.yml, I set problem_storage_root as follows:
problem_storage_root:
- some_path/site/problems
In site/dmoj/local_setting.py, I added DMOJ_PROBLEM_DATA_ROOT at the end as follows:
DMOJ_PROBLEM_DATA_ROOT = 'some_path/site/problems'
Then, I restarted the web and judge servers , and using the web interface, test data were uploaded to problems folder, and the corresponding problem was identified by the judge.
The following worked for me.
In
judge/judge_conf.yml, I setproblem_storage_rootas follows:problem_storage_root: - some_path/site/problemsIn
site/dmoj/local_setting.py, I addedDMOJ_PROBLEM_DATA_ROOTat the end as follows:DMOJ_PROBLEM_DATA_ROOT = 'some_path/site/problems'Then, I restarted the web and judge servers , and using the web interface, test data were uploaded to
problemsfolder, and the corresponding problem was identified by the judge.
I followed exactly what you mentioned, but the problems folder is still empty after creating a new problem through the site.