Restructure scss file layout & task

This commit is contained in:
Sonny 2019-11-14 22:49:56 +01:00
parent bb0c2e792c
commit a350cc280d
48 changed files with 48 additions and 39 deletions

View file

@ -75,7 +75,7 @@ class User(AbstractUser):
every=1, period=IntervalSchedule.HOURS
)
self.task = PeriodicTask.objects.create(
self.task, _ = PeriodicTask.objects.get_or_create(
enabled=True,
interval=self.task_interval,
name=f"{self.email}-collection-task",

View file

@ -3,7 +3,7 @@
{% load static %}
{% block head %}
<link href="{% static 'accounts/dist/css/accounts.css' %}" rel="stylesheet" />
<link href="{% static 'accounts/dist/css/login.css' %}" rel="stylesheet" />
{% endblock %}
{% block content %}

View file

@ -10,10 +10,10 @@ from newsreader.news.core.endpoints import (
NestedPostCategoryView,
NestedRuleCategoryView,
)
from newsreader.news.core.views import MainView
from newsreader.news.core.views import NewsView
index_page = login_required(MainView.as_view())
index_page = login_required(NewsView.as_view())
endpoints = [
path("posts/", ListPostView.as_view(), name="posts-list"),

View file

@ -3,8 +3,8 @@ from typing import Dict
from django.views.generic.base import TemplateView
class MainView(TemplateView):
template_name = "core/main.html"
class NewsView(TemplateView):
template_name = "core/homepage.html"
# TODO serialize objects to show filled main page
def get_context_data(self, **kwargs) -> Dict:

View file

@ -1,6 +0,0 @@
// General imports
@import "../partials/variables";
@import "../components/index";
// Page specific
@import "./components/index";

View file

View file

@ -1,7 +0,0 @@
// General imports
@import "../partials/variables";
@import "../components/index";
// Page specific
@import "./components/index";
@import "./elements/index";

View file

@ -0,0 +1,8 @@
// General imports
@import "../../partials/variables";
@import "../../components/index";
@import "../../elements/index";
// Page specific
@import "./components/index";
@import "./elements/index";

View file

@ -0,0 +1,7 @@
// General imports
@import "../../partials/variables";
@import "../../components/index";
@import "../../elements/index";
// Page specific
@import "./components/index";