Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved all Sentry CLI operations into new Sentry namespace. You can no…
…w launch a standalone Sentry webserver using 'sentry start'
- Loading branch information
Showing
23 changed files
with
356 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,4 +10,5 @@ pip-log.txt | |
/docs/doctrees | ||
sentry/sentry_index/ | ||
*.egg | ||
sentry_index/ | ||
sentry_index/ | ||
*.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,5 @@ | ||
from sentry import conf | ||
import warnings | ||
|
||
class SentryRouter(object): | ||
def db_for_write(self, model, **hints): | ||
if model._meta.app_label == 'sentry': | ||
return conf.DATABASE_USING | ||
warnings.warn("The use of 'sentry.routers' is deprecated. Please use 'sentry.utils.router' instead.", DeprecationWarning) | ||
|
||
def db_for_read(self, model, **hints): | ||
return self.db_for_write(model, **hints) | ||
|
||
def allow_syncdb(self, db, model): | ||
sentry_db = conf.DATABASE_USING | ||
if not sentry_db: | ||
return None | ||
if model._meta.app_label == 'sentry' and db != sentry_db: | ||
return False | ||
from sentry.utils.router import * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,5 @@ | ||
import os | ||
import re | ||
import warnings | ||
|
||
from django.conf.urls.defaults import * | ||
warnings.warn("The use of 'sentry.urls' is deprecated. Please use 'sentry.web.urls' instead.", DeprecationWarning) | ||
|
||
from sentry.conf import KEY | ||
from sentry import views | ||
from sentry.feeds import MessageFeed, SummaryFeed | ||
|
||
SENTRY_ROOT = os.path.dirname(__file__) | ||
|
||
urlpatterns = patterns('', | ||
# This path is also reflected in conf.STATIC_URL_PREFIX | ||
url(r'^_static/(?P<path>.*)$', views.static_media, name='sentry-media'), | ||
|
||
# Feeds | ||
|
||
url(r'^feeds/%s/messages.xml$' % re.escape(KEY), MessageFeed(), name='sentry-feed-messages'), | ||
url(r'^feeds/%s/summaries.xml$' % re.escape(KEY), SummaryFeed(), name='sentry-feed-summaries'), | ||
|
||
# JS and API | ||
|
||
url(r'^jsapi/$', views.ajax_handler, name='sentry-ajax'), | ||
url(r'^store/$', views.store, name='sentry-store'), | ||
|
||
# Normal views | ||
|
||
url(r'^login$', views.login, name='sentry-login'), | ||
url(r'^logout$', views.logout, name='sentry-logout'), | ||
url(r'^group/(\d+)$', views.group, name='sentry-group'), | ||
url(r'^group/(\d+)/messages$', views.group_message_list, name='sentry-group-messages'), | ||
url(r'^group/(\d+)/messages/(\d+)$', views.group_message_details, name='sentry-group-message'), | ||
url(r'^group/(\d+)/actions/([\w_-]+)', views.group_plugin_action, name='sentry-group-plugin-action'), | ||
|
||
url(r'^search$', views.search, name='sentry-search'), | ||
|
||
url(r'^$', views.index, name='sentry'), | ||
) | ||
from sentry.web.urls import * |
Oops, something went wrong.