diff options
author | Rob Austein <sra@hactrn.net> | 2012-04-06 17:06:52 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2012-04-06 17:06:52 +0000 |
commit | 995dd6f99a414fa2e28d22689b97d659ed65958a (patch) | |
tree | 8169adeef21ef7bb9e60d216b5a55d295469e0a7 /rpkid/rpki/irdbd.py | |
parent | f3d8733f643444467e7dd44ffcd0e4823aceef6e (diff) |
Disable Django debugging and add warning comment.
svn path=/branches/tk161/; revision=4410
Diffstat (limited to 'rpkid/rpki/irdbd.py')
-rw-r--r-- | rpkid/rpki/irdbd.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/rpkid/rpki/irdbd.py b/rpkid/rpki/irdbd.py index d3cfbb55..28e26b07 100644 --- a/rpkid/rpki/irdbd.py +++ b/rpkid/rpki/irdbd.py @@ -150,8 +150,17 @@ class main(object): cfg.set_global_flags() + # Do -not- turn on DEBUG here except for short-lived tests, + # otherwise irdbd will eventually run out of memory and crash. + # + # If you must enable debugging, use django.db.reset_queries() to + # clear the query list manually, but it's probably better just to + # run with debugging disabled, since that's the expectation for + # production code. + # + # https://docs.djangoproject.com/en/dev/faq/models/#why-is-django-leaking-memory + settings.configure( - DEBUG = True, DATABASES = { "default" : { "ENGINE" : "django.db.backends.mysql", |