diff options
author | 2019-04-05 12:11:31 +0100 | |
---|---|---|
committer | 2019-04-05 12:11:31 +0100 | |
commit | ebda74029355ce3236ca9266acde40fd40329df7 (patch) | |
tree | aba491f902c874328c88b8e7ccb9772b5414c17f /home | |
parent | Set `harakiri = 30`. (diff) |
[#176] Redo project layout
Diffstat (limited to 'home')
-rw-r--r-- | home/__init__.py | 0 | ||||
-rw-r--r-- | home/admin.py | 3 | ||||
-rw-r--r-- | home/apps.py | 5 | ||||
-rw-r--r-- | home/migrations/__init__.py | 0 | ||||
-rw-r--r-- | home/models.py | 3 | ||||
-rw-r--r-- | home/static/home/css/index.css | 30 | ||||
-rw-r--r-- | home/templates/home/index.html | 42 | ||||
-rw-r--r-- | home/tests.py | 9 | ||||
-rw-r--r-- | home/urls.py | 10 | ||||
-rw-r--r-- | home/views.py | 3 |
10 files changed, 0 insertions, 105 deletions
diff --git a/home/__init__.py b/home/__init__.py deleted file mode 100644 index e69de29b..00000000 --- a/home/__init__.py +++ /dev/null diff --git a/home/admin.py b/home/admin.py deleted file mode 100644 index 4185d360..00000000 --- a/home/admin.py +++ /dev/null @@ -1,3 +0,0 @@ -# from django.contrib import admin - -# Register your models here. diff --git a/home/apps.py b/home/apps.py deleted file mode 100644 index 90dc7137..00000000 --- a/home/apps.py +++ /dev/null @@ -1,5 +0,0 @@ -from django.apps import AppConfig - - -class HomeConfig(AppConfig): - name = 'home' diff --git a/home/migrations/__init__.py b/home/migrations/__init__.py deleted file mode 100644 index e69de29b..00000000 --- a/home/migrations/__init__.py +++ /dev/null diff --git a/home/models.py b/home/models.py deleted file mode 100644 index 0b4331b3..00000000 --- a/home/models.py +++ /dev/null @@ -1,3 +0,0 @@ -# from django.db import models - -# Create your models here. diff --git a/home/static/home/css/index.css b/home/static/home/css/index.css deleted file mode 100644 index 76653320..00000000 --- a/home/static/home/css/index.css +++ /dev/null @@ -1,30 +0,0 @@ -html { - background-color: #7289DA; -} - -.overview > h1 { - margin-top: 0.5em; - margin-bottom: -0.25em; -} - -.overview > p.is-size-7 { - margin-bottom: 2em; -} - -.overview > p.is-size-4 { - margin-bottom: 1em; -} - -.overview > p.is-size-6 { - margin-bottom: 1em; -} - -.overview > img { - border: 1px solid #6378BF; - margin-bottom: 1em; -} - -.overview > .divider { - letter-spacing: -3px; - margin-bottom: 1em; -} diff --git a/home/templates/home/index.html b/home/templates/home/index.html deleted file mode 100644 index cc99763b..00000000 --- a/home/templates/home/index.html +++ /dev/null @@ -1,42 +0,0 @@ -{% extends 'navbar.html' %} -{% load static %} - -{% block page_title %}Home{% endblock %} -{% block head %} - {{ block.super }} - <link rel="stylesheet" href="{% static 'home/css/index.css' %}"> -{% endblock %} -{% block body %} - {{ block.super }} - <div class="overview has-text-centered container"> - <h1 class="has-text-white has-text-weight-semibold is-size-2">Python Discord</h1> - <p class="has-text-grey-lighter is-size-7"> - The official Discord server of - <a class="has-text-white" href="https://reddit.com/r/Python">r/Python</a> - </p> - - <p class="has-text-light is-size-4"> - We're a large, friendly community focused around the Python programming language, open to those - who wish to learn the language or improve their skills, as well as those looking to help others. - </p> - - <p class="has-text-light is-size-6"> - We organise regular community events and have a dedicated staff of talented Python - developers available to assist around the clock. Whether you're looking to learn the - language or working on a complex project, we've got someone who can help you if you get stuck. - </p> - - <img src="https://discordapp.com/api/guilds/267624335836053506/embed.png?style=banner3"> - - <p class="divider has-text-grey-light"> - ------------------------------------------------------------------------------------------------------------ O ------------------------------------------------------------------------------------------------------------- - </p> - - <p class="has-text-grey-lighter is-size-7"> - Please note: this site is under construction. What you see now may be vastly different - from the final project state. Feel free to chat to us on Discord if you're curious! - </p> - </div> -{% endblock %} - -<!-- vim: set ft=htmldjango: --> diff --git a/home/tests.py b/home/tests.py deleted file mode 100644 index 54fac6e8..00000000 --- a/home/tests.py +++ /dev/null @@ -1,9 +0,0 @@ -from django.test import TestCase -from django_hosts.resolvers import reverse - - -class TestIndexReturns200(TestCase): - def test_index_returns_200(self): - url = reverse('index') - resp = self.client.get(url) - self.assertEqual(resp.status_code, 200) diff --git a/home/urls.py b/home/urls.py deleted file mode 100644 index a01e019e..00000000 --- a/home/urls.py +++ /dev/null @@ -1,10 +0,0 @@ -from django.contrib import admin -from django.urls import path -from django.views.generic import TemplateView - - -app_name = 'home' -urlpatterns = [ - path('', TemplateView.as_view(template_name='home/index.html'), name='index'), - path('admin/', admin.site.urls) -] diff --git a/home/views.py b/home/views.py deleted file mode 100644 index fd0e0449..00000000 --- a/home/views.py +++ /dev/null @@ -1,3 +0,0 @@ -# from django.shortcuts import render - -# Create your views here. |