1
Fork 0

Added about me page

This commit is contained in:
Jake Howard 2015-12-28 12:36:05 +00:00
parent 717ef46e6c
commit 6026af24f9
6 changed files with 27 additions and 8 deletions

View file

@ -4,6 +4,7 @@ from . import views
urlpatterns = [ urlpatterns = [
url(r'^about/website/$', views.AboutWebsiteView.as_view(), name='about-website'), url(r'^about/website/$', views.AboutWebsiteView.as_view(), name='about-website'),
url(r'^about/me/$', views.AboutMeView.as_view(), name='about-me'),
url(r'^about/$', views.AboutIndexView.as_view(), name='about'), url(r'^about/$', views.AboutIndexView.as_view(), name='about'),
url(r'^$', views.IndexView.as_view(), name='index') url(r'^$', views.IndexView.as_view(), name='index')
] ]

View file

@ -32,3 +32,7 @@ class AboutWebsiteView(CustomTemplate):
class AboutIndexView(CustomTemplate): class AboutIndexView(CustomTemplate):
template_name = 'about/index.html' template_name = 'about/index.html'
html_title = "About" html_title = "About"
class AboutMeView(CustomTemplate):
template_name = 'about/me.html'
html_title = "About Me"

View file

@ -6,7 +6,6 @@ from project.pages.views import Custom404View, NoJavascriptView
urlpatterns = [ urlpatterns = [
url(r'^site-admin/', include(admin.site.urls)), url(r'^site-admin/', include(admin.site.urls)),
url(r'^404/', Custom404View.as_view(), name="404"), url(r'^404/', Custom404View.as_view(), name="404"),
url(r'^404/', Custom404View.as_view(), name="404"),
url(r'^no-js/', NoJavascriptView.as_view(), name="no-js"), url(r'^no-js/', NoJavascriptView.as_view(), name="no-js"),
url(r'', include('project.pages.urls', namespace='pages')) url(r'', include('project.pages.urls', namespace='pages'))
] ]

View file

@ -14,7 +14,7 @@
<div class="row"> <div class="row">
<div class="col-sm-6"> <div class="col-sm-6">
<div class="thumbnail"> <div class="thumbnail">
<img src="" alt="" /> <img src="http://cdn2.itpro.co.uk/sites/itpro/files/server_room.jpg" alt="Server Image" />
<div class="caption"> <div class="caption">
<h3>About Website</h3> <h3>About Website</h3>
<p> <p>
@ -32,10 +32,10 @@
<div class="caption"> <div class="caption">
<h3>About Me</h3> <h3>About Me</h3>
<p> <p>
Some info about me. Some info about me. Although not very much
</p> </p>
<p> <p>
<a href="" class="btn btn-primary btn-block">More Info</a> <a href="{% url 'pages:about-me' %}" class="btn btn-primary btn-block">More Info</a>
</p> </p>
</div> </div>
</div> </div>

15
templates/about/me.html Normal file
View file

@ -0,0 +1,15 @@
{% extends 'content_base.html' %}
{% block pageTitle %}About Me{% endblock %}
{% block content %}
<div class="container">
<div class="panel panel-default">
<div class="panel-body">
<p>
</p>
</div>
</div>
</div>
{% endblock %}

View file

@ -7,11 +7,11 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-body"> <div class="panel-body">
<p> <p>
My website is the culmination of all my knowledge, compiled into 1 place. It not only contains all my projects, but it in itself is a project. Making sure this website works properly is a tall order, especially considering it's self hosted. And making sure that it stays secure is also important, as it contains a large amount of personal information. My website is the culmination of all my knowledge, compiled into 1 place. It not only contains all my projects, but it in itself is a project. Making sure this website works properly is a tall order, especially considering it's self hosted. And making sure that it stays secure is also important, as it contains a large amount of personal information.
</p> </p>
</div> </div>
</div> </div>
</div> </div>
<div class="container"> <div class="container">
<div class="panel panel-default"> <div class="panel panel-default">
@ -24,7 +24,7 @@
</p> </p>
<p> <p>
I went with the Django framework because it's what I work with at work, so I have a lot of contact with it, so exposure to bugs or clean ways to write things happen on a daily basis. I also chose it because it's written in python, one of my favourite languages, and one i'm highly fluent in. I chose PostgreSQL as a database engine because it's again what we use at work, and I already had some files preconfigured with the required config. I went with the Django framework because it's what I work with at work, so I have a lot of contact with it, so exposure to bugs or clean ways to write things happen on a daily basis. I also chose it because it's written in python, one of my favourite languages, and one i'm highly fluent in. I chose PostgreSQL as a database engine because it's again what we use at work, and I already had some files preconfigured with the required config.
</p> </p>
</div> </div>
</div> </div>
<div class="panel panel-default"> <div class="panel panel-default">
@ -38,4 +38,4 @@
</div> </div>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}