Commits

Viorel Stirbu committed cb03d87

add sentry support for gathering errors

Comments (0)

Files changed (4)

atexpc/ancora_api/api.py

             meta_value = found[0].get(meta)
         else:
             meta_value = None
+            print category
             logger.warn("found %d categories with id '%s'", len(category), category_id)
         return meta_value
 

atexpc/config/production.py

     'south',
     'storages',
     'sorl.thumbnail',
+    'raven.contrib.django',
     'atexpc.atex_web',
 )
 
 
 COMPRESS_ENABLED = True
 
+SENTRY_DSN = environ.get('SENTRY_DSN')
+
 STATIC_URL = '/static/'
 MEDIA_URL = '/media/'
 MEDIA_ROOT = path.join(environ.get("HOME", ""), "media/")
 APP_ENV=staging
 ANCORA_URI=http://example.com/ancoraerp/jis.serv?database=DBNAME
 MEMCACHE_SERVERS=
+SENTRY_DSN=

requirements/production.txt

 -r common.txt
 django-storages==1.1.5
+raven==2.0.10