From fdd4e188faaa38f3483d404991f66eafc103399f Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 7 Oct 2015 21:37:36 +0000 Subject: Discard Django router in favor of separate settings files tailored to particular programs (see #713). svn path=/branches/tk705/; revision=6098 --- rpki/pubd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rpki/pubd.py') diff --git a/rpki/pubd.py b/rpki/pubd.py index 9de2fd46..71a62fee 100644 --- a/rpki/pubd.py +++ b/rpki/pubd.py @@ -52,7 +52,7 @@ class main(object): def __init__(self): os.environ.update(TZ = "UTC", - DJANGO_SETTINGS_MODULE = "rpki.django_settings") + DJANGO_SETTINGS_MODULE = "rpki.django_settings.pubd") time.tzset() self.irbe_cms_timestamp = None @@ -146,7 +146,7 @@ class main(object): try: q_pdu = None - with transaction.atomic(using = "pubdb"): + with transaction.atomic(): for q_pdu in q_msg: if q_pdu.tag != rpki.publication_control.tag_client: @@ -240,7 +240,7 @@ class main(object): type = "reply", version = rpki.publication.version) delta = None try: - with transaction.atomic(using = "pubdb"): + with transaction.atomic(): for q_pdu in q_msg: if q_pdu.get("uri"): logger.info("Client %s request for %s", q_pdu.tag, q_pdu.get("uri")) -- cgit v1.2.3