from django.contrib import admin from django.urls import path from ui.views import Index, Perfil, Buscar urlpatterns = [ path('inicio', Index.as_view()), path('perfil/<str:username>/', Perfil.as_view()), path('buscar/', Buscar.as_view()), ]
from django.conf.urls import include, url, patterns from django.contrib import admin from django.conf import settings from django.conf.urls.static import static from ui.views import Index, logout from api.views_ui import redirect_ui from social.utils import setting_name from social.apps.django_app.views import complete from edx_proctor_webassistant.decorators import set_token_cookie extra = getattr(settings, setting_name('TRAILING_SLASH'), True) and '/' or '' urlpatterns = patterns( '', url(r'^$', Index.as_view(), name="index"), url(r'^grappelli/', include('grappelli.urls')), url(r'^admin/', include(admin.site.urls)), url(r'^api/', include('api.urls')), # few angular views url(r'^session/', redirect_ui), url(r'^archive/', redirect_ui), url(r'^complete/(?P<backend>[^/]+){0}$'.format(extra), set_token_cookie(complete), name='complete'), url('', include('social.apps.django_app.urls', namespace='social')), url( r'^logout/$', logout, name='logout'
from django.conf.urls import url, patterns from ui.views import Index, GetMessages urlpatterns = patterns( '', url(r'^$', Index.as_view(), name='index'), url(r'^api/messages', GetMessages.as_view(), name='get_messages') )