From 395c2851edd6eb4716bce5ccfd1ad4318cb3847e 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: Tue, 28 Jul 2015 21:01:59 +0200 Subject: [PATCH 1/4] django.html added --- .../templates/railshosting/django.html | 374 ++++++++++++++++++ 1 file changed, 374 insertions(+) create mode 100644 railshosting/templates/railshosting/django.html diff --git a/railshosting/templates/railshosting/django.html b/railshosting/templates/railshosting/django.html new file mode 100644 index 00000000..9661cfdc --- /dev/null +++ b/railshosting/templates/railshosting/django.html @@ -0,0 +1,374 @@ + + + + + + + + + + + + Rails Hosting.ch - Ruby on Rails as easy as possible + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ +
+ +

rails-hosting.ch

+

Ruby on Rails as easy as possible

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

How it works :

    +
  • +

    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!

+

 

+

 

+
+
+ + +
+ +
+ + + +
+
+
+ +
+ + +
+ + + + + + + + + + + + + + + + + + From b2c120fd9ea6e4682fe0d21c53a1cb37c098ca1c Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 28 Jul 2015 21:22:06 +0200 Subject: [PATCH 2/4] add route for djangohosting Signed-off-by: Nico Schottelius --- railshosting/urls.py | 1 + railshosting/views.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/railshosting/urls.py b/railshosting/urls.py index 6d978854..97e91151 100644 --- a/railshosting/urls.py +++ b/railshosting/urls.py @@ -5,4 +5,5 @@ from . import views urlpatterns = [ url(r'^$', views.index, name='index'), url(r'beta$', views.beta, name='beta'), + url(r'djangohosting$', views.djangohosting, name='djangohosting'), ] diff --git a/railshosting/views.py b/railshosting/views.py index cc0a2909..d4ecf605 100644 --- a/railshosting/views.py +++ b/railshosting/views.py @@ -29,5 +29,8 @@ def index(request): return render(request, 'railshosting/index.html', context) +def djangohosting(request): + return render(request, 'railshosting/django.html') + def beta(request): return render(request, 'railshosting/beta.html') From 95e354bf0d56d668d5ff29be86fa6280e7c7581a 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 3/4] 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') From c72fef6714f99cdf1675ba3b7f1ec09645074738 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 30 Jul 2015 01:09:23 +0200 Subject: [PATCH 4/4] Use rails page for rails Signed-off-by: Nico Schottelius --- railshosting/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/railshosting/views.py b/railshosting/views.py index 7ebfe106..16264cfe 100644 --- a/railshosting/views.py +++ b/railshosting/views.py @@ -50,6 +50,7 @@ def railshosting(request): context["google_analytics"]="the right id" context["email"]="info@rails-hosting.ch" - return render(request, 'railshosting/django.html', context) + return render(request, 'railshosting/rails.html', context) + def beta(request): return render(request, 'railshosting/beta.html')