install.txt 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. .. _faq-install:
  2. FAQ: Installation
  3. =================
  4. How do I get started?
  5. ---------------------
  6. #. `Download the code`_.
  7. #. Install Django (read the :ref:`installation guide <intro-install>`).
  8. #. Walk through the :ref:`tutorial <intro-tutorial01>`.
  9. #. Check out the rest of the :ref:`documentation <index>`, and `ask questions`_ if you
  10. run into trouble.
  11. .. _`Download the code`: http://www.djangoproject.com/download/
  12. .. _ask questions: http://www.djangoproject.com/community/
  13. What are Django's prerequisites?
  14. --------------------------------
  15. Django requires Python_ 2.3 or later. No other Python libraries are required
  16. for basic Django usage.
  17. For a development environment -- if you just want to experiment with Django --
  18. you don't need to have a separate Web server installed; Django comes with its
  19. own lightweight development server. For a production environment, we recommend
  20. `Apache 2`_ and mod_python_, although Django follows the WSGI_ spec, which
  21. means it can run on a variety of server platforms.
  22. If you want to use Django with a database, which is probably the case, you'll
  23. also need a database engine. PostgreSQL_ is recommended, because we're
  24. PostgreSQL fans, and MySQL_, `SQLite 3`_, and Oracle_ are also supported.
  25. .. _Python: http://www.python.org/
  26. .. _Apache 2: http://httpd.apache.org/
  27. .. _mod_python: http://www.modpython.org/
  28. .. _WSGI: http://www.python.org/peps/pep-0333.html
  29. .. _PostgreSQL: http://www.postgresql.org/
  30. .. _MySQL: http://www.mysql.com/
  31. .. _`SQLite 3`: http://www.sqlite.org/
  32. .. _Oracle: http://www.oracle.com/
  33. Do I lose anything by using Python 2.3 versus newer Python versions, such as Python 2.5?
  34. ----------------------------------------------------------------------------------------
  35. Not in the core framework. Currently, Django itself officially
  36. supports any version of Python from 2.3 through 2.6,
  37. inclusive. However, some add-on components may require a more recent
  38. Python version; the ``django.contrib.gis`` component, for example,
  39. requires at least Python 2.4, and third-party applications for use
  40. with Django are, of course, free to set their own version
  41. requirements.
  42. Please note, however, that over the next year or two Django will begin
  43. dropping support for older Python versions as part of a migration
  44. which will end with Django running on Python 3.0 (see next question
  45. for details). So if you're just starting out with Python, it's
  46. recommended that you use the latest 2.x release (currently, Python
  47. 2.6). This will let you take advantage of the numerous improvements
  48. and optimizations to the Python language since version 2.3, and will
  49. help ease the process of dropping support for older Python versions on
  50. the road to Python 3.0.
  51. Can I use Django with Python 3.0?
  52. ---------------------------------
  53. Not at the moment. Python 3.0 introduced a number of
  54. backwards-incompatible changes to the Python language, and although
  55. these changes are generally a good thing for Python's future, it will
  56. be a while before most Python software catches up and is able to run
  57. on Python 3.0. For larger Python-based software like Django, the
  58. transition is expected to take at least a year or two (since it
  59. involves dropping support for older Python releases and so must be
  60. done gradually).
  61. In the meantime, Python 2.x releases will be supported and provided
  62. with bug fixes and security updates by the Python development team, so
  63. continuing to use a Python 2.x release during the transition should
  64. not present any risk.
  65. Do I have to use mod_python?
  66. ----------------------------
  67. Although we recommend mod_python for production use, you don't have to use it,
  68. thanks to the fact that Django uses an arrangement called WSGI_. Django can
  69. talk to any WSGI-enabled server. Other non-mod_python deployment setups are
  70. FastCGI, SCGI or AJP. See
  71. :ref:`How to use Django with FastCGI, SCGI or AJP <howto-deployment-fastcgi>`
  72. for full information.
  73. Also, see the `server arrangements wiki page`_ for other deployment strategies.
  74. If you just want to play around and develop things on your local computer, use
  75. the development Web server that comes with Django. Things should Just Work.
  76. .. _WSGI: http://www.python.org/peps/pep-0333.html
  77. .. _server arrangements wiki page: http://code.djangoproject.com/wiki/ServerArrangements
  78. How do I install mod_python on Windows?
  79. ---------------------------------------
  80. * For Python 2.4, grab mod_python from `win32 build of mod_python for
  81. Python 2.4`_.
  82. * For Python 2.4, check out this `Django on Windows howto`_.
  83. * For Python 2.3, grab mod_python from http://www.modpython.org/ and read
  84. `Running mod_python on Apache on Windows2000`_.
  85. * Also, try this (not Windows-specific) `guide to getting mod_python
  86. working`_.
  87. .. _`win32 build of mod_python for Python 2.4`: http://www.lehuen.com/nicolas/index.php/2005/02/21/39-win32-build-of-mod_python-314-for-python-24
  88. .. _`Django on Windows howto`: http://thinkhole.org/wp/django-on-windows/
  89. .. _`Running mod_python on Apache on Windows2000`: http://groups-beta.google.com/group/comp.lang.python/msg/139af8c83a5a9d4f
  90. .. _`guide to getting mod_python working`: http://www.dscpl.com.au/articles/modpython-001.html
  91. Will Django run under shared hosting (like TextDrive or Dreamhost)?
  92. -------------------------------------------------------------------
  93. See our `Django-friendly Web hosts`_ page.
  94. .. _`Django-friendly Web hosts`: http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts
  95. Should I use the official version or development version?
  96. ---------------------------------------------------------
  97. The Django developers improve Django every day and are pretty good about not
  98. checking in broken code. We use the development code (from the Subversion
  99. repository) directly on our servers, so we consider it stable. With that in
  100. mind, we recommend that you use the latest development code, because it
  101. generally contains more features and fewer bugs than the "official" releases.