What do I need to run Sentry inside my django site?

The source code for the chat is wsgi.py , which uses some default values โ€‹โ€‹in server.py . My goal is to launch the sentinel as part of my django site. But I am not attached to wsgi.py in apache2 sites-enabled . Do I have to copy the contents of server.py to my own settings.py to make it work? Currently, doing nothing, the values โ€‹โ€‹of SECRET_KEY and SENTRY_KEY different. Therefore, the client cannot send exceptions to the watch server.

+4
source share
1 answer

One thing to make sure that you have added the sentry and raven to your INSTALLED_APPS in settings.py (after pip install sentry ).

 INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', # Uncomment the next line to enable the admin: 'django.contrib.admin', # Uncomment the next line to enable admin documentation: # 'django.contrib.admindocs', 'sentry', 'raven.contrib.django', ) 

Also, make sure you add the watch device to your urls.py with:

 url(r'^sentry/',include('sentry.web.urls')), 
0
source

All Articles