Example #1
0
from django.conf.urls import include, url
from django.contrib import admin
from chatterbot.ext.django_chatterbot import urls as chatterbot_urls
from example_app.views import ChatterBotAppView
from example_app.views import ChatterBotInitializeView

urlpatterns = [
    url(r'^$', ChatterBotAppView.as_view()),
    url(r'^initialize$', ChatterBotInitializeView.as_view()),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^api/chatterbot/', include(chatterbot_urls, namespace='chatterbot')),
]
Example #2
0
from django.conf.urls import url
from django.contrib import admin
from example_app.views import ChatterBotAppView, ChatterBotApiView


urlpatterns = [
    url(r'^$', ChatterBotAppView.as_view(), name='main'),
    url(r'^admin/', admin.site.urls, name='admin'),
    url(r'^api/chatterbot/', ChatterBotApiView.as_view(), name='chatterbot'),
]
Example #3
0
from django.conf.urls import url, include
from django.contrib import admin
from example_app.views import ChatterBotAppView, ChatterBotApiView, MainWebsite, MLView

urlpatterns = [
    url(r'^index/app/', ChatterBotAppView.as_view(), name='main'),
    url(r'^index/$', MainWebsite.as_view(), name='main'),
    url(r'^admin/', admin.site.urls, name='admin'),
    url(r'^mlapi/', MLView.as_view(), name='mlapi'),
    url(
        r'^api/chatterbot/',
        include('chatterbot.ext.django_chatterbot.urls',
                namespace='chatterbot')),
]
Example #4
0
from django.conf.urls import include, url
from django.contrib import admin
from example_app.views import ChatterBotAppView, ChatterBotApiView

urlpatterns = [
    url(r'^$', ChatterBotAppView.as_view(), name='main'),
    url(r'^admin/', include(admin.site.urls), name='admin'),
    url(r'^api/chatterbot/', ChatterBotApiView.as_view(), name='chatterbot'),
]
Example #5
0
from django.conf.urls import include, url
from django.contrib import admin
from chatterbot.ext.django_chatterbot import urls as chatterbot_urls
from example_app.views import ChatterBotAppView

app_name = "chatterbot"

urlpatterns = [
    url(r'^chatterBot/$', ChatterBotAppView.as_view(), name='cbot_main'),
    #url(r'^admin/', include(admin.site.urls), name='admin'),
    url(r'^api/chatterbot/', include(chatterbot_urls, namespace='chatterbot')),
] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
Example #6
0
"""django_chatterbot URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Add an import:  from blog import urls as blog_urls
    2. Add a URL to urlpatterns:  url(r'^blog/', include(blog_urls))
"""
from django.conf.urls import include, url
from django.contrib import admin

from example_app.views import ChatterBotAppView


urlpatterns = [
    url(r'^$', ChatterBotAppView.as_view()),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^api/chatterbot/', include('django_chatterbot.urls', namespace='chatterbot')),
]