install.txt 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. FAQ: Installation
  2. =================
  3. How do I get started?
  4. ---------------------
  5. #. `Download the code`_.
  6. #. Install Django (read the :doc:`installation guide </intro/install>`).
  7. #. Walk through the :doc:`tutorial </intro/tutorial01>`.
  8. #. Check out the rest of the :doc:`documentation </index>`, and `ask questions`_ if you
  9. run into trouble.
  10. .. _`Download the code`: https://www.djangoproject.com/download/
  11. .. _ask questions: https://www.djangoproject.com/community/
  12. What are Django's prerequisites?
  13. --------------------------------
  14. Django requires Python_, specifically Python 2.6 or 2.7.
  15. No other Python libraries are required for basic Django usage.
  16. For a development environment -- if you just want to experiment with Django --
  17. you don't need to have a separate Web server installed; Django comes with its
  18. own lightweight development server. For a production environment, Django follows
  19. the WSGI spec, :pep:`3333`, which means it can run on a variety of server
  20. platforms. See :doc:`Deploying Django </howto/deployment/index>` for some
  21. popular alternatives. Also, the `server arrangements wiki page`_ contains
  22. details for several deployment strategies.
  23. If you want to use Django with a database, which is probably the case, you'll
  24. also need a database engine. PostgreSQL_ is recommended, because we're
  25. PostgreSQL fans, and MySQL_, `SQLite 3`_, and Oracle_ are also supported.
  26. .. _Python: http://www.python.org/
  27. .. _server arrangements wiki page: https://code.djangoproject.com/wiki/ServerArrangements
  28. .. _PostgreSQL: http://www.postgresql.org/
  29. .. _MySQL: http://www.mysql.com/
  30. .. _`SQLite 3`: http://www.sqlite.org/
  31. .. _Oracle: http://www.oracle.com/
  32. Do I lose anything by using Python 2.6 versus newer Python versions, such as Python 2.7?
  33. ----------------------------------------------------------------------------------------
  34. Not in the core framework. Currently, Django itself officially supports
  35. Python 2.6 and 2.7. However, newer versions of
  36. Python are often faster, have more features, and are better supported. If you
  37. use a newer version of Python you will also have access to some APIs that
  38. aren't available under older versions of Python.
  39. Third-party applications for use with Django are, of course, free to set their
  40. own version requirements.
  41. Over the next year or two Django will begin dropping support for older Python
  42. versions as part of a migration which will end with Django running on Python 3
  43. (see below for details).
  44. All else being equal, we recommend that you use the latest 2.x release
  45. (currently Python 2.7). This will let you take advantage of the numerous
  46. improvements and optimizations to the Python language since version 2.6, and
  47. will help ease the process of dropping support for older Python versions on
  48. the road to Python 3.
  49. What Python version can I use with Django?
  50. ------------------------------------------
  51. ============== ===============
  52. Django version Python versions
  53. ============== ===============
  54. 1.0 2.3, 2.4, 2.5, 2.6
  55. 1.1 2.3, 2.4, 2.5, 2.6
  56. 1.2 2.4, 2.5, 2.6, 2.7
  57. 1.3 2.4, 2.5, 2.6, 2.7
  58. **1.4** **2.5, 2.6, 2.7**
  59. *1.5 (future)* *2.6, 2.7, 3.x (experimental)*
  60. ============== ===============
  61. Can I use Django with Python 3?
  62. -------------------------------
  63. Not at the moment. Python 3.0 introduced a number of
  64. backwards-incompatible changes to the Python language, and although
  65. these changes are generally a good thing for Python's future, it will
  66. be a while before most Python software catches up and is able to run
  67. on Python 3.0. For larger Python-based software like Django, the
  68. transition is expected to take at least a year or two (since it
  69. involves dropping support for older Python releases and so must be
  70. done gradually).
  71. In the meantime, Python 2.x releases will be supported and provided
  72. with bug fixes and security updates by the Python development team, so
  73. continuing to use a Python 2.x release during the transition should
  74. not present any risk.
  75. Will Django run under shared hosting (like TextDrive or Dreamhost)?
  76. -------------------------------------------------------------------
  77. See our `Django-friendly Web hosts`_ page.
  78. .. _`Django-friendly Web hosts`: https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts
  79. Should I use the stable version or development version?
  80. -------------------------------------------------------
  81. Generally, if you're using code in production, you should be using a
  82. stable release. The Django project publishes a full stable release
  83. every nine months or so, with bugfix updates in between. These stable
  84. releases contain the API that is covered by our backwards
  85. compatibility guarantees; if you write code against stable releases,
  86. you shouldn't have any problems upgrading when the next official
  87. version is released.