david / biologeek (http://biologeek.com/)

Source code of biologeek.com weblog under WTFPL.

Clone this repository (size: 252.7 KB): HTTPS / SSH
$ hg clone http://code.welldev.org/biologeek

Changed (Δ2.0 KB):

raw changeset »

biologeek/redirections.py (5 lines added, 0 lines removed)

biologeek/templates/feeds/comments_title.html (1 lines added, 1 lines removed)

biologeek/templates/photologue/gallery_detail.html (32 lines added, 1 lines removed)

biologeek/templates/photologue/gallery_list.html (13 lines added, 12 lines removed)

biologeek/templates/photologue/photo_detail.html (16 lines added, 10 lines removed)

biologeek/templates/photologue/photo_login.html (4 lines added, 1 lines removed)

biologeek/templates/static/contact.html (2 lines added, 2 lines removed)

biologeek/urls.py (3 lines added, 1 lines removed)

photologue/specs.py (2 lines added, 2 lines removed)

Up to file-list biologeek/redirections.py:

@@ -6,6 +6,7 @@ from django.contrib.comments.models impo
6
6
7
7
from journal.models import Post
8
8
from bistrot.models import Thought
9
from photologue.models import Photo
9
10
10
11
def redirect(url):
11
12
    def inner(request):
@@ -82,6 +83,10 @@ def redirect_id_to_thought(request, obje
82
83
    thought = get_object_or_404(Thought, id=object_id)
83
84
    return HttpResponsePermanentRedirect(thought.get_absolute_url())
84
85
86
def redirect_id_to_photo(request, object_id):
87
    photo = get_object_or_404(Photo, id=object_id)
88
    return HttpResponsePermanentRedirect(photo.get_absolute_url())
89
85
90
86
91
## Warning, order is important!
87
92
urlpatterns = patterns('',

Up to file-list biologeek/templates/feeds/comments_title.html:

1
{{ obj.name }} au sujet de {{ obj.content_object }}
1
{{ obj.name }} au sujet de {{ obj.content_object|safe }}

Up to file-list biologeek/templates/photologue/gallery_detail.html:

26
26
    <p>Revenir à <a href="{% url pl-gallery-archive %}#help" title="">la liste des albums</a>.</p>
27
27
</div>
28
28
{% endblock %}
29
{% block extra_content %}{% endblock %}
29
{% block extra_content %}
30
<div id="contextual">
31
    <hr />
32
    <h3>Quelques précisions</h3>
33
    <div class="column span-7 colborder" id="first-choice">
34
        <h4>Prises de vue</h4>
35
        <p>
36
          J'utilise un Nikon D90 (anciennement D40) avec
37
          les objectifs Nikkor 50mm f/1.8, 18-200mm AF-S VR f/3.5-5.6 et 
38
          dernièrement 24-70mm AF-S f/2.8 et 85mm f/1.4 (w00t!).
39
        </p>
40
    </div>
41
    <div class="column span-7 colborder">
42
        <h4>Commentaires</h4>
43
        <p>
44
          Je n'ai pas ajouté les commentaires sur cette partie mais si vous
45
          avez une remarque pertinente je serais ravi d'en discuter par email,
46
          je suis débutant et tous les conseils sont bons à prendre !
47
        </p>
48
    </div>
49
    <div class="column span-7 last">
50
        <h4>Réutilisation</h4>
51
        <p>
52
          Toute réutilisation d'une photo de cette partie doit faire l'objet
53
          d'une demande préalable. Ces conditions sont fermes, veuillez les
54
          accepter. Bonus : ça me permettra de vous l'envoyer en bien 
55
          meilleure qualité ;-)
56
        </p>
57
    </div>
58
    <hr />
59
</div>
60
{% endblock %}
30
61
{% block footer %}{% endblock %}

Up to file-list biologeek/templates/photologue/gallery_list.html:

5
5
{% block extra_body %}class="photos unicol"{% endblock %}
6
6
7
7
{% block info %}
8
    <h1 class="post-title bottom">Albums photo de voyages et soirées</h1>
8
    <h1 class="post-title bottom">Albums photo de voyages, soirées et autres</h1>
9
9
    <h3 class="quiet">
10
10
      Sans prétention, la majorité des albums sont privés.<br/>
11
      <em>(retrait des photos immédiat sur simple demande)</em>
11
      <em>(retrait des photos personnelles immédiat sur simple demande)</em>
12
12
    </h3>
13
13
{% endblock %}
14
14
38
38
{% block extra_content %}
39
39
<div id="contextual">
40
40
    <hr />
41
    <h3>Matériel</h3>
41
    <h3>Quelques précisions</h3>
42
42
    <div class="column span-7 colborder" id="first-choice">
43
43
        <h4>Prises de vue</h4>
44
44
        <p>
45
45
          J'utilise un Nikon D90 (anciennement D40) avec
46
46
          les objectifs Nikkor 50mm f/1.8, 18-200mm AF-S VR f/3.5-5.6 et 
47
          dernièrement 24-70mm AF-S f/2.8 (w00t!).
47
          dernièrement 24-70mm AF-S f/2.8 et 85mm f/1.4 (w00t!).
48
48
        </p>
49
49
    </div>
50
50
    <div class="column span-7 colborder">
51
        <h4>Retouches</h4>
51
        <h4>Commentaires</h4>
52
52
        <p>
53
          Je joue un peu avec Aperture pour certaines photos mais sinon je
54
          fais relativement peu de modifications donc iPhoto me suffit bien
55
          souvent.
53
          Je n'ai pas ajouté les commentaires sur cette partie mais si vous
54
          avez une remarque pertinente je serais ravi d'en discuter par email,
55
          je suis débutant et tous les conseils sont bons à prendre !
56
56
        </p>
57
57
    </div>
58
58
    <div class="column span-7 last">
59
        <h4>Misc</h4>
59
        <h4>Réutilisation</h4>
60
60
        <p>
61
          J'ai un sac Kata sensitivity qui est juste parfait et un monopod
62
          lorsque je tremble un peu trop. Un conseil à me donner sur certaines
63
          photos ? N'hésitez pas !
61
          Toute réutilisation d'une photo de cette partie doit faire l'objet
62
          d'une demande préalable. Ces conditions sont fermes, veuillez les
63
          accepter. Bonus : ça me permettra de vous l'envoyer en bien 
64
          meilleure qualité ;-)
64
65
        </p>
65
66
    </div>
66
67
    <hr />

Up to file-list biologeek/templates/photologue/photo_detail.html:

16
16
      </h3>
17
17
{% endblock %}
18
18
19
{% block main %}
20
  <div class="photo">
21
    {#<a href="{{ photo.image.url }}"><img src="{{ photo.display.url }}" alt="{{ photo.title }}"/></a>#}
22
    <img src="{{ photo.display.url }}" alt="{{ photo.title }}"/>
23
    <div class="photo-footer">
24
      {% previous_in_gallery photo gallery %}
25
      {% next_in_gallery photo gallery %}
26
      <p>Revenir à l'album <a href="{{ gallery.get_absolute_url }}#help" title="">{{ gallery }}</a></p>
27
      <br class="clear"/>
19
{% block content %}
20
<div id="content">
21
    <div class="container"{% block containerextra %}{% endblock %}>
22
        <div class="column span-24">
23
            <div class="photo">
24
              {#<a href="{{ photo.image.url }}"><img src="{{ photo.display.url }}" alt="{{ photo.title }}"/></a>#}
25
              <img src="{{ photo.display.url }}" alt="{{ photo.title }}"/>
26
              <div class="photo-footer">
27
                {% previous_in_gallery photo gallery %}
28
                {% next_in_gallery photo gallery %}
29
                <p>Revenir à l'album <a href="{{ gallery.get_absolute_url }}#help" title="">{{ gallery }}</a></p>
30
                <br class="clear"/>
31
              </div>
32
            </div>
33
        </div>
28
34
    </div>
29
  </div>
35
</div>
30
36
{% endblock %}
31
37
32
38
{% block extra_content %}

Up to file-list biologeek/templates/photologue/photo_login.html:

7
7
8
8
{% block info %}
9
9
    <h1 class="post-title bottom">Identification</h1>
10
    <h3 class="quiet">Vous devez être identifié pour accéder à ces photos</h3>
10
    <h3 class="quiet">
11
      Vous devez être identifié pour accéder à <a href="{% url pl-gallery-archive %}" 
12
      title="Revenir aux albums photos publics">ces photos</a>
13
    </h3>
11
14
{% endblock %}
12
15
13
16
{% block main %}

Up to file-list biologeek/templates/static/contact.html:

17
17
</p>
18
18
<h2 id="licence">Réutilisation</h2>
19
19
<p>
20
    Sauf mention contraire explicite, l'intégralité des publications de ce site
21
    (écrits, code, images) sont sous licence <a 
20
    Sauf mention contraire explicite (photos par exemple), l'intégralité des 
21
    publications de ce site (écrits, code, images) sont sous licence <a 
22
22
    href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.fr" 
23
23
    title="Accès à la licence">Creative Commons BY-NC-SA</a> dont je précise
24
24
    ce que j'entends par paternité car il y a un peu d'abus à ce niveau.

Up to file-list biologeek/urls.py:

@@ -11,7 +11,8 @@ from django.http import HttpResponse, Ht
11
11
from django.contrib import admin
12
12
from django.contrib.auth.views import login, logout
13
13
14
from redirections import redirect, redirect_id_to_post, redirect_id_to_thought
14
from redirections import redirect, redirect_id_to_post, redirect_id_to_thought,\
15
        redirect_id_to_photo
15
16
from sitemaps import sitemaps
16
17
from journal.models import Post
17
18
from bistrot.models import Thought
@@ -52,6 +53,7 @@ urlpatterns = patterns('',
52
53
    (r'^realisations/',     redirect('http://media.biologeek.com')),
53
54
    url(r'^journal/(?P<object_id>\d+)/$', redirect_id_to_post,          name="redirect_id_post"),
54
55
    url(r'^bistrot/(?P<object_id>\d+)/$', redirect_id_to_thought,       name="redirect_id_thought"),
56
    url(r'^photos/(?P<object_id>\d+)/$',  redirect_id_to_photo,         name="redirect_id_photo"),
55
57
56
58
    # Search
57
59
    url(r'^recherche/$',                                    search  ,   name="recherche"),

Up to file-list photologue/specs.py:

@@ -13,8 +13,8 @@ class ResizeThumbnail(processors.Resize)
13
13
    height = 90
14
14
    
15
15
class ResizeDisplay(processors.Resize):
16
    width = 600
17
    height = 600
16
    width = 900
17
    height = 900
18
18
    
19
19
#class EnhanceSmall(processors.Adjustment):
20
20
#    contrast = 1.2