Beispiel #1
0
from os.path import join
from django.conf.urls import *
from django.conf import settings
from django.views.generic import TemplateView, RedirectView
from django.contrib import admin
from tendenci.libs.model_report import report
from tendenci.apps.registry.register import autodiscover as registry_autodiscover

registry_autodiscover()

# django model report
report.autodiscover()

# Admin Patterns
urlpatterns = patterns(
    "", (r"^admin/doc/", include("django.contrib.admindocs.urls")), (r"^admin/", include(admin.site.urls))
)

# report patterns
urlpatterns += patterns("", (r"^model-report/", include("tendenci.libs.model_report.urls")))

# Tendenci Patterns
urlpatterns += patterns(
    "",
    url(r"^$", "tendenci.apps.base.views.homepage", name="home"),
    # Reports:
    (r"^metrics/", include("tendenci.apps.metrics.urls")),
    url(
        r"^users/reports/users-activity-top10/$",
        "tendenci.apps.profiles.views.user_activity_report",
        name="reports-user-activity",
Beispiel #2
0
from os.path import join
from django.conf.urls import patterns, url, include
from django.conf import settings
from django.views.generic import TemplateView, RedirectView
from django.contrib import admin
from tendenci.libs.model_report import report
from tendenci.apps.registry.register import autodiscover as registry_autodiscover

registry_autodiscover()

# django model report
report.autodiscover()

# Admin Patterns
urlpatterns = patterns(
    '',
    (r'^admin/doc/', include('django.contrib.admindocs.urls')),
    (r'^admin/', include(admin.site.urls)),
)

#report patterns
urlpatterns += patterns(
    '',
    (r'^model-report/', include('tendenci.libs.model_report.urls')),
)

# Tendenci Patterns
urlpatterns += patterns(
    '',
    #url(r'^$', 'tendenci.apps.base.views.homepage', name="home"),
    url(r'^$', 'tendenci.apps.dashboard.views.new', name="dashboard"),