sage_stream back in business
This commit is contained in:
parent
a69ed2677a
commit
bf51819cbc
|
|
@ -1,6 +1,7 @@
|
||||||
from django.urls import path
|
from django.urls import path, include
|
||||||
from . import views
|
from . import views
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
path('', views.videoAPI),
|
path('search/', views.searchAPI),
|
||||||
|
path('', include('sage_stream.api.urls')),
|
||||||
]
|
]
|
||||||
|
|
@ -5,7 +5,7 @@ from core.models import Video
|
||||||
from core.serializers import VideoSerializer
|
from core.serializers import VideoSerializer
|
||||||
|
|
||||||
@api_view(['GET'])
|
@api_view(['GET'])
|
||||||
def videoAPI(request):
|
def searchAPI(request):
|
||||||
q = request.GET.get('q', '')
|
q = request.GET.get('q', '')
|
||||||
l = request.GET.get('limit', '6')
|
l = request.GET.get('limit', '6')
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ INSTALLED_APPS = [
|
||||||
'django.contrib.messages',
|
'django.contrib.messages',
|
||||||
'django.contrib.staticfiles',
|
'django.contrib.staticfiles',
|
||||||
'rest_framework',
|
'rest_framework',
|
||||||
#'sage_stream',
|
'sage_stream',
|
||||||
'core'
|
'core'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ urlpatterns = [
|
||||||
path('auth/', include('django.contrib.auth.urls')),
|
path('auth/', include('django.contrib.auth.urls')),
|
||||||
path('', include('core.urls')),
|
path('', include('core.urls')),
|
||||||
path('api/', include('api.urls')),
|
path('api/', include('api.urls')),
|
||||||
|
#path('api/', include('sage_stream.api.urls')),
|
||||||
]
|
]
|
||||||
|
|
||||||
if settings.DEBUG:
|
if settings.DEBUG:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user