From 76a84e43c8b0d4c835b95cef72cdde68b4a90347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=89=E1=85=A1=E1=86=BC=E1=84=92=E1=85=B4=20=E1=84=80?= =?UTF-8?q?=E1=85=B5=E1=86=B7?= Date: Thu, 30 Jul 2015 00:11:17 +0200 Subject: [PATCH] base template created --- railshosting/djangohosting.css | 6 + railshosting/templates/railshosting/base.html | 387 ++++++++++++++++++ .../templates/railshosting/django.html | 374 +---------------- railshosting/views.py | 21 +- 4 files changed, 422 insertions(+), 366 deletions(-) create mode 100644 railshosting/djangohosting.css create mode 100644 railshosting/templates/railshosting/base.html diff --git a/railshosting/djangohosting.css b/railshosting/djangohosting.css new file mode 100644 index 00000000..aae58ef6 --- /dev/null +++ b/railshosting/djangohosting.css @@ -0,0 +1,6 @@ +@charset "UTF-8"; +/* CSS Document */ + +.intro-header { + background: url(../img/django-intro-bg.png) no-repeat center center; +} \ No newline at end of file diff --git a/railshosting/templates/railshosting/base.html b/railshosting/templates/railshosting/base.html new file mode 100644 index 00000000..63a33048 --- /dev/null +++ b/railshosting/templates/railshosting/base.html @@ -0,0 +1,387 @@ +{% load staticfiles %} + + + + + + + + + + + + + {% block title %} {%endblock%} as easy as possible + + + + + + + + + + + + + + + + + + {% block customcss %} {%endblock%} + + + + + + + + + + + + +
+
+ +
+
+ +
+ +

{{ domain }}

+

{{ hosting_long }} as easy as possible

+
+ +
+
+
+ +
+ + +
+ + + + +
+ +
+ +
+
+
+
+

How it works :

    + {% block specification %} + {% endblock %} +
+
+
+ +
+
+ +
+ + +
+ +
+
+
+
+
+
+

Option 1 : Your own infrastructure

+

We configure your own infrastructure for {{ hosting_long }}. Keep the comfort and safety of being at your home, while we set things up for you.

+
+
+ +
+
+ +
+ +
+ + + + +
+ +
+ +
+
+
+
+

Option 2 : Our infrastructure

+

We take care of everything for you! You don't need your infrastructure. We give you everything you need in {{ hosting_long }}ls hosting. Full root access, 24x7 support.

+
+
+ +
+
+ +
+ + +
+ + + +
+ +
+ +
+
+
+
+

Hosting Price Samples

+

Here are samples of our {{ hosting_long }} hosting offers, suited for different projects. Our offer examples come in different size, speed, and storage.

+
+ +
+
+
+ + + +
+ +
+
+ +
+

Economy

+

Suited for smaller applications

+

1 core,

+

1 GiB RAM,

+

10 GiB system image (25 CHF)

+

+ Buy Now! More Info

+
+
+
+ +
+
+ +
+

Standard

+

Suited for standard {{ hosting_long }} applications

+

1 core,

+

2 GiB RAM,

+

10 GiB system image (30 CHF)

+

+ Buy Now! More Info +

+
+
+
+ +
+
+ +
+

Deluxe

+

Suited for performance critical project

+

2 cores,

+

4 GiB Ram,

+

10 GiB system image (50 CHF)

+

+ Buy Now! More Info

+
+
+
+ +
+
+ +
+

Presidential Premium

+

Suited for performance critical &

+

high storage demand projects

+

4 Cores, 8 GiB RAM, 10 GiB System image,

+

100 GiB Data image (190 CHF)

+

+ Buy Now! More Info +

+
+
+
+ +
+ +
+ +
+ + +
+ + +
+
+ +
+
+ +
+

Let me try!

+

 

+

 

+ {% if error_message %}

{{ error_message }}

{% endif %} + {{ form.non_field_errors }} + {{ form.email.errors }} +
+ {% csrf_token %} +
+ + +
+ +
+ + + +
+
+
+ +
+ + +
+ + + + + + + + + + + + + + + + + + diff --git a/railshosting/templates/railshosting/django.html b/railshosting/templates/railshosting/django.html index 9661cfdc..df2cf991 100644 --- a/railshosting/templates/railshosting/django.html +++ b/railshosting/templates/railshosting/django.html @@ -1,374 +1,18 @@ - - +{% extends "railshosting/base.html" %} +{% load staticfiles %} - +{% block title %}django hosting.ch - django hosting{%endblock%} - - - - - +{%block customcss %} + +{%endblock%} - Rails Hosting.ch - Ruby on Rails as easy as possible - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
- -
-
- -
- -

rails-hosting.ch

-

Ruby on Rails as easy as possible

-
- -
-
-
- -
- - -
- - - - -
- -
- -
-
-
-
-

How it works :

    +{%block specification %}
  • Ubuntu 14.04 as the operating system, full root access!

  • -
  • rbenv to let you decide which Ruby version you want to use

  • nginx as the frontend Server (optional with SSL Support)

  • uwsgi to have your application talk to nginx and vice versa

  • PostgreSQL as the database

    -
-
-
- -
-
- -
- - -
- -
-
-
-
-
-
-

Option 1 : Your own infrastructure

-

We configure your own infrastructure for Ruby on Rails. Keep the comfort and safety of being at your home, while we set things up for you.

-
-
- -
-
- -
- -
- - - - -
- -
- -
-
-
-
-

Option 2 : Our infrastructure

-

We take care of everything for you! You don't need your infrastructure. We give you everything you need in Ruby on Rails hosting. Full root access, 24x7 support.

-
-
- -
-
- -
- - -
- - - -
- -
- -
-
-
-
-

Hosting Price Samples

-

Here are samples of our Ruby on Rails hosting offers, suited for different projects. Our offer examples come in different size, speed, and storage.

-
- -
-
-
- - - -
- -
-
- -
-

Economy

-

Suited for smaller applications

-

1 core,

-

1 GiB RAM,

-

10 GiB system image (25 CHF)

-

- Buy Now! More Info

-
-
-
- -
-
- -
-

Standard

-

Suited for standard Ruby on Rails applications

-

1 core,

-

2 GiB RAM,

-

10 GiB system image (30 CHF)

-

- Buy Now! More Info -

-
-
-
- -
-
- -
-

Deluxe

-

Suited for performance critical project

-

2 cores,

-

4 GiB Ram,

-

10 GiB system image (50 CHF)

-

- Buy Now! More Info

-
-
-
- -
-
- -
-

Presidential Premium

-

Suited for performance critical &

-

high storage demand projects

-

4 Cores, 8 GiB RAM, 10 GiB System image,

-

100 GiB Data image (190 CHF)

-

- Buy Now! More Info -

-
-
-
- -
- -
- -
- - -
- - -
-
- -
-
- -
-

Let me try!

-

 

-

 

-
-
- - -
- -
- - - -
-
-
- -
- - -
- - - - - - - - - - - - - - - - - - + +{%endblock%} \ No newline at end of file diff --git a/railshosting/views.py b/railshosting/views.py index d4ecf605..7ebfe106 100644 --- a/railshosting/views.py +++ b/railshosting/views.py @@ -30,7 +30,26 @@ def index(request): return render(request, 'railshosting/index.html', context) def djangohosting(request): - return render(request, 'railshosting/django.html') + context = {} + context["hosting"]="django" + context["hosting_long"]="Django" + context["domain"]="django-hosting.ch" + context["google_analytics"]="the right id" + context["email"]="info@django-hosting.ch" + + return render(request, 'railshosting/django.html', context) + + +def railshosting(request): + context = {} + + context["hosting"]="rails" + context["hosting_long"]="Ruby On Rails" + context["domain"]="rails-hosting.ch" + context["google_analytics"]="the right id" + context["email"]="info@rails-hosting.ch" + + return render(request, 'railshosting/django.html', context) def beta(request): return render(request, 'railshosting/beta.html')