nodejs created

This commit is contained in:
상희 김 2015-08-09 22:13:38 +02:00
parent 25f950c58e
commit 589f0f60a7
5 changed files with 42 additions and 11 deletions

View file

@ -32,8 +32,14 @@
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
{% block customcss %} {%endblock%}
{% with 'railshosting/img/'|add:hosting|add:'-intro-bg.png' as image_static %}
alt="">
<style media="screen" type="text/css">
.intro-header {
background: url("{% static image_static %}") no-repeat center center;
}
</style>
{% endwith %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),

View file

@ -1,12 +1,6 @@
{% extends "railshosting/base.html" %}
{% load staticfiles %}
{%block customcss %}
<link href="{% static "railshosting/css/djangohosting.css" %}" rel="stylesheet">
{%endblock%}
{%block specification %}
<li><i class="fa-li fa fa-check-square-o fa-lg"></i>
<p class="lead">Ubuntu 14.04 as the operating system, full root access!</p>

View file

@ -0,0 +1,18 @@
{% extends "railshosting/base.html" %}
{% load staticfiles %}
{%block customcss %}
<link href="{% static "railshosting/css/djangohosting.css" %}" rel="stylesheet">
{%endblock%}
{%block specification %}
<li><i class="fa-li fa fa-check-square-o fa-lg"></i>
<p class="lead">Ubuntu 14.04 as the operating system, full root access!</p>
</li>
<li><i class="fa-li fa fa-check-square-o fa-lg"></i><p class="lead">nginx as the frontend Server (optional with SSL Support)</p></li>
<li><i class="fa-li fa fa-check-square-o fa-lg"></i><p class="lead">uwsgi to have your application talk to nginx and vice versa
<li><i class="fa-li fa fa-check-square-o fa-lg"></i><p class="lead">PostgreSQL as the database</p>
</li>
{%endblock%}

View file

@ -5,5 +5,7 @@ from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'beta$', views.beta, name='beta'),
url(r'djangohosting$', views.djangohosting, name='djangohosting'),
url(r'djangohosting$', views.djangohosting, name='djangohosting'),
url(r'nodejshosting$', views.nodejshosting, name='nodejshosting'),
url(r'railshosting$', views.railshosting, name='railshosting'),
]

View file

@ -38,7 +38,7 @@ def djangohosting(request):
context["google_analytics"]="the right id"
context["email"]="info@django-hosting.ch"
return render(request, 'railshosting/django.html', context)
return render(request, "railshosting/%s.html" % context["hosting"], context)
def railshosting(request):
@ -50,7 +50,18 @@ def railshosting(request):
context["google_analytics"]="the right id"
context["email"]="info@rails-hosting.ch"
return render(request, 'railshosting/rails.html', context)
return render(request, "railshosting/%s.html" % context["hosting"], context)
def beta(request):
return render(request, 'railshosting/beta.html')
def nodejshosting(request):
context = {}
context["hosting"]="nodejs"
context["hosting_long"]="NodeJS"
context["domain"]="node-hosting.ch"
context["google_analytics"]="the right id"
context["email"]="info@node-hosting.ch"
return render(request, "railshosting/%s.html" % context["hosting"], context)