Changeset 6526
- Timestamp:
- 10/18/07 15:06:31 (11 months ago)
- Files:
-
- djangoproject.com/django_website/apps/docs/views.py (modified) (1 diff)
- djangoproject.com/django_website/crontab (added)
- djangoproject.com/django_website/settings.py (modified) (4 diffs)
- djangoproject.com/django_website/templates/base.html (modified) (1 diff)
- djangoproject.com/django_website/templates/blog/entry_archive.html (modified) (1 diff)
- djangoproject.com/django_website/templates/blog/entry_detail.html (modified) (1 diff)
- djangoproject.com/django_website/templates/comments/freecomment_list.html (modified) (1 diff)
- djangoproject.com/django_website/templates/docs/0.96_index.html (modified) (1 diff)
- djangoproject.com/django_website/templates/docs/detail.html (modified) (1 diff)
- djangoproject.com/django_website/templates/docs/index.html (modified) (2 diffs)
- djangoproject.com/django_website/templates/docs/model_detail.html (modified) (1 diff)
- djangoproject.com/django_website/templates/docs/model_index.html (modified) (1 diff)
- djangoproject.com/django_website/templates/flatfiles/homepage.html (modified) (1 diff)
- djangoproject.com/static (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
djangoproject.com/django_website/apps/docs/views.py
r6060 r6526 66 66 try: 67 67 title, blurb = docstring_re.match(content).group(2).strip().split('\n', 1) 68 except AttributeError:68 except (AttributeError, ValueError): 69 69 continue # Skip models that don't have docstrings. 70 70 djangoproject.com/django_website/settings.py
r6472 r6526 2 2 3 3 # Far too clever trick to know if we're running on the deployment server. 4 DEVELOPMENT_MODE = ( "servers.ljworld.com" not in platform.node())4 DEVELOPMENT_MODE = (platform.node() != "djangoproject") 5 5 6 6 ADMINS = (('Adrian Holovaty','holovaty@gmail.com'), ('Jacob Kaplan-Moss', 'jacob@lawrence.com')) … … 10 10 MANAGERS = (('Wilson Miner','wminer@ljworld.com'),) 11 11 12 DATABASE_ENGINE = 'postgresql_psycopg2' 13 DATABASE_NAME = 'djangoproject' 14 TEMPLATE_DIRS = [os.path.join(os.path.dirname(__file__), "templates")] 15 12 16 if DEVELOPMENT_MODE: 13 17 DEBUG = True 14 18 PREPEND_WWW = False 15 DATABASE_ENGINE = 'postgresql_psycopg2'16 DATABASE_NAME = 'djangoproject'17 19 CACHE_BACKEND = "file:///tmp/djangoprojectcache/" 18 TEMPLATE_DIRS = [os.path.join(os.path.dirname(__file__), "templates")]19 20 DJANGO_SVN_ROOT = "http://code.djangoproject.com/svn/django/" 20 21 else: 21 22 DEBUG = False 22 23 PREPEND_WWW = True 23 DATABASE_ENGINE = 'postgresql'24 DATABASE_NAME = 'djangoproject'25 24 DATABASE_USER = 'apache' 26 DATABASE_PASSWORD = ''27 DATABASE_HOST = '10.0.0.80' # set to empty string for localhost28 DATABASE_PORT = '5433'29 25 CACHE_BACKEND = 'memcached://127.0.0.1:11211/' 30 TEMPLATE_DIRS = ['/home/ html/templates/djangoproject.com/']26 TEMPLATE_DIRS = ['/home/djangoproject.com/django_website/templates'] 31 27 DJANGO_SVN_ROOT = "file:///home/svn/django/django/" 32 28 … … 58 54 DJANGO_TESTS_PATH = "/home/html/djangoproject.com/tests/" 59 55 60 CACHE_MIDDLEWARE_SECONDS = 60 * 60 * 1 # 1 hour56 CACHE_MIDDLEWARE_SECONDS = 60 * 5 # 5 minutes 61 57 CACHE_MIDDLEWARE_KEY_PREFIX = 'djangoproject' 62 58 CACHE_MIDDLEWARE_GZIP = True 59 CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True 63 60 64 61 MIDDLEWARE_CLASSES = ( 62 'django.middleware.http.SetRemoteAddrFromForwardedFor', 65 63 'django.contrib.sessions.middleware.SessionMiddleware', 66 64 'django.contrib.auth.middleware.AuthenticationMiddleware', 67 65 'django.middleware.common.CommonMiddleware', 66 'django.middleware.cache.CacheMiddleware', 68 67 'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware', 69 68 'django.contrib.redirects.middleware.RedirectFallbackMiddleware', … … 75 74 USE_I18N = False 76 75 76 DEFAULT_FROM_EMAIL = "noreply@djangoproject.com" 77 77 78 # django-registration settings 78 79 ACCOUNT_ACTIVATION_DAYS = 3 djangoproject.com/django_website/templates/base.html
r4783 r6526 47 47 <!-- END #content --> 48 48 <div id="footer"> 49 <p>© 2005-{% now "Y" %} <a href="http://www.ljworld.com/">Lawrence Journal-World</a> unless otherwise noted. Django is a registered trademark of Lawrence Journal-World.</p> 50 </div> 49 <p>© 2005-{% now "Y" %} <a href="http://www.ljworld.com/">Lawrence Journal-World</a> unless otherwise noted. Django is a registered trademark of Lawrence Journal-World. 50 Hosting graciously provided by <a href="http://mediatemple.net/"> 51 <img style="vertical-align: middle; position: relative; top: -1px;" src="http://media.djangoproject.com/img/site/mt.png" alt="media temple"></a> 52 </p> 51 53 </div> 52 54 <!-- END #container --> djangoproject.com/django_website/templates/blog/entry_archive.html
r6472 r6526 8 8 9 9 {% for object in latest %} 10 {% get_public_free_comment_count for blog.entry object.id as comment_count %}11 10 <h2><a href="{{ object.get_absolute_url }}">{{ object.headline }}</a></h2> 12 11 {{ object.body }} 13 <p class="date small">Posted by <strong>{{ object.author }}</strong> on {{ object.pub_date|date:"F j, Y" }} | <a href="{{ object.get_absolute_url }}#comments">{{ comment_count }} comment{{ comment_count|pluralize }}</a></p>12 <p class="date small">Posted by <strong>{{ object.author }}</strong> on {{ object.pub_date|date:"F j, Y" }}</p> 14 13 {% endfor %} 15 14 djangoproject.com/django_website/templates/blog/entry_detail.html
r6472 r6526 22 22 {% endfor %} 23 23 24 <h2>Comments are closed</h2>25 26 24 {% if object.comments_enabled %} 25 <h2>Post a comment</h2> 27 26 {% free_comment_form for blog.entry object.id %} 28 27 {% else %} 28 <h2>Comments are closed</h2> 29 29 <p>To prevent spam, comments are no longer allowed after sixty days.</p> 30 30 {% endif %} djangoproject.com/django_website/templates/comments/freecomment_list.html
r6060 r6526 30 30 </span> 31 31 </a> 32 {% if perms.comments .delete_freecomment%}32 {% if perms.comments %} 33 33 <form style="display: inline" action="/admin/comments/freecomment/{{ comment.id }}/delete/" method="post"> 34 34 <input type="hidden" name="post" value="yes" /> djangoproject.com/django_website/templates/docs/0.96_index.html
r6060 r6526 7 7 {% ifequal version "trunk" %} 8 8 These docs are for Django's SVN release, which can be 9 significantly different thanprevious releases. Get old docs here:9 significantly different from previous releases. Get old docs here: 10 10 {% for r in all_versions %} 11 11 <a href="{{ r.version }}/">{{ r.version }}</a>{% if forloop.last %}.{% else %},{% endif %} djangoproject.com/django_website/templates/docs/detail.html
r6060 r6526 9 9 {% ifequal version "trunk" %} 10 10 This document is for Django's SVN release, which can be 11 significantly different thanprevious releases. Get old docs here:11 significantly different from previous releases. Get old docs here: 12 12 {% for r in all_versions %} 13 13 <a href="../{{ r.version }}/{{ slug }}/">{{ r.version }}</a>{% if forloop.last %}.{% else %},{% endif %} djangoproject.com/django_website/templates/docs/index.html
r6060 r6526 7 7 {% ifequal version "trunk" %} 8 8 These docs are for Django's SVN release, which can be 9 significantly different thanprevious releases. Get old docs here:9 significantly different from previous releases. Get old docs here: 10 10 {% for r in all_versions %} 11 11 <a href="{{ r.version }}/">{{ r.version }}</a>{% if forloop.last %}.{% else %},{% endif %} … … 66 66 <li><a href="syndication_feeds/">Syndication feeds (RSS and Atom)</a> (<code>django.contrib.syndication</code>)</li> 67 67 <li><a href="flatpages/">Flatpages</a> (<code>django.contrib.flatpages</code>)</li> 68 <li><strong>New:</strong> <a href="form_preview/">Form preview</a></li> 68 69 <li><a href="redirects/">Redirects</a> (<code>django.contrib.redirects</code>)</li> 69 70 <li><a href="sites/">Sites</a> (<code>django.contrib.sites</code>)</li> djangoproject.com/django_website/templates/docs/model_detail.html
r4795 r6526 9 9 {% ifequal version "trunk" %} 10 10 This example is for Django's SVN release, which can be 11 significantly different thanprevious releases. Get old examples here:11 significantly different from previous releases. Get old examples here: 12 12 {% for r in all_versions %} 13 13 <a href="/documentation/{{ r.version }}/models/{{ slug }}/">{{ r.version }}</a>{% if forloop.last %}.{% else %},{% endif %} djangoproject.com/django_website/templates/docs/model_index.html
r6060 r6526 7 7 {% ifequal version "trunk" %} 8 8 These examples are from Django's SVN release, which can be 9 significantly different thanprevious releases. Get old examples here:9 significantly different from previous releases. Get old examples here: 10 10 {% for r in all_versions %} 11 11 <a href="../{{ r.version }}/models/">{{ r.version }}</a>{% if forloop.last %}.{% else %},{% endif %} djangoproject.com/django_website/templates/flatfiles/homepage.html
r6472 r6526 75 75 76 76 {% for latest_entry in latest_entries %} 77 {% get_public_free_comment_count for blog.entry latest_entry.id as comment_count %}78 77 <h3><a href="{{ latest_entry.get_absolute_url }}">{{ latest_entry.headline }}</a></h3> 79 78 <p class="date">by <strong>{{ latest_entry.author }}</strong> on {{ latest_entry.pub_date|date:"M. j, Y" }}</p>
