nodejs created
This commit is contained in:
parent
25f950c58e
commit
589f0f60a7
5 changed files with 42 additions and 11 deletions
|
@ -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),
|
||||
|
|
|
@ -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>
|
||||
|
|
18
railshosting/templates/railshosting/nodejs.html
Normal file
18
railshosting/templates/railshosting/nodejs.html
Normal 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%}
|
|
@ -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'),
|
||||
]
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue