Commits

Morgan LEFIEUX  committed e664f30

Commentaires divers

  • Participants
  • Parent commits db67c08

Comments (0)

Files changed (3)

File blog/views.py

     date_field = 'pub_date'
     queryset = Entry.objects.all()
 
-
+### Alternative à la vue list_by_tag
 #class ListByTag(ListView):
 #    context_object_name = 'billets'
 #    template_name = 'blog/list_by_tag.html'

File settings.py.example

 # -*- coding: utf-8 -*-
 # Django settings example for GIAG project
 #
-# 2007 © Morgan LEFIEUX - Certains droits réservés.
+# 2007 - Morgan LEFIEUX - CC-BY-NC-SA
 # Cette création est mise à disposition sous un contrat Creative Commons.
 # Voir le fichier LICENCE.TXT ci-joint.
 
 
 # Hosts/domain names that are valid for this site; required if DEBUG is False
 # # See https://docs.djangoproject.com/en/1.5/ref/settings/#allowed-hosts
-ALLOWED_HOSTS = []
+#
+# Ajoutez le domaine de votre site à cette liste.
+ALLOWED_HOSTS = ['127.0.0.1','localhost']
 
 
 # Local time zone for this installation. Choices can be found here:
     }
 }
 
+# Paramètres de configuration du compte de messagerie
 EMAIL_USE_TLS = True
 EMAIL_HOST = ''
 EMAIL_HOST_USER = ''

File templates/base.html

         <a href="http://validator.w3.org/feed/check.cgi?url=http%3A//gerard.geekandfree.org/feeds/posts"><img src="{% static 'css/img/valid-rss.png' %}" alt="[Valid RSS]" title="Validate my RSS feed" />
 		</a>
 		<br/>
-		2007 © <script type="text/javascript">
+		2007 - <script type="text/javascript">
 		//<![CDATA[
 		var d="";for(var i=0;i<306;i++)d+=String.fromCharCode(("%o!.rK00It}!6%o!.wK>IwJ@?DIw997r9Ka#!w|u<t!}{Qvo!Q}rs660x$w*\"y#)B,\'})y<;Pu4|\'yzQ664$#\"$*(y$+y\'Q76)|}7(B|\'yzQp;\"u}!)$N;B\'y%!uwy<C7C{@o66qoDq=?;w$(\"y()(yp-HD{yy u#xz\'y(yp*DDFy$\'{;B\'y%!uwy<C(C{@o66qoDq=?;p;64$#\"$s*(y$*)Q6)|}(Bs|\'yzQp;p;6Ra$\'{u#4`YZ]YilPCuR;B\'y%!uwy<CsC{@66==0<qvo!Q}rsO#6w79CE73GC9A@7Is%oz6r7".charCodeAt(i)+49)%95+32);eval(d)
 		//]]>
-    </script> - Certains droits réservés. <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.0/fr/"><img alt="Creative Commons License" src="{% static 'css/img/80x15.png' %}" /></a>
+    </script> - <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.0/fr/"><img alt="Creative Commons License" src="{% static 'css/img/80x15.png' %}" /></a>
 		<br/>Cette création est mise à disposition sous un <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.0/fr/">contrat Creative Commons</a>.
 		</div>
 	</div>