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> |         <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> | ||||||
|     <![endif]--> |     <![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> | <script> | ||||||
|   (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |   (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), |   (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" %} | {% extends "railshosting/base.html" %} | ||||||
| {% load staticfiles %} | {% load staticfiles %} | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
| {%block customcss %}  |  | ||||||
| <link href="{% static "railshosting/css/djangohosting.css" %}" rel="stylesheet"> |  | ||||||
| 
 |  | ||||||
| {%endblock%} |  | ||||||
| 
 |  | ||||||
| {%block specification %}  | {%block specification %}  | ||||||
|   <li><i class="fa-li fa fa-check-square-o fa-lg"></i> |   <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> |   <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%} | ||||||
|  | @ -6,4 +6,6 @@ urlpatterns = [ | ||||||
|     url(r'^$', views.index, name='index'), |     url(r'^$', views.index, name='index'), | ||||||
|     url(r'beta$', views.beta, name='beta'), |     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["google_analytics"]="the right id" | ||||||
|     context["email"]="info@django-hosting.ch" |     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): | def railshosting(request): | ||||||
|  | @ -50,7 +50,18 @@ def railshosting(request): | ||||||
|     context["google_analytics"]="the right id" |     context["google_analytics"]="the right id" | ||||||
|     context["email"]="info@rails-hosting.ch" |     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): | def beta(request): | ||||||
|     return render(request, 'railshosting/beta.html') |     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…
	
	Add table
		Add a link
		
	
		Reference in a new issue