install.txt 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. No, not in the core framework. Django itself is guaranteed to work with any
  36. version of Python from 2.3 and higher. However, some "django.contrib" add-on
  37. components may require a more recent Python release. The django.contrib.gis
  38. component, for example, requires Python 2.4.
  39. If you use a Python version newer than 2.3, you will, of course, be able to
  40. take advantage of newer Python features in your own code, along with the speed
  41. improvements and other optimizations that have been made to the Python language
  42. itself. But the Django framework itself should work equally well on 2.3 as it
  43. does on 2.4 or 2.5.
  44. Do I have to use mod_python?
  45. ----------------------------
  46. Although we recommend mod_python for production use, you don't have to use it,
  47. thanks to the fact that Django uses an arrangement called WSGI_. Django can
  48. talk to any WSGI-enabled server. Other non-mod_python deployment setups are
  49. FastCGI, SCGI or AJP. See
  50. :ref:`How to use Django with FastCGI, SCGI or AJP <howto-deployment-fastcgi>`
  51. for full information.
  52. Also, see the `server arrangements wiki page`_ for other deployment strategies.
  53. If you just want to play around and develop things on your local computer, use
  54. the development Web server that comes with Django. Things should Just Work.
  55. .. _WSGI: http://www.python.org/peps/pep-0333.html
  56. .. _server arrangements wiki page: http://code.djangoproject.com/wiki/ServerArrangements
  57. How do I install mod_python on Windows?
  58. ---------------------------------------
  59. * For Python 2.4, grab mod_python from `win32 build of mod_python for
  60. Python 2.4`_.
  61. * For Python 2.4, check out this `Django on Windows howto`_.
  62. * For Python 2.3, grab mod_python from http://www.modpython.org/ and read
  63. `Running mod_python on Apache on Windows2000`_.
  64. * Also, try this (not Windows-specific) `guide to getting mod_python
  65. working`_.
  66. .. _`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
  67. .. _`Django on Windows howto`: http://thinkhole.org/wp/django-on-windows/
  68. .. _`Running mod_python on Apache on Windows2000`: http://groups-beta.google.com/group/comp.lang.python/msg/139af8c83a5a9d4f
  69. .. _`guide to getting mod_python working`: http://www.dscpl.com.au/articles/modpython-001.html
  70. Will Django run under shared hosting (like TextDrive or Dreamhost)?
  71. -------------------------------------------------------------------
  72. See our `Django-friendly Web hosts`_ page.
  73. .. _`Django-friendly Web hosts`: http://code.djangoproject.com/wiki/DjangoFriendlyWebHosts
  74. Should I use the official version or development version?
  75. ---------------------------------------------------------
  76. The Django developers improve Django every day and are pretty good about not
  77. checking in broken code. We use the development code (from the Subversion
  78. repository) directly on our servers, so we consider it stable. With that in
  79. mind, we recommend that you use the latest development code, because it
  80. generally contains more features and fewer bugs than the "official" releases.