Commits

Martyn CLEMENT committed 8013791

Added Fork You

  • Participants
  • Parent commits 8312560

Comments (0)

Files changed (8)

File medias/images/HAH_FORK_YOU_FRONT.jpg

Added
New image

File projects/fork_you/__init__.py

+import sys
+sys.path.append("../../apps/")
+sys.path.append("../../apps-ext/")
+sys.path.append("../../projects/")

File projects/fork_you/gunicorn.conf.py

+from local_settings import *
+
+bind = '127.0.0.1:8008'
+workers = 4
+worker_class = 'egg:gunicorn#sync'
+worker_connections = 1000
+timeout = 30
+keepalive = 2
+debug = False
+spew = False
+daemon = True
+pidfile = None
+umask = 0
+user = None
+group = None
+tmp_upload_dir = None
+logfile = '%stmp/gunicorn.log' % ROOT_PROJECT
+loglevel = 'warning'

File projects/fork_you/manage.py

+#!/usr/bin/env python
+import sys
+from django.core.management import execute_manager
+sys.path.append("../../projects/")
+
+try:
+    import settings # Assumed to be in the same directory.
+except ImportError:
+    sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
+    sys.exit(1)
+
+if __name__ == "__main__":
+    execute_manager(settings)

File projects/fork_you/settings.py

+from hah.local_settings import *
+from hah.settings import *
+
+DEBUG = True
+TEMPLATE_DEBUG = DEBUG
+ROOT_URLCONF = 'fork_you.urls'

File projects/fork_you/urls.py

+from django.conf.urls.defaults import *
+from django.views.generic.simple import direct_to_template
+from django.conf import settings
+
+urlpatterns = patterns('',
+    url(r'^$', direct_to_template, {'template': 'public/fork_you.html'}, name='root_url'),
+    
+    (r'^medias/(?P<path>.*)$', 'django.views.static.serve',
+            {'document_root': settings.MEDIA_ROOT}),
+)

File templates/public/division_zero.html

 			<br/><br/>
 		</div>
 		<div class='span-10'>
-			<img src="{{ MEDIA_URL }}images/HAH_DIVISION_ZERO_FRONT.jpg" width="365" height="362" alt="HAH DIVISION ZERO FRONT" />
+			<a href="http://division-zero.hardcoreanalhydrogen.com/medias/downloads/HAH_Division_zero_MP3_256.zip">
+				<img src="{{ MEDIA_URL }}images/HAH_DIVISION_ZERO_FRONT.jpg" width="365" height="362" alt="HAH DIVISION ZERO FRONT" style="border:1px solid #333;" />
+			</a>
 		</div>
 		<div class='span-9' style="margin-bottom:60px;">
 			<h1>Division Zero</h1>
 			<p>
 				Télécharger gratuitement l'album en entier <br/>
 				<ul id="dl_list">
-					<li><a href="">MP3 256Kbits</a> <span class='grey'>Bonne qualité</span></li>
-					<li><a href="">MP3 128Kbits</a> <span class='grey'>Connexions lentes</span></li>
+					<li><a href="http://division-zero.hardcoreanalhydrogen.com/medias/downloads/HAH_Division_zero_MP3_256.zip">MP3 256Kbits</a> <span class='grey'>Bonne qualité</span></li>
+					<li><a href="http://division-zero.hardcoreanalhydrogen.com/medias/downloads/HAH_Division_Zero_MP3_128.zip">MP3 128Kbits</a> <span class='grey'>Connexions lentes</span></li>
 				</ul>
 				N'oubliez pas de nous soutenir en partageant.
 			</p>

File templates/public/fork_you.html

+{% extends "base.html" %}
+
+{% block title %}
+	Fork You - Téléchargement gratuit
+{% endblock %}
+
+
+{% block meta_description %}Téléchargez gratuitement le deuxième album de HAH nommé Division Zero, commandez le CD, soutenez Hardcore Anal Hydrogen{% endblock %}
+
+
+{% block page %}
+	<a href="http://hardcoreanalhydrogen.com/news/" id="mainlink"></a>
+	<div id="album_frame">
+		<div class='span-3'>
+			<br/><br/>
+		</div>
+		<div class='span-10'>
+			<a href="http://division-zero.hardcoreanalhydrogen.com/medias/downloads/HAH_Fork_you_MP3_256.zip">
+				<img src="{{ MEDIA_URL }}images/HAH_FORK_YOU_FRONT.jpg" width="365"  alt="HAH DIVISION ZERO FRONT" style="border:1px solid #444;" />
+			</a>
+		</div>
+		<div class='span-9' style="margin-bottom:60px;">
+			<h1>Fork You</h1>
+			<p class='grey'>
+			25 juil. 2009<br/>Studio Phebes - Le logoscope (Monaco)
+			</p>
+			<ol>
+				<li>We will fork you</li>
+				<li>23-09</li>
+				<li>Decapitated_Succube</li>
+				<li>Cradle song</li>
+				<li>DWTFYW</li>
+				<li>Mercurocum</li>
+				<li>Verole</li>
+				<li>Nonsense</li>
+				<li>Cacastle</li>
+				<li>2070s</li>
+			</ol>
+		</div>
+		
+		<hr class="head_separator" />
+		
+		<div class="span-1"><br/></div>
+		
+		
+		<div class='span-7'>
+			<h3 class="mid">Soutenir</h3>
+			Soutiens Hardcore Anal Hydrogen, partage, aide à propager le message<br/>
+			<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=121802224572363&amp;xfbml=1"></script><fb:like href="http://hardcoreanalhydrogen.com/" send="true" layout="button_count" width="250" show_faces="true" font=""></fb:like>
+			<br/><br/>
+			<a href="http://twitter.com/?status=has just downloaded %23ForkYou the last %40hardcoreanal album http%3a%2f%2fbit.ly%2ferotOK" target="_blank">Poster un Tweet</a>
+		</div>
+		
+		<div class='span-7'>
+			<h3 class="mid">Télécharger</h3>
+			<p>
+				Télécharger gratuitement l'album en entier <br/>
+				<ul id="dl_list">
+					<li><a href="http://division-zero.hardcoreanalhydrogen.com/medias/downloads/HAH_Division_zero_MP3_256.zip">MP3 256Kbits</a> <span class='grey'>Bonne qualité</span></li>
+				</ul>
+				
+			</p>
+		</div>
+		
+		<div class='span-7'>
+			<h3 class="mid">Découvrir aussi</h3>
+			<p>
+				Division Zero <br/>
+				<a href="http://division-zero.hardcoreanalhydrogen.com">
+					<img src="{{ MEDIA_URL }}images/HAH_DIVISION_ZERO_FRONT.jpg" style="width:140px;border:1px solid #222;"/>
+				</a>
+			</p>
+			
+		</div>
+		
+
+		
+		
+	</div>
+	
+	<div class='clear'></div>
+	<br/><br/>
+	
+	
+{% endblock %}
+
+
+{% block analytics %}
+<script type="text/javascript">
+  var _gaq = _gaq || [];
+  _gaq.push(['_setAccount', 'UA-22502231-2']);
+  _gaq.push(['_trackPageview']);
+  (function() {
+    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+  })();
+</script>
+{% endblock %}
+
+
+
+
+{% block extrahead %}
+	<style type="text/css" media="screen">
+		#mainlink{
+			display:block;
+			position:absolute;
+			border:none;
+			text-decoration:none;
+			width:800px;
+			height:200px;
+			margin:0 auto;
+			top:0;
+			z-index:5;
+		}
+		#album_frame{margin-top:50px;}
+		.grey{color:#444!important;}
+	</style>
+	<script type="text/javascript" charset="utf-8">
+		$(document).ready(function() {
+			$("#id_dl").click(function(){
+				$(this).fadeOut(function(){
+					$("#dl_list").fadeIn();
+				});
+			});
+		});
+	</script>
+<style type="text/css" media="screen">.at300bs{width:0!important;background:none!important;margin:0!important;}</style>
+{% endblock %}