Ticket #11509: 11509.3.diff

File 11509.3.diff, 47.2 KB (added by Simon Meers, 14 years ago)

More thorough patch

  • django/db/models/fields/__init__.py

     
    514514        raise exceptions.ValidationError(self.error_messages['invalid'])
    515515
    516516    def get_prep_lookup(self, lookup_type, value):
    517         # Special-case handling for filters coming from a web request (e.g. the
     517        # Special-case handling for filters coming from a Web request (e.g. the
    518518        # admin interface). Only works for scalar values (not lists). If you're
    519519        # passing in a list, you might as well make things the right type when
    520520        # constructing the list.
     
    954954        raise exceptions.ValidationError(self.error_messages['invalid'])
    955955
    956956    def get_prep_lookup(self, lookup_type, value):
    957         # Special-case handling for filters coming from a web request (e.g. the
     957        # Special-case handling for filters coming from a Web request (e.g. the
    958958        # admin interface). Only works for scalar values (not lists). If you're
    959959        # passing in a list, you might as well make things the right type when
    960960        # constructing the list.
  • django/db/transaction.py

     
    288288    This decorator activates commit on response. This way, if the view function
    289289    runs successfully, a commit is made; if the viewfunc produces an exception,
    290290    a rollback is made. This is one of the most common ways to do transaction
    291     control in web apps.
     291    control in Web apps.
    292292    """
    293293    def inner_commit_on_success(func, db=None):
    294294        def _commit_on_success(*args, **kw):
  • django/core/servers/fastcgi.py

     
    4646
    4747Examples:
    4848  Run a "standard" fastcgi process on a file-descriptor
    49   (for webservers which spawn your processes for you)
     49  (for Web servers which spawn your processes for you)
    5050    $ manage.py runfcgi method=threaded
    5151
    5252  Run a scgi server on a TCP host/port
  • django/core/handlers/base.py

     
    216216
    217217    # If Apache's mod_rewrite had a whack at the URL, Apache set either
    218218    # SCRIPT_URL or REDIRECT_URL to the full resource URL before applying any
    219     # rewrites. Unfortunately not every webserver (lighttpd!) passes this
     219    # rewrites. Unfortunately not every Web server (lighttpd!) passes this
    220220    # information through all the time, so FORCE_SCRIPT_NAME, above, is still
    221221    # needed.
    222222    script_url = environ.get('SCRIPT_URL', u'')
  • django/core/files/storage.py

     
    117117    def url(self, name):
    118118        """
    119119        Returns an absolute URL where the file's contents can be accessed
    120         directly by a web browser.
     120        directly by a Web browser.
    121121        """
    122122        raise NotImplementedError()
    123123
  • django/views/csrf.py

     
    3434  <p>CSRF verification failed. Request aborted.</p>
    3535{% if no_referer %}
    3636  <p>You are seeing this message because this HTTPS site requires a 'Referer
    37    header' to be sent by your web browser, but none was sent. This header is
     37   header' to be sent by your Web browser, but none was sent. This header is
    3838   required for security reasons, to ensure that your browser is not being
    3939   hijacked by third parties.</p>
    4040
  • django/utils/feedgenerator.py

     
    77>>> feed = feedgenerator.Rss201rev2Feed(
    88...     title=u"Poynter E-Media Tidbits",
    99...     link=u"http://www.poynter.org/column.asp?id=31",
    10 ...     description=u"A group weblog by the sharpest minds in online media/journalism/publishing.",
     10...     description=u"A group Weblog by the sharpest minds in online media/journalism/publishing.",
    1111...     language=u"en",
    1212... )
    1313>>> feed.add_item(
  • django/contrib/gis/geometry/regex.py

     
    22
    33# Regular expression for recognizing HEXEWKB and WKT.  A prophylactic measure
    44# to prevent potentially malicious input from reaching the underlying C
    5 # library.  Not a substitute for good web security programming practices.
     5# library.  Not a substitute for good Web security programming practices.
    66hex_regex = re.compile(r'^[0-9A-F]+$', re.I)
    77wkt_regex = re.compile(r'^(SRID=(?P<srid>\d+);)?'
    88                       r'(?P<wkt>'
  • django/contrib/gis/maps/google/__init__.py

     
    11"""
    22  This module houses the GoogleMap object, used for generating
    3    the needed javascript to embed Google Maps in a webpage.
     3   the needed javascript to embed Google Maps in a Web page.
    44
    55  Google(R) is a registered trademark of Google, Inc. of Mountain View, California.
    66
  • django/contrib/gis/gdal/srs.py

     
    3737#### Spatial Reference class. ####
    3838class SpatialReference(GDALBase):
    3939    """
    40     A wrapper for the OGRSpatialReference object.  According to the GDAL website,
     40    A wrapper for the OGRSpatialReference object.  According to the GDAL Web site,
    4141    the SpatialReference object "provide[s] services to represent coordinate
    4242    systems (projections and datums) and to transform between them."
    4343    """
  • django/contrib/comments/moderation.py

     
    1616-------
    1717
    1818First, we define a simple model class which might represent entries in
    19 a weblog::
     19a Weblog::
    2020
    2121    from django.db import models
    2222
  • django/contrib/auth/middleware.py

     
    1919
    2020class RemoteUserMiddleware(object):
    2121    """
    22     Middleware for utilizing web-server-provided authentication.
     22    Middleware for utilizing Web-server-provided authentication.
    2323
    2424    If request.user is not authenticated, then this middleware attempts to
    2525    authenticate the username passed in the ``REMOTE_USER`` request header.
  • django/contrib/sessions/models.py

     
    4040
    4141    For complete documentation on using Sessions in your code, consult
    4242    the sessions documentation that is shipped with Django (also available
    43     on the Django website).
     43    on the Django Web site).
    4444    """
    4545    session_key = models.CharField(_('session key'), max_length=40,
    4646                                   primary_key=True)
  • tests/modeltests/custom_columns/tests.py

     
    99        a1 = Author.objects.create(first_name="John", last_name="Smith")
    1010        a2 = Author.objects.create(first_name="Peter", last_name="Jones")
    1111
    12         art = Article.objects.create(headline="Django lets you build web apps easily")
     12        art = Article.objects.create(headline="Django lets you build Web apps easily")
    1313        art.authors = [a1, a2]
    1414
    1515        # Although the table and column names on Author have been set to custom
     
    5858        # Get the articles for an author
    5959        self.assertQuerysetEqual(
    6060            a.article_set.all(), [
    61                 "Django lets you build web apps easily",
     61                "Django lets you build Web apps easily",
    6262            ],
    6363            lambda a: a.headline
    6464        )
  • tests/regressiontests/file_storage/tests.py

     
    193193
    194194    def test_file_url(self):
    195195        """
    196         File storage returns a url to access a given file from the web.
     196        File storage returns a url to access a given file from the Web.
    197197        """
    198198        self.assertEqual(self.storage.url('test.file'),
    199199            '%s%s' % (self.storage.base_url, 'test.file'))
  • tests/regressiontests/custom_columns_regress/tests.py

     
    2222        self.authors = [self.a1, self.a2]
    2323
    2424    def test_basic_creation(self):
    25         art = Article(headline='Django lets you build web apps easily', primary_author=self.a1)
     25        art = Article(headline='Django lets you build Web apps easily', primary_author=self.a1)
    2626        art.save()
    2727        art.authors = [self.a1, self.a2]
    2828
     
    6868        )
    6969
    7070    def test_m2m_table(self):
    71         art = Article.objects.create(headline='Django lets you build web apps easily', primary_author=self.a1)
     71        art = Article.objects.create(headline='Django lets you build Web apps easily', primary_author=self.a1)
    7272        art.authors = self.authors
    7373        self.assertQuerysetEqual(
    7474            art.authors.all().order_by('last_name'),
     
    7676        )
    7777        self.assertQuerysetEqual(
    7878            self.a1.article_set.all(),
    79             ['<Article: Django lets you build web apps easily>']
     79            ['<Article: Django lets you build Web apps easily>']
    8080        )
    8181        self.assertQuerysetEqual(
    8282            art.authors.filter(last_name='Jones'),
  • docs/intro/tutorial01.txt

     
    263263.. admonition:: Projects vs. apps
    264264
    265265    What's the difference between a project and an app? An app is a Web
    266     application that does something -- e.g., a weblog system, a database of
     266    application that does something -- e.g., a Weblog system, a database of
    267267    public records or a simple poll app. A project is a collection of
    268268    configuration and apps for a particular Web site. A project can contain
    269269    multiple apps. An app can be in multiple projects.
  • docs/intro/whatsnext.txt

     
    3636different needs:
    3737
    3838    * The :doc:`introductory material </intro/index>` is designed for people new
    39       to Django -- or to web development in general. It doesn't cover anything
     39      to Django -- or to Web development in general. It doesn't cover anything
    4040      in depth, but instead gives a high-level overview of how developing in
    4141      Django "feels".
    4242
     
    166166
    167167    * Django's documentation uses a system called Sphinx__ to convert from
    168168      plain text to HTML. You'll need to install Sphinx by either downloading
    169       and installing the package from the Sphinx website, or by Python's
     169      and installing the package from the Sphinx Web site, or by Python's
    170170      ``easy_install``:
    171171
    172172      .. code-block:: bash
  • docs/intro/tutorial03.txt

     
    1010==========
    1111
    1212A view is a "type" of Web page in your Django application that generally serves
    13 a specific function and has a specific template. For example, in a weblog
     13a specific function and has a specific template. For example, in a Weblog
    1414application, you might have the following views:
    1515
    1616    * Blog homepage -- displays the latest few entries.
  • docs/intro/index.txt

     
    11Getting started
    22===============
    33
    4 New to Django? Or to web development in general? Well, you came to the right
     4New to Django? Or to Web development in general? Well, you came to the right
    55place: read this material to quickly get up and running.
    66
    77.. toctree::
  • docs/misc/api-stability.txt

     
    125125
    126126While we'll make every effort to keep these APIs stable -- and have no plans to
    127127break any contrib apps -- this is an area that will have more flux between
    128 releases. As the web evolves, Django must evolve with it.
     128releases. As the Web evolves, Django must evolve with it.
    129129
    130130However, any changes to contrib apps will come with an important guarantee:
    131131we'll make sure it's always possible to use an older version of a contrib app if
  • docs/internals/committers.txt

     
    2020    Adrian lives in Chicago, USA.
    2121
    2222`Simon Willison`_
    23     Simon is a well-respected web developer from England. He had a one-year
     23    Simon is a well-respected Web developer from England. He had a one-year
    2424    internship at World Online, during which time he and Adrian developed Django
    2525    from scratch. The most enthusiastic Brit you'll ever meet, he's passionate
    26     about best practices in web development and maintains a well-read
     26    about best practices in Web development and maintains a well-read
    2727    `web-development blog`_.
    2828
    2929    Simon lives in Brighton, England.
     
    3333    around Django and related open source technologies. A good deal of Jacob's
    3434    work time is devoted to working on Django. Jacob previously worked at World
    3535    Online, where Django was invented, where he was the lead developer of
    36     Ellington, a commercial web publishing platform for media companies.
     36    Ellington, a commercial Web publishing platform for media companies.
    3737
    3838    Jacob lives in Lawrence, Kansas, USA.
    3939
    4040`Wilson Miner`_
    4141    Wilson's design-fu is what makes Django look so nice. He designed the
    42     website you're looking at right now, as well as Django's acclaimed admin
     42    Web site you're looking at right now, as well as Django's acclaimed admin
    4343    interface. Wilson is the designer for EveryBlock_.
    4444
    4545    Wilson lives in San Francisco, USA.
     
    8989    Russell studied physics as an undergraduate, and studied neural networks for
    9090    his PhD. His first job was with a startup in the defense industry developing
    9191    simulation frameworks. Over time, mostly through work with Django, he's
    92     become more involved in web development.
     92    become more involved in Web development.
    9393
    9494    Russell has helped with several major aspects of Django, including a
    9595    couple major internal refactorings, creation of the test system, and more.
     
    134134
    135135`Brian Rosner`_
    136136    Brian is currently the tech lead at Eldarion_ managing and developing
    137     Django / Pinax_ based websites. He enjoys learning more about programming
     137    Django / Pinax_ based Web sites. He enjoys learning more about programming
    138138    languages and system architectures and contributing to open source
    139139    projects. Brian is the host of the `Django Dose`_ podcasts.
    140140   
     
    180180    Karen has a background in distributed operating systems (graduate school),
    181181    communications software (industry) and crossword puzzle construction
    182182    (freelance).  The last of these brought her to Django, in late 2006, when
    183     she set out to put a web front-end on her crossword puzzle database.
     183    she set out to put a Web front-end on her crossword puzzle database.
    184184    That done, she stuck around in the community answering questions, debugging
    185185    problems, etc. -- because coding puzzles are as much fun as word puzzles.
    186186
     
    190190    Jannis graduated in media design from `Bauhaus-University Weimar`_,
    191191    is the author of a number of pluggable Django apps and likes to
    192192    contribute to Open Source projects like Pinax_. He currently works as
    193     a freelance web developer and designer.
     193    a freelance Web developer and designer.
    194194
    195195    Jannis lives in Berlin, Germany.
    196196
     
    251251`James Bennett`_
    252252    James is Django's release manager; he also contributes to the documentation.
    253253
    254     James came to web development from philosophy when he discovered
     254    James came to Web development from philosophy when he discovered
    255255    that programmers get to argue just as much while collecting much
    256256    better pay. He lives in Lawrence, Kansas, where he works for the
    257257    Journal-World developing Ellington. He `keeps a blog`_, has
  • docs/internals/svn.txt

     
    2222to the code over time, so you'll need a copy of the Subversion client
    2323(a program called ``svn``) on your computer, and you'll want to
    2424familiarize yourself with the basics of how Subversion
    25 works. Subversion's web site offers downloads for various operating
     25works. Subversion's Web site offers downloads for various operating
    2626systems, and `a free online book`_ is available to help you get up to
    2727speed with using Subversion.
    2828
     
    3434directories: ``django`` contains the full source code for all Django
    3535releases, while ``djangoproject.com`` contains the source code and
    3636templates for the `djangoproject.com <http://www.djangoproject.com/>`_
    37 web site. For trying out in-development Django code, or contributing
     37Web site. For trying out in-development Django code, or contributing
    3838to Django, you'll always want to check out code from some location in
    3939the ``django`` directory.
    4040
     
    5858
    5959.. _Subversion: http://subversion.tigris.org/
    6060.. _a free online book: http://svnbook.red-bean.com/
    61 .. _A friendly web-based interface for browsing the code: http://code.djangoproject.com/browser/
     61.. _A friendly Web-based interface for browsing the code: http://code.djangoproject.com/browser/
    6262
    6363
    6464Working with Django's trunk
  • docs/howto/deployment/modpython.txt

     
    305305    import os
    306306    os.environ['PYTHON_EGG_CACHE'] = '/some/directory'
    307307
    308 Here, ``/some/directory`` is a directory that the Apache webserver process can
     308Here, ``/some/directory`` is a directory that the Apache Web server process can
    309309write to. It will be used as the location for any unpacking of code the eggs
    310310need to do.
    311311
  • docs/howto/deployment/index.txt

     
    11Deploying Django
    22================
    33
    4 Django's chock-full of shortcuts to make web developer's lives easier, but all
     4Django's chock-full of shortcuts to make Web developer's lives easier, but all
    55those tools are of no use if you can't easily deploy your sites. Since Django's
    66inception, ease of deployment has been a major goal. There's a number of good
    77ways to easily deploy Django:
  • docs/howto/deployment/fastcgi.txt

     
    2222
    2323Like mod_wsgi, FastCGI allows code to stay in memory, allowing requests to be
    2424served with no startup time. While mod_wsgi can either be configured embedded
    25 in the Apache webserver process or as a separate daemon process, a FastCGI
     25in the Apache Web server process or as a separate daemon process, a FastCGI
    2626process never runs inside the Web server process, always in a separate,
    2727persistent process.
    2828
     
    367367============================================
    368368
    369369Because many of these fastcgi-based solutions require rewriting the URL at
    370 some point inside the webserver, the path information that Django sees may not
     370some point inside the Web server, the path information that Django sees may not
    371371resemble the original URL that was passed in. This is a problem if the Django
    372372application is being served from under a particular prefix and you want your
    373373URLs from the ``{% url %}`` tag to look like the prefix, rather than the
    374374rewritten version, which might contain, for example, ``mysite.fcgi``.
    375375
    376376Django makes a good attempt to work out what the real script name prefix
    377 should be. In particular, if the webserver sets the ``SCRIPT_URL`` (specific
     377should be. In particular, if the Web server sets the ``SCRIPT_URL`` (specific
    378378to Apache's mod_rewrite), or ``REDIRECT_URL`` (set by a few servers, including
    379379Apache + mod_rewrite in some situations), Django will work out the original
    380380prefix automatically.
  • docs/howto/jython.txt

     
    5151.. _`django-jython`: http://code.google.com/p/django-jython/
    5252
    5353To install it, follow the `installation instructions`_ detailed on the project
    54 website. Also, read the `database backends`_ documentation there.
     54Web site. Also, read the `database backends`_ documentation there.
    5555
    5656.. _`installation instructions`: http://code.google.com/p/django-jython/wiki/Install
    5757.. _`database backends`: http://code.google.com/p/django-jython/wiki/DatabaseBackends
  • docs/howto/error-reporting.txt

     
    5555If those conditions are met, Django will e-mail the users listed in the
    5656:setting:`MANAGERS` setting whenever your code raises a 404 and the request has
    5757a referer. (It doesn't bother to e-mail for 404s that don't have a referer --
    58 those are usually just people typing in broken URLs or broken web 'bots).
     58those are usually just people typing in broken URLs or broken Web 'bots).
    5959
    6060You can tell Django to stop reporting particular 404s by tweaking the
    6161:setting:`IGNORABLE_404_ENDS` and :setting:`IGNORABLE_404_STARTS` settings. Both
  • docs/topics/auth.txt

     
    658658
    659659    When you call :func:`~django.contrib.auth.logout()`, the session data for
    660660    the current request is completely cleaned out. All existing data is
    661     removed. This is to prevent another person from using the same web browser
     661    removed. This is to prevent another person from using the same Web browser
    662662    to log in and have access to the previous user's session data. If you want
    663663    to put anything into the session that will be available to the user
    664664    immediately after logging out, do that *after* calling
  • docs/topics/http/urls.txt

     
    938938:func:`~django.db.models.permalink` to define URLs within your application.
    939939However, if your application constructs part of the URL hierarchy itself, you
    940940may occasionally need to generate URLs. In that case, you need to be able to
    941 find the base URL of the Django project within its web server
     941find the base URL of the Django project within its Web server
    942942(normally, :func:`~django.core.urlresolvers.reverse` takes care of this for
    943943you). In that case, you can call ``get_script_prefix()``, which will return the
    944944script prefix portion of the URL for your Django project. If your Django
    945 project is at the root of its webserver, this is always ``"/"``, but it can be
     945project is at the root of its Web server, this is always ``"/"``, but it can be
    946946changed, for instance  by using ``django.root`` (see :doc:`How to use
    947947Django with Apache and mod_python </howto/deployment/modpython>`).
  • docs/topics/http/middleware.txt

     
    152152      define ``__init__`` as requiring any arguments.
    153153
    154154    * Unlike the ``process_*`` methods which get called once per request,
    155       ``__init__`` gets called only *once*, when the web server starts up.
     155      ``__init__`` gets called only *once*, when the Web server starts up.
    156156
    157157Marking middleware as unused
    158158~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • docs/topics/install.txt

     
    2828=============================
    2929
    3030If you just want to experiment with Django, skip ahead to the next
    31 section; Django includes a lightweight web server you can use for
     31section; Django includes a lightweight Web server you can use for
    3232testing, so you won't need to set up Apache until you're ready to
    3333deploy Django in production.
    3434
     
    4040life of an Apache process, which leads to significant performance
    4141gains over other server arrangements. In daemon mode, mod_wsgi spawns
    4242an independent daemon process that handles requests. The daemon
    43 process can run as a different user than the webserver, possibly
     43process can run as a different user than the Web server, possibly
    4444leading to improved security, and the daemon process can be restarted
    45 without restarting the entire Apache webserver, possibly making
     45without restarting the entire Apache Web server, possibly making
    4646refreshing your codebase more seamless. Consult the mod_wsgi
    4747documentation to determine which mode is right for your setup. Make
    4848sure you have Apache installed, with the mod_wsgi module activated.
  • docs/topics/db/optimization.txt

     
    6868
    6969As well as caching of the whole ``QuerySet``, there is caching of the result of
    7070attributes on ORM objects. In general, attributes that are not callable will be
    71 cached. For example, assuming the :ref:`example weblog models
     71cached. For example, assuming the :ref:`example Weblog models
    7272<queryset-model-example>`:
    7373
    7474  >>> entry = Entry.objects.get(id=1)
  • docs/topics/db/queries.txt

     
    1111details of all the various model lookup options.
    1212
    1313Throughout this guide (and in the reference), we'll refer to the following
    14 models, which comprise a weblog application:
     14models, which comprise a Weblog application:
    1515
    1616.. _queryset-model-example:
    1717
  • docs/topics/forms/media.txt

     
    11Form Media
    22==========
    33
    4 Rendering an attractive and easy-to-use web form requires more than just
     4Rendering an attractive and easy-to-use Web form requires more than just
    55HTML - it also requires CSS stylesheets, and if you want to use fancy
    66"Web2.0" widgets, you may also need to include some JavaScript on each
    77page. The exact combination of CSS and JavaScript that is required for
     
    1414with the CSS and JavaScript that is required to render the calendar. When
    1515the Calendar widget is used on a form, Django is able to identify the CSS and
    1616JavaScript files that are required, and provide the list of file names
    17 in a form suitable for easy inclusion on your web page.
     17in a form suitable for easy inclusion on your Web page.
    1818
    1919.. admonition:: Media and Django Admin
    2020
  • docs/topics/conditional-view-processing.txt

     
    66
    77HTTP clients can send a number of headers to tell the server about copies of a
    88resource that they have already seen. This is commonly used when retrieving a
    9 web page (using an HTTP ``GET`` request) to avoid sending all the data for
     9Web page (using an HTTP ``GET`` request) to avoid sending all the data for
    1010something the client has already retrieved. However, the same headers can be
    1111used for all HTTP methods (``POST``, ``PUT``, ``DELETE``, etc).
    1212
  • docs/topics/logging.txt

     
    383383===========================
    384384
    385385Django provides a number of utilities to handle the unique
    386 requirements of logging in webserver environment.
     386requirements of logging in Web server environment.
    387387
    388388Loggers
    389389-------
  • docs/topics/email.txt

     
    580580======================
    581581
    582582There are times when you do not want Django to send e-mails at
    583 all. For example, while developing a website, you probably don't want
     583all. For example, while developing a Web site, you probably don't want
    584584to send out thousands of e-mails -- but you may want to validate that
    585585e-mails will be sent to the right people under the right conditions,
    586586and that those e-mails will contain the correct content.
  • docs/releases/1.1-beta-1.txt

     
    142142      notably, the memcached backend -- these operations will be atomic, and
    143143      quite fast.
    144144
    145     * Django now can :doc:`easily delegate authentication to the web server
     145    * Django now can :doc:`easily delegate authentication to the Web server
    146146      </howto/auth-remote-user>` via a new authentication backend that supports
    147147      the standard ``REMOTE_USER`` environment variable used for this purpose.
    148148
  • docs/releases/1.0.txt

     
    66
    77We've been looking forward to this moment for over three years, and it's finally
    88here. Django 1.0 represents a the largest milestone in Django's development to
    9 date: a web framework that a group of perfectionists can truly be proud of.
     9date: a Web framework that a group of perfectionists can truly be proud of.
    1010
    1111Django 1.0 represents over three years of community development as an Open
    1212Source project. Django's received contributions from hundreds of developers,
  • docs/releases/1.1.txt

     
    426426  notably, the memcached backend -- these operations will be atomic, and
    427427  quite fast.
    428428
    429 * Django now can :doc:`easily delegate authentication to the web server
     429* Django now can :doc:`easily delegate authentication to the Web server
    430430  </howto/auth-remote-user>` via a new authentication backend that supports
    431431  the standard ``REMOTE_USER`` environment variable used for this purpose.
    432432
  • docs/man/django-admin.1

     
    11.TH "django-admin.py" "1" "March 2008" "Django Project" ""
    22.SH "NAME"
    3 django\-admin.py \- Utility script for the Django web framework
     3django\-admin.py \- Utility script for the Django Web framework
    44.SH "SYNOPSIS"
    55.B django\-admin.py
    66.I <action>
  • docs/man/gather_profile_stats.1

     
    11.TH "gather_profile_stats.py" "1" "August 2007" "Django Project" ""
    22.SH "NAME"
    3 gather_profile_stats.py \- Performance analysis tool for the Django web
     3gather_profile_stats.py \- Performance analysis tool for the Django Web
    44framework
    55.SH "SYNOPSIS"
    66.B python gather_profile_stats.py
  • docs/man/daily_cleanup.1

     
    11.TH "daily_cleanup.py" "1" "August 2007" "Django Project" ""
    22.SH "NAME"
    3 daily_cleanup.py \- Database clean-up for the Django web framework
     3daily_cleanup.py \- Database clean-up for the Django Web framework
    44.SH "SYNOPSIS"
    55.B daily_cleanup.py
    66
  • docs/ref/models/querysets.txt

     
    99query </topics/db/queries>` guides, so you'll probably want to read and
    1010understand those documents before reading this one.
    1111
    12 Throughout this reference we'll use the :ref:`example weblog models
     12Throughout this reference we'll use the :ref:`example Weblog models
    1313<queryset-model-example>` presented in the :doc:`database query guide
    1414</topics/db/queries>`.
    1515
  • docs/ref/models/instances.txt

     
    99query </topics/db/queries>` guides, so you'll probably want to read and
    1010understand those documents before reading this one.
    1111
    12 Throughout this reference we'll use the :ref:`example weblog models
     12Throughout this reference we'll use the :ref:`example Weblog models
    1313<queryset-model-example>` presented in the :doc:`database query guide
    1414</topics/db/queries>`.
    1515
  • docs/ref/forms/widgets.txt

     
    210210When Django renders a widget as HTML, it only renders the bare minimum
    211211HTML - Django doesn't add a class definition, or any other widget-specific
    212212attributes. This means that all 'TextInput' widgets will appear the same
    213 on your web page.
     213on your Web page.
    214214
    215215If you want to make one widget look different to another, you need to
    216216specify additional attributes for each widget. When you specify a
     
    235235    <tr><th>Comment:</th><td><input type="text" name="comment" /></td></tr>
    236236
    237237
    238 On a real web page, you probably don't want every widget to look the same. You
     238On a real Web page, you probably don't want every widget to look the same. You
    239239might want a larger input element for the comment, and you might want the 'name'
    240240widget to have some special CSS class. To do this, you use the ``attrs``
    241241argument when creating the widget:
  • docs/ref/middleware.txt

     
    193193----------------------
    194194
    195195.. module:: django.middleware.transaction
    196    :synopsis: Middleware binding a database transaction to each web request.
     196   :synopsis: Middleware binding a database transaction to each Web request.
    197197
    198198.. class:: django.middleware.transaction.TransactionMiddleware
    199199
  • docs/ref/templates/builtins.txt

     
    21022102django.contrib.webdesign
    21032103~~~~~~~~~~~~~~~~~~~~~~~~
    21042104
    2105 A collection of template tags that can be useful while designing a website,
     2105A collection of template tags that can be useful while designing a Web site,
    21062106such as a generator of Lorem Ipsum text. See :doc:`/ref/contrib/webdesign`.
    21072107
    21082108i18n
  • docs/ref/contrib/gis/tutorial.txt

     
    66============
    77
    88GeoDjango is an add-on for Django that turns it into a world-class geographic
    9 web framework.  GeoDjango strives to make at as simple as possible to create
    10 geographic web applications, like location-based services.  Some features include:
     9Web framework.  GeoDjango strives to make at as simple as possible to create
     10geographic Web applications, like location-based services.  Some features include:
    1111
    1212* Django model fields for `OGC`_ geometries.
    1313* Extensions to Django's ORM for the querying and manipulation of spatial data.
     
    2525    please consult the :ref:`installation documentation <ref-gis-install>`
    2626    for more details.
    2727
    28 This tutorial will guide you through the creation of a geographic web
     28This tutorial will guide you through the creation of a geographic Web
    2929application for viewing the `world borders`_. [#]_ Some of the code
    3030used in this tutorial is taken from and/or inspired by the `GeoDjango
    3131basic apps`_ project. [#]_
     
    197197``FIPS: String (2.0)`` indicates that there's a ``FIPS`` character field
    198198with a maximum length of 2; similarly, ``LON: Real (8.3)`` is a floating-point
    199199field that holds a maximum of 8 digits up to three decimal places.  Although
    200 this information may be found right on the `world borders`_ website, this shows
     200this information may be found right on the `world borders`_ Web site, this shows
    201201you how to determine this information yourself when such metadata is not
    202202provided.
    203203
  • docs/ref/contrib/gis/install.txt

     
    147147geometries).  Specifically, the C API library is called (e.g., ``libgeos_c.so``)
    148148directly from Python using ctypes.
    149149
    150 First, download GEOS 3.2 from the refractions website and untar the source
     150First, download GEOS 3.2 from the refractions Web site and untar the source
    151151archive::
    152152
    153153    $ wget http://download.osgeo.org/geos/geos-3.2.2.tar.bz2
     
    640640community!  You can:
    641641
    642642* Join the ``#geodjango`` IRC channel on FreeNode (may be accessed on the
    643   web via `Mibbit`__).  Please be patient and polite -- while you may not
     643  Web via `Mibbit`__).  Please be patient and polite -- while you may not
    644644  get an immediate response, someone will attempt to answer your question
    645645  as soon as they see it.
    646646* Ask your question on the `GeoDjango`__ mailing list.
     
    10851085Python
    10861086^^^^^^
    10871087
    1088 First, download the `Python 2.6 installer`__ from the Python website.  Next,
     1088First, download the `Python 2.6 installer`__ from the Python Web site.  Next,
    10891089execute the installer and use defaults, e.g., keep 'Install for all users'
    10901090checked and the installation path set as ``C:\Python26``.
    10911091
     
    11011101^^^^^^^^^^
    11021102
    11031103First, select a mirror and download the latest `PostgreSQL 8.3 installer`__ from
    1104 the EnterpriseDB website.
     1104the EnterpriseDB Web site.
    11051105
    11061106.. note::
    11071107
  • docs/ref/contrib/gis/model-api.txt

     
    9797in the spatial database. [#fnsrid]_  Projection systems give the context to the
    9898coordinates that specify a location.  Although the details of `geodesy`__ are
    9999beyond the scope of this documentation, the general problem is that the earth
    100 is spherical and representations of the earth (e.g., paper maps, web maps)
     100is spherical and representations of the earth (e.g., paper maps, Web maps)
    101101are not.
    102102
    103103Most people are familiar with using latitude and longitude to reference a
     
    133133
    134134* `spatialreference.org`__: A Django-powered database of spatial reference
    135135  systems.
    136 * `The State Plane Coordinate System`__: A website covering the various
     136* `The State Plane Coordinate System`__: A Web site covering the various
    137137  projection systems used in the United States.  Much of the U.S. spatial
    138138  data encountered will be in one of these coordinate systems rather than
    139139  in a geographic coordinate system such as WGS84.
  • docs/ref/contrib/gis/index.txt

     
    99.. module:: django.contrib.gis
    1010   :synopsis: Geographic Information System (GIS) extensions for Django
    1111
    12 GeoDjango intends to be a world-class geographic web framework. Its goal is to
    13 make it as easy as possible to build GIS web applications and harness the power
     12GeoDjango intends to be a world-class geographic Web framework. Its goal is to
     13make it as easy as possible to build GIS Web applications and harness the power
    1414of spatially enabled data.
    1515
    1616.. toctree::
  • docs/ref/contrib/gis/deployment.txt

     
    88    not thread safe at this time.  Thus, it is *highly* recommended
    99    to not use threading when deploying -- in other words, use a
    1010    an appropriate configuration of Apache or the prefork method
    11     when using FastCGI through another web server.
     11    when using FastCGI through another Web server.
    1212
    1313Apache
    1414======
  • docs/ref/contrib/gis/utils.txt

     
    88   :synopsis: GeoDjango's collection of utilities.
    99
    1010The :mod:`django.contrib.gis.utils` module contains various utilities that are
    11 useful in creating geospatial web applications.
     11useful in creating geospatial Web applications.
    1212
    1313.. toctree::
    1414   :maxdepth: 2
  • docs/ref/contrib/comments/moderation.txt

     
    2929   model class and the class which specifies its moderation options.
    3030
    3131A simple example is the best illustration of this. Suppose we have the
    32 following model, which would represent entries in a weblog::
     32following model, which would represent entries in a Weblog::
    3333
    3434    from django.db import models
    3535   
  • docs/ref/contrib/sitemaps.txt

     
    7676A :class:`~django.contrib.sitemaps.Sitemap` class is a simple Python
    7777class that represents a "section" of entries in your sitemap. For example,
    7878one :class:`~django.contrib.sitemaps.Sitemap` class could represent
    79 all the entries of your weblog, while another could represent all of the
     79all the entries of your Weblog, while another could represent all of the
    8080events in your events calendar.
    8181
    8282In the simplest case, all these sections get lumped together into one
  • docs/ref/contrib/sites.txt

     
    33=====================
    44
    55.. module:: django.contrib.sites
    6    :synopsis: Lets you operate multiple web sites from the same database and
     6   :synopsis: Lets you operate multiple Web sites from the same database and
    77              Django project
    88
    99Django comes with an optional "sites" framework. It's a hook for associating
  • docs/ref/request-response.txt

     
    3737
    3838.. attribute:: HttpRequest.path_info
    3939
    40     Under some web server configurations, the portion of the URL after the host
     40    Under some Web server configurations, the portion of the URL after the host
    4141    name is split up into a script prefix portion and a path info portion
    4242    (this happens, for example, when using the ``django.root`` option
    4343    with the :doc:`modpython handler from Apache </howto/deployment/modpython>`).
    4444    The ``path_info`` attribute always contains the path info portion of the
    45     path, no matter what web server is being used. Using this instead of
     45    path, no matter what Web server is being used. Using this instead of
    4646    attr:`~HttpRequest.path` can make your code much easier to move between test
    4747    and deployment servers.
    4848
     
    152152        * ``QUERY_STRING`` -- The query string, as a single (unparsed) string.
    153153        * ``REMOTE_ADDR`` -- The IP address of the client.
    154154        * ``REMOTE_HOST`` -- The hostname of the client.
    155         * ``REMOTE_USER`` -- The user authenticated by the web server, if any.
     155        * ``REMOTE_USER`` -- The user authenticated by the Web server, if any.
    156156        * ``REQUEST_METHOD`` -- A string such as ``"GET"`` or ``"POST"``.
    157157        * ``SERVER_NAME`` -- The hostname of the server.
    158158        * ``SERVER_PORT`` -- The port of the server.
  • docs/ref/utils.txt

     
    193193    >>> feed = feedgenerator.Rss201rev2Feed(
    194194    ...     title=u"Poynter E-Media Tidbits",
    195195    ...     link=u"http://www.poynter.org/column.asp?id=31",
    196     ...     description=u"A group weblog by the sharpest minds in online media/journalism/publishing.",
     196    ...     description=u"A group Weblog by the sharpest minds in online media/journalism/publishing.",
    197197    ...     language=u"en",
    198198    ... )
    199199    >>> feed.add_item(
Back to Top