Exemplo n.º 1
0
Arquivo: urls.py Projeto: natano/ecs
from django.conf.urls.defaults import *
from django.conf import settings
from django.contrib import admin
from django.views.static import serve
from django.views.generic.simple import direct_to_template
from ecs.utils import forceauth
from ecs import workflow
import django

# stuff that needs called at the beginning, but not in settings.py

admin.autodiscover()
workflow.autodiscover()

import logging
from sentry.client.handlers import SentryHandler

logging.getLogger().addHandler(SentryHandler())

# Add StreamHandler to sentry's default so you can catch missed exceptions
logger = logging.getLogger("sentry.errors")
logger.propagate = False
logger.addHandler(logging.StreamHandler())


urlpatterns = patterns(
    "",
    url(r"^$", "django.views.generic.simple.redirect_to", {"url": "/dashboard/"}),
    url(r"^audit/", include("ecs.audit.urls")),
    url(r"^core/", include("ecs.core.urls")),
    url(r"^dashboard/", include("ecs.dashboard.urls")),
Exemplo n.º 2
0
def workflow_sync():
    workflow.autodiscover()
    call_command('workflow_sync', quiet=True)
Exemplo n.º 3
0
def workflow_sync():
    workflow.autodiscover()
    call_command('workflow_sync')