コード例 #1
0
ファイル: urls.py プロジェクト: Evans-Notch/lnldb
import debug_toolbar
import permission
from ajax_select import urls as ajax_select_urls
from django.conf import settings
from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic.base import RedirectView

import data.views
from events.views.indices import admin as db_home, index
from events.views.indices import event_search, survey_dashboard, workshops
from pages.views import page as view_page, recruitment_page

admin.autodiscover()
permission.autodiscover()

# Error pages
handler403 = 'data.views.err403'
handler404 = 'data.views.err404'
handler500 = 'data.views.err500'

urlpatterns = []

if settings.SAML2_ENABLED:
    urlpatterns += [
        url(r'^saml2_auth/', include('django_saml2_auth.urls')),
    ]

urlpatterns += [
    # Examples:
    # url(r'^$', some_function, name='home'),
コード例 #2
0
ファイル: urls.py プロジェクト: lburdzy/kalendarz
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.conf.urls.static import static
from django.conf import settings
from django.views.generic import TemplateView
import permission; permission.autodiscover()
from galeria.views import HomeView


urlpatterns = patterns('',
	# Examples:
	# url(r'^$', 'kalendarz.views.home', name='home'),
	# url(r'^blog/', include('blog.urls')),
	url(r'^admin/', include(admin.site.urls)),
	url(r'^cal/', include('cal.urls')),
	url(r'^gallery/', include('galeria.urls')),
	(r'^accounts/', include('allauth.urls')),
	url(r'^$', HomeView.as_view(), name='home'),
	url(r'^profile/', include('playerprofile.urls')),
	url(r'^streams/$', TemplateView.as_view(template_name='int_tv.html'), name='streams'),
	url(r'^youtube/$', TemplateView.as_view(template_name='int_yt.html'), name='youtube'),
	url(r'^squadxml/$', TemplateView.as_view(template_name='squad.xml', content_type='text/xml'), name='squadxml'),
	url(r'^servers/$', TemplateView.as_view(template_name='servers.html'), name='servers'),

)
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
コード例 #3
0
ファイル: urls.py プロジェクト: Ekleog/chocapix-server
from django.conf.urls import patterns, include, url
from rest_framework import routers

from django.contrib import admin
admin.autodiscover()

import permission
permission.autodiscover()

from bars_core.models.bar import BarViewSet, BarSettingsViewSet
from bars_core.models.user import UserViewSet, ResetPasswordView
from bars_core.models.role import RoleViewSet
from bars_core.models.account import AccountViewSet
from bars_core.models.loginattempt import LoginAttemptViewSet

from bars_items.models.sellitem import SellItemViewSet
from bars_items.models.stockitem import StockItemViewSet
from bars_items.models.itemdetails import ItemDetailsViewSet
from bars_items.models.buyitem import BuyItemViewSet, BuyItemPriceViewSet

from bars_transactions.views import TransactionViewSet

from bars_news.models import NewsViewSet

from bars_bugtracker.models import BugReportViewSet

router = routers.DefaultRouter()

router.register('bar', BarViewSet)
router.register('barsettings', BarSettingsViewSet)
router.register('user', UserViewSet)