diff --git a/web/actions/templates/actions/base.html b/web/actions/templates/actions/base.html new file mode 100644 index 00000000..0d462009 --- /dev/null +++ b/web/actions/templates/actions/base.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} +{% load static %} +{% block header %} +{% include 'includes/header.html' with selected='feed' %} +{% endblock header %} + +{% block container %} + +{% endblock container %} + +{% block jquery %} +{% endblock %} diff --git a/web/actions/templates/actions/feed.html b/web/actions/templates/actions/feed.html new file mode 100644 index 00000000..3e33bbe5 --- /dev/null +++ b/web/actions/templates/actions/feed.html @@ -0,0 +1,6 @@ +{% extends "actions/base.html" %} +{% load static main %} + +{% block container %} +hello +{% endblock container %} diff --git a/web/actions/urls.py b/web/actions/urls.py index 32a5669a..7b888246 100644 --- a/web/actions/urls.py +++ b/web/actions/urls.py @@ -2,12 +2,14 @@ from rest_framework.routers import DefaultRouter from . import views +from main.views import TemplateAPIView app_name = 'actions' router = DefaultRouter() urlpatterns = [ + path('feed', TemplateAPIView.as_view(template_name='actions/feed.html'), name='feed'), path('actions/', views.ActionListView.as_view(), name='action_list'), ] diff --git a/web/api/v1/profile/serializers.py b/web/api/v1/profile/serializers.py index 1ce71e0f..be0c2bda 100644 --- a/web/api/v1/profile/serializers.py +++ b/web/api/v1/profile/serializers.py @@ -4,7 +4,6 @@ from django.utils.translation import gettext_lazy as _ from rest_framework import serializers - User = get_user_model() diff --git a/web/templates/includes/header.html b/web/templates/includes/header.html index d789109a..dcb2aa79 100644 --- a/web/templates/includes/header.html +++ b/web/templates/includes/header.html @@ -30,6 +30,9 @@