Server 500 errors¶
Turn on debug mode
Locate and edit your local_settings file
Change the line:
# DEBUG = True
DEBUG = True
This will render a debug report in the browser - usually revealing the problem.
Once the problem is fixed, change
False, or comment it again using a
#. If you leave debug mode
in place, the system is likely to run out of memory.
Log file location, naming and verbosity were configured in the
local_settings.py configuration - see the
Log file configuration docs for details.
If the defaults have not been modified, then there will be three log files in your
MEDIAROOT folder which you
configured at installation. See the install config section on Location for imports and exports for details.
openrem.log has general logging information, the other two are specific to the DICOM store and DICOM
query-retrieve functions if you are making use of them.
You can increase the verbosity of the log files by changing the log ‘level’ to
DEBUG, or you can decrease the
WARNING, ‘ERROR’, or ‘CRITICAL’. The default is
If for any reason you want to start again with the database, then this is how you might do it:
- Delete or rename your existing database file (location will be described in your
- Create the database
These instructions will also allow you to keep any user settings if you use an SQLite3 database.
In a shell/command window, move into the openrem folder:
- Ubuntu linux:
- Other linux:
Run the django python shell:
python manage.py shell from remapp.models import GeneralStudyModuleAttr a = GeneralStudyModuleAttr.objects.all() a.count() # Just to see that we are doing something! a.delete() a.count() exit()