community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r954011 - in /comdev/nearby_people: static/ static/favicon.ico static/robots.txt templates/404.html urls.py
Date Sat, 12 Jun 2010 14:28:02 GMT
Author: nick
Date: Sat Jun 12 14:28:01 2010
New Revision: 954011

URL: http://svn.apache.org/viewvc?rev=954011&view=rev
Log:
Add a 404 template, along with a robots.txt and favicon (the most common 404s we see)

Added:
    comdev/nearby_people/static/
    comdev/nearby_people/static/favicon.ico   (with props)
    comdev/nearby_people/static/robots.txt   (with props)
    comdev/nearby_people/templates/404.html   (with props)
Modified:
    comdev/nearby_people/urls.py

Added: comdev/nearby_people/static/favicon.ico
URL: http://svn.apache.org/viewvc/comdev/nearby_people/static/favicon.ico?rev=954011&view=auto
==============================================================================
Binary file - no diff available.

Propchange: comdev/nearby_people/static/favicon.ico
------------------------------------------------------------------------------
    svn:mime-type = image/x-icon

Added: comdev/nearby_people/static/robots.txt
URL: http://svn.apache.org/viewvc/comdev/nearby_people/static/robots.txt?rev=954011&view=auto
==============================================================================
--- comdev/nearby_people/static/robots.txt (added)
+++ comdev/nearby_people/static/robots.txt Sat Jun 12 14:28:01 2010
@@ -0,0 +1,2 @@
+User-agent: *
+Disallow: /admin/

Propchange: comdev/nearby_people/static/robots.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: comdev/nearby_people/templates/404.html
URL: http://svn.apache.org/viewvc/comdev/nearby_people/templates/404.html?rev=954011&view=auto
==============================================================================
--- comdev/nearby_people/templates/404.html (added)
+++ comdev/nearby_people/templates/404.html Sat Jun 12 14:28:01 2010
@@ -0,0 +1,49 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+	<title>The Nearby Apache People - Page Not Found</title>
+        <link media="screen, projection" type="text/css" href="http://apache.org/style/compressed.css"
rel="stylesheet">
+        <link media="screen, projection" type="text/css" href="http://apache.org/style/style.css"
rel="stylesheet">
+</head>
+
+<body>
+    <div class="container">
+    <hr class="space col"/> 
+     <div class="block">
+       <div class="column span-24"> 
+		<div id="header">
+            <h1>We were unable to find your page</h1>
+            <p class="alt">
+            Brought to you by the <a href="http://community.apache.org">Apache Community
Development Project</a>.
+            </p>
+		</div>
+      </div>
+    </div>
+    <div id="menu">
+      <table border="0" cellpadding="2" cellspacing="0" width="100%"> 
+        <tr class="topBar"> 
+            <td align="left" valign="middle" class="topBarDiv" nowrap="true" width="100%">
+                &nbsp;<a href="http://community.apache.org" title="Community Development
Site">Community Development Site</a>&nbsp;&gt;&nbsp;<a href="/pick_place"
title="Find People">Find People</a> 
+            </td> 
+            <td align="right" valign="middle" class="topBarDiv" align="left" nowrap="true">

+            <a href="http://community.apache.org/">Apache Community Development</a>
| <a href="http://mail-archives.apache.org/mod_mbox/community-dev/">Mailling List</a>

+            </td> 
+        </tr> 
+      </table>
+    </div>
+		
+		<div id="content">
+            <p class="highlight">Please see the links below for where you might wish
to visit instead:</p>
+			<ul>
+				<li><a href="http://community.apache.org/">The Apache Community Development
Project</a></li>
+				<li><a href="/">Search for nearby people</a></li>
+				<li><a href="/pick_place/?type=lm">Search for Local Mentors</a></li>
+				<li><a href="/pick_place/?type=sp">Search for Apache Speakers</a></li>
+			</ul>
+		</div>
+	</div>
+    </div>
+</body>
+</html>

Propchange: comdev/nearby_people/templates/404.html
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: comdev/nearby_people/urls.py
URL: http://svn.apache.org/viewvc/comdev/nearby_people/urls.py?rev=954011&r1=954010&r2=954011&view=diff
==============================================================================
--- comdev/nearby_people/urls.py (original)
+++ comdev/nearby_people/urls.py Sat Jun 12 14:28:01 2010
@@ -17,6 +17,10 @@
 
 from django.conf.urls.defaults import *
 
+# Where are we located?
+import os
+OUR_ROOT = os.path.realpath(os.path.dirname(__file__))
+
 # Uncomment the next two lines to enable the admin:
 # from django.contrib import admin
 # admin.autodiscover()
@@ -34,3 +38,10 @@ urlpatterns = patterns('',
     # Uncomment the next line to enable the admin:
     # (r'^admin/', include(admin.site.urls)),
 )
+
+# Some static resources
+urlpatterns += patterns('django.views.static',
+    (r'^static/(?P<path>.*)$', 'serve', {'document_root':OUR_ROOT+"/static/"}),
+    (r'^(favicon.ico)$', 'serve', {'document_root':OUR_ROOT+"/static/"}),
+    (r'^(robots.txt)$', 'serve', {'document_root':OUR_ROOT+"/static/"}),
+)



Mime
View raw message