Added about me page
This commit is contained in:
parent
717ef46e6c
commit
6026af24f9
6 changed files with 27 additions and 8 deletions
|
@ -4,6 +4,7 @@ from . import views
|
|||
|
||||
urlpatterns = [
|
||||
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'^$', views.IndexView.as_view(), name='index')
|
||||
]
|
||||
|
|
|
@ -32,3 +32,7 @@ class AboutWebsiteView(CustomTemplate):
|
|||
class AboutIndexView(CustomTemplate):
|
||||
template_name = 'about/index.html'
|
||||
html_title = "About"
|
||||
|
||||
class AboutMeView(CustomTemplate):
|
||||
template_name = 'about/me.html'
|
||||
html_title = "About Me"
|
||||
|
|
|
@ -6,7 +6,6 @@ from project.pages.views import Custom404View, NoJavascriptView
|
|||
urlpatterns = [
|
||||
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'^no-js/', NoJavascriptView.as_view(), name="no-js"),
|
||||
url(r'', include('project.pages.urls', namespace='pages'))
|
||||
]
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<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">
|
||||
<h3>About Website</h3>
|
||||
<p>
|
||||
|
@ -32,10 +32,10 @@
|
|||
<div class="caption">
|
||||
<h3>About Me</h3>
|
||||
<p>
|
||||
Some info about me.
|
||||
Some info about me. Although not very much
|
||||
</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>
|
||||
</div>
|
||||
</div>
|
||||
|
|
15
templates/about/me.html
Normal file
15
templates/about/me.html
Normal 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 %}
|
|
@ -7,11 +7,11 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="container">
|
||||
<div class="panel panel-default">
|
||||
|
@ -24,7 +24,7 @@
|
|||
</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.
|
||||
</p>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel panel-default">
|
||||
|
@ -38,4 +38,4 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
|
Reference in a new issue