Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removes PHP references

  • Loading branch information...
commit 55a2d5b577bcf988d33ca4c8decfae6e96f58c7b 1 parent 7eba5fb
Ben Longden authored
3  docs/intro/overview.txt
@@ -257,8 +257,7 @@ lookup and function calls.
257 257
 Note ``{{ article.pub_date|date:"F j, Y" }}`` uses a Unix-style "pipe" (the "|"
258 258
 character). This is called a template filter, and it's a way to filter the value
259 259
 of a variable. In this case, the date filter formats a Python datetime object in
260  
-the given format (as found in PHP's date function; yes, there is one good idea
261  
-in PHP).
  260
+the given format (as found in PHP's date function).
262 261
 
263 262
 You can chain together as many filters as you'd like. You can write custom
264 263
 filters. You can write custom template tags, which run custom Python code behind
12  docs/intro/tutorial01.txt
@@ -81,12 +81,12 @@ work, see :doc:`Troubleshooting </faq/troubleshooting>`.
81 81
 
82 82
 .. admonition:: Where should this code live?
83 83
 
84  
-    If your background is in PHP, you're probably used to putting code under the
85  
-    Web server's document root (in a place such as ``/var/www``). With Django,
86  
-    you don't do that. It's not a good idea to put any of this Python code
87  
-    within your Web server's document root, because it risks the possibility
88  
-    that people may be able to view your code over the Web. That's not good for
89  
-    security.
  84
+    If your background is in plain old PHP (with no use of modern frameworks),
  85
+    you're probably used to putting code under the Web server's document root
  86
+    (in a place such as ``/var/www``). With Django, you don't do that. It's
  87
+    not a good idea to put any of this Python code within your Web server's
  88
+    document root, because it risks the possibility that people may be able
  89
+    to view your code over the Web. That's not good for security.
90 90
 
91 91
     Put your code in some directory **outside** of the document root, such as
92 92
     :file:`/home/mycode`.
8  docs/intro/tutorial03.txt
@@ -235,11 +235,11 @@ be used to identify the matched pattern; and ``\d+`` is a regular expression to
235 235
 match a sequence of digits (i.e., a number).
236 236
 
237 237
 Because the URL patterns are regular expressions, there really is no limit on
238  
-what you can do with them. And there's no need to add URL cruft such as ``.php``
239  
--- unless you have a sick sense of humor, in which case you can do something
240  
-like this::
  238
+what you can do with them. And there's no need to add URL cruft such as
  239
+``.html`` -- unless you want to, in which case you can do something like
  240
+this::
241 241
 
242  
-    (r'^polls/latest\.php$', 'polls.views.index'),
  242
+    (r'^polls/latest\.html$', 'polls.views.index'),
243 243
 
244 244
 But, don't do that. It's silly.
245 245
 
3  docs/misc/design-philosophies.txt
@@ -203,9 +203,6 @@ We see a template system as a tool that controls presentation and
203 203
 presentation-related logic -- and that's it. The template system shouldn't
204 204
 support functionality that goes beyond this basic goal.
205 205
 
206  
-If we wanted to put everything in templates, we'd be using PHP. Been there,
207  
-done that, wised up.
208  
-
209 206
 Discourage redundancy
210 207
 ---------------------
211 208
 
6  docs/topics/templates.txt
@@ -16,9 +16,9 @@ or CheetahTemplate_, you should feel right at home with Django's templates.
16 16
 .. admonition:: Philosophy
17 17
 
18 18
     If you have a background in programming, or if you're used to languages
19  
-    like PHP which mix programming code directly into HTML, you'll want to
20  
-    bear in mind that the Django template system is not simply Python embedded
21  
-    into HTML. This is by design: the template system is meant to express
  19
+    which mix programming code directly into HTML, you'll want to bear in
  20
+    mind that the Django template system is not simply Python embedded into
  21
+    HTML. This is by design: the template system is meant to express
22 22
     presentation, not program logic.
23 23
 
24 24
     The Django template system provides tags which function similarly to some

0 notes on commit 55a2d5b

Please sign in to comment.
Something went wrong with that request. Please try again.