diff --git a/railshosting/static/railshosting/img/how3.png b/railshosting/static/railshosting/img/how3.png deleted file mode 100644 index 2f16f8f1..00000000 Binary files a/railshosting/static/railshosting/img/how3.png and /dev/null differ diff --git a/railshosting/templates/railshosting/base.html b/railshosting/templates/railshosting/base.html index 63a33048..236d99ca 100644 --- a/railshosting/templates/railshosting/base.html +++ b/railshosting/templates/railshosting/base.html @@ -11,7 +11,7 @@ - {% block title %} {%endblock%} as easy as possible + {{ domain }} - {{ hosting }} hosting as easy as possible @@ -32,8 +32,14 @@ - {% block customcss %} {%endblock%} - + {% with 'railshosting/img/'|add:hosting|add:'-intro-bg.png' as image_static %} + alt=""> + +{% endwith %} + + + + + + + + + + + + + +
+
+ +
+
+ +
+ +

django-hosting.ch

+

django hosting as easy as possible

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

How it works :

    +
  • +

    Ubuntu 14.04 as the operating system, full root access!

    +
  • +
  • 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 django. 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 django hosting. Full root access, 24x7 support.

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

Hosting Price Samples

+

Here are samples of our django 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!

+

 

+

 

+ {% if error_message %}

{{ error_message }}

{% endif %} + {{ form.non_field_errors }} + {{ form.email.errors }} +
+ {% csrf_token %} +
+ + +
+ +
+ + + +
+
+
+ +
+ + +
+ + + + + + + + + + + + + + + + + + diff --git a/railshosting/templates/railshosting/nodejs.html b/railshosting/templates/railshosting/nodejs.html new file mode 100644 index 00000000..50b1a963 --- /dev/null +++ b/railshosting/templates/railshosting/nodejs.html @@ -0,0 +1,18 @@ +{% extends "railshosting/base.html" %} +{% load staticfiles %} + + +{%block customcss %} + + +{%endblock%} + +{%block specification %} +
  • +

    Ubuntu 14.04 as the operating system, full root access!

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

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

  • PostgreSQL as the database

    +
  • +{%endblock%} \ No newline at end of file diff --git a/railshosting/templates/railshosting/rails.html b/railshosting/templates/railshosting/rails.html new file mode 100644 index 00000000..6afaec58 --- /dev/null +++ b/railshosting/templates/railshosting/rails.html @@ -0,0 +1,16 @@ +{% extends "railshosting/base.html" %} +{% load staticfiles %} + +{%block customcss %} + +{%endblock%} + +{%block specification %} +
  • +

    Ubuntu 14.04 as the operating system, full root access!

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

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

  • PostgreSQL as the database

    +
  • +{%endblock%} \ No newline at end of file diff --git a/railshosting/urls.py b/railshosting/urls.py index 97e91151..3156082d 100644 --- a/railshosting/urls.py +++ b/railshosting/urls.py @@ -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'), ] diff --git a/railshosting/views.py b/railshosting/views.py index b8e68192..6379149e 100644 --- a/railshosting/views.py +++ b/railshosting/views.py @@ -37,7 +37,6 @@ def index(request): def hosting(request, context, page): email = RailsBetaUser(received_date=datetime.datetime.now()) - if request.method == 'POST': context['form'] = RailsBetaUserForm(request.POST, instance=email) if context['form'].is_valid(): @@ -48,13 +47,12 @@ def hosting(request, context, page): mail_managers(subject, message) - # send_mail('(Rails-)Hosting request', "email: %s" % email, 'django@ungleich.ch', ['nico.schottelius@ungleich.ch'], fail_silently=False) return HttpResponseRedirect(reverse("railshosting:beta")) else: context['form'] = RailsBetaUserForm() context['error_message'] = "a problem" - page = "railshosting/%s" % page + page = "railshosting/%s.html" % page return render(request, page, context) @@ -62,8 +60,6 @@ def hosting(request, context, page): # Hostings # def djangohosting(request): - page = 'django.html' - context = {} context["hosting"]="django" context["hosting_long"]="Django" @@ -71,11 +67,9 @@ def djangohosting(request): context["google_analytics"]="the right id" context["email"]="info@django-hosting.ch" - return hosting(request, page, context) + return hosting(request, context["hosting"], context) def railshosting(request): - page = 'rails.html' - context = {} context["hosting"]="rails" context["hosting_long"]="Ruby On Rails" @@ -83,7 +77,19 @@ def railshosting(request): context["google_analytics"]="the right id" context["email"]="info@rails-hosting.ch" - return hosting(request, page, context) + return hosting(request, context["hosting"], context) + +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 hosting(request, context["hosting"], context) def beta(request): return render(request, 'railshosting/beta.html') +