コード例 #1
0
from django.conf.urls import include, url
from django.contrib import admin

from chatbot.views import MyChatBotView, index
from dashboard.views import index as dashboard_index
from dashboard.views import login, web

urlpatterns = [
    # Examples:
    # url(r'^$', 'codingblocks.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^facebook_auth/?$', MyChatBotView.as_view()),
    url(r'^$', index),
    url(r'^dashboard/?$', dashboard_index),
    url(r'^login/?$', login),
    url(r'^web/?$', web),
]
コード例 #2
0
from django.conf.urls import patterns, include, url
from django.contrib import admin
from chatbot.views import MyChatBotView, index as indexbot

urlpatterns = patterns(
    '',
    # Examples:
    # url(r'^$', 'portal_template.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', "webportal.views.index", name="homepage"),
    url(r'^account$', "webportal.views.account", name="account"),
    url(r'^API/(?P<api_call>[a-zA-Z0-9]+)$', "webportal.views.api",
        name="api"),
    url(r'^create_event$', "webportal.views.event", name="create_event"),
    url(r'^facebook_auth/?$', MyChatBotView.as_view(), name='fb_callback'),
    url(r'^chatbot/?$', indexbot, name='indexbot'),
)