Commits

Alexander Popelnukhin  committed fcb73b2

backup

  • Participants
  • Parent commits a16293c

Comments (0)

Files changed (5)

File media/favicon.ico

Added
New image

File media/txt/robots.txt

+User-agent: Yandex 
+Crawl-delay: 2
+Disallow: /media/
+Host: laqie.net
+
+User-agent: Google
+Crawl-delay: 2
+Disallow: /media/
+Host: laqie.net
+
+User-agent: Slurp
+Crawl-delay: 8
+Disallow: /media/
+Host: laqie.net
+
+User-agent: *
+Crawl-delay: 10
+Disallow: /media/
+Host: laqie.net

File templates/_base.html

     {% endblock %}
     {% block addjs %}
     {% endblock %}
+    <script type="text/javascript">
+
+      var _gaq = _gaq || [];
+      _gaq.push(['_setAccount', 'UA-20421593-1']);
+      _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>
 </head>
 <body>
     <div id="body">
 from django.conf.urls.defaults import patterns, include
+from django.conf import settings
 
 # Uncomment the next two lines to enable the admin:
 from django.contrib import admin
 urlpatterns = patterns('',
     # Example:
     (r'', include('blog.urls')),
+    (r'^favicon\.ico$', 'django.views.static.serve',
+        {'path':'/favicon.ico', 'document_root':settings.MEDIA_ROOT}),
+    (r'^robots\.txt$', 'django.views.static.serve',
+        {'path':'/txt/robots.txt', 'document_root':settings.MEDIA_ROOT})
     #url(r'^projects/', 'django.views.generic.simple.direct_to_template',
         #{'template':'projects.html', 'isProjects':True}, name='projects'),
     #url(r'^projects/', 'django.views.generic.simple.direct_to_template',
     #(r'^admin/', include(admin.site.urls)),
 )
 
-from django.conf import settings
 if settings.DEBUG:
     urlpatterns += patterns('',
         (r'^robots.txt$', 'django.views.static.serve',

File urls.pyc

Binary file modified.