Changeset 2369
- Timestamp:
- 02/23/06 11:38:00 (3 years ago)
- Files:
-
- django/branches/magic-removal/django/conf/locale/pl (copied) (copied from django/trunk/django/conf/locale/pl)
- django/branches/magic-removal/django/conf/locale/pl/LC_MESSAGES (copied) (copied from django/trunk/django/conf/locale/pl/LC_MESSAGES)
- django/branches/magic-removal/django/conf/locale/pl/LC_MESSAGES/django.mo (copied) (copied from django/trunk/django/conf/locale/pl/LC_MESSAGES/django.mo)
- django/branches/magic-removal/django/conf/locale/pl/LC_MESSAGES/django.po (copied) (copied from django/trunk/django/conf/locale/pl/LC_MESSAGES/django.po)
- django/branches/magic-removal/django/core/handlers/base.py (modified) (1 diff)
- django/branches/magic-removal/django/core/handlers/modpython.py (modified) (1 diff)
- django/branches/magic-removal/django/core/handlers/wsgi.py (modified) (1 diff)
- django/branches/magic-removal/django/core/validators.py (modified) (1 diff)
- django/branches/magic-removal/docs/faq.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/branches/magic-removal/django/core/handlers/base.py
r2360 r2369 86 86 raise ValueError, "The view %s.%s didn't return an HttpResponse object." % (callback.__module__, callback.func_name) 87 87 88 # Apply response middleware89 for middleware_method in self._response_middleware:90 response = middleware_method(request, response)91 92 88 return response 93 89 except http.Http404, e: django/branches/magic-removal/django/core/handlers/modpython.py
r2360 r2369 148 148 dispatcher.send(signal=signals.request_finished) 149 149 150 # Apply response middleware 151 for middleware_method in self._response_middleware: 152 response = middleware_method(request, response) 153 150 154 # Convert our custom HttpResponse object back into the mod_python req. 151 155 populate_apache_request(response, req) django/branches/magic-removal/django/core/handlers/wsgi.py
r2360 r2369 164 164 dispatcher.send(signal=signals.request_finished) 165 165 166 # Apply response middleware 167 for middleware_method in self._response_middleware: 168 response = middleware_method(request, response) 169 166 170 try: 167 171 status_text = STATUS_CODE_TEXT[response.status_code] django/branches/magic-removal/django/core/validators.py
r2357 r2369 21 21 ansi_time_re = re.compile('^%s$' % _timere) 22 22 ansi_datetime_re = re.compile('^%s %s$' % (_datere, _timere)) 23 # From http://www.twilightsoul.com/Default.aspx?tabid=134 24 email_re = re.compile(r'^((([\t\x20]*[!#-\'\*\+\-/-9=\?A-Z\^-~]+[\t\x20]*|"[\x01-\x09\x0B\x0C\x0E-\x21\x23-\x5B\x5D-\x7F]*")+)?[\t\x20]*<([\t\x20]*[!#-\'\*\+\-/-9=\?A-Z\^-~]+(\.[!#-\'\*\+\-/-9=\?A-Z\^-~]+)*|"[\x01-\x09\x0B\x0C\x0E-\x21\x23-\x5B\x5D-\x7F]*")@(([a-zA-Z0-9][-a-zA-Z0-9]*[a-zA-Z0-9]\.)+[a-zA-Z]{2,}|\[(([0-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\])>[\t\x20]*|([\t\x20]*[!#-\'\*\+\-/-9=\?A-Z\^-~]+(\.[!#-\'\*\+\-/-9=\?A-Z\^-~]+)*|"[\x01-\x09\x0B\x0C\x0E-\x21\x23-\x5B\x5D-\x7F]*")@(([a-zA-Z0-9][-a-zA-Z0-9]*[a-zA-Z0-9]\.)+[a-zA-Z]{2,}|\[(([0-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}([0-9]?[0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\]))$') 23 email_re = re.compile(r'^[A-Z0-9._%-][+A-Z0-9._%-]*@(?:[A-Z0-9-]+\.)+[A-Z]{2,4}$', re.IGNORECASE) 25 24 integer_re = re.compile(r'^-?\d+$') 26 25 ip4_re = re.compile(r'^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$') django/branches/magic-removal/docs/faq.txt
r2273 r2369 104 104 .. _`Wilson Miner`: http://www.wilsonminer.com/live/ 105 105 106 Which sites use Django? 107 ----------------------- 108 109 The Django wiki features a `list of Django-powered sites`_. Feel free to add 110 your Django-powered site to the list. 111 112 .. _list of Django-powered sites: http://code.djangoproject.com/wiki/DjangoPoweredSites 113 106 114 Django appears to be a MVC framework, but you call the Controller the "view", and the View the "template". How come you don't use the standard names? 107 115 -----------------------------------------------------------------------------------------------------------------------------------------------------
