diff --git a/basics/__init__.py b/basics/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/basics/templates/basics/disclaimer.html b/basics/templates/basics/disclaimer.html new file mode 100644 index 0000000..ebf1ce7 --- /dev/null +++ b/basics/templates/basics/disclaimer.html @@ -0,0 +1,12 @@ +{% extends "front_base.html" %} + +{% load static from staticfiles %} + +{% block title %} - Disclaimer{% endblock %} + +{% block content %} +
The articles and thoughts on this site all originate from me, unless otherwise stated. Please use them with this statement in your mind. If you use anything, please put a backlink on your site to the given article(s) or the main page.
+The social media icons on the right are from komodomedia.com.
+Some design ideas, like the arrows under the menu items are from a friend, Judit Pásti.
+{% endblock content %}
diff --git a/basics/tests.py b/basics/tests.py
new file mode 100644
index 0000000..501deb7
--- /dev/null
+++ b/basics/tests.py
@@ -0,0 +1,16 @@
+"""
+This file demonstrates writing tests using the unittest module. These will pass
+when you run "manage.py test".
+
+Replace this with more appropriate tests for your application.
+"""
+
+from django.test import TestCase
+
+
+class SimpleTest(TestCase):
+ def test_basic_addition(self):
+ """
+ Tests that 1 + 1 always equals 2.
+ """
+ self.assertEqual(1 + 1, 2)
diff --git a/basics/urls.py b/basics/urls.py
new file mode 100644
index 0000000..0c55d21
--- /dev/null
+++ b/basics/urls.py
@@ -0,0 +1,8 @@
+from django.conf.urls import patterns, url
+from basics import views
+
+urlpatterns = patterns('',
+ url(r'^resume', views.resume, name='resume'),
+ url(r'^about', views.about, name='about'),
+ url(r'^disclaimer', views.disclaimer, name='disclaimer'),
+)
diff --git a/basics/views.py b/basics/views.py
new file mode 100644
index 0000000..45df0be
--- /dev/null
+++ b/basics/views.py
@@ -0,0 +1,10 @@
+from django.shortcuts import render
+
+def resume(request):
+ return render(request, 'resume.html', {})
+
+def about(request):
+ return render(request, 'basics/about.html', {})
+
+def disclaimer(request):
+ return render(request, 'basics/disclaimer.html', {})
diff --git a/blog/urls.py b/blog/urls.py
index a0f8588..b11cbac 100644
--- a/blog/urls.py
+++ b/blog/urls.py
@@ -6,7 +6,4 @@ urlpatterns = patterns('',
url(r'^feed$', views.feed, name='feed'),
url(r'^tag/(?P