install.txt 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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.5 - 2.7.x. No other Python
  15. libraries are required for basic Django usage. Django 1.5 also has
  16. experimental support for Python 3.2 and above.
  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, Django follows
  20. the WSGI spec, :pep:`3333`, which means it can run on a variety of server
  21. platforms. See :doc:`Deploying Django </howto/deployment/index>` for some
  22. popular alternatives. Also, the `server arrangements wiki page`_ contains
  23. details for several deployment strategies.
  24. If you want to use Django with a database, which is probably the case, you'll
  25. also need a database engine. PostgreSQL_ is recommended, because we're
  26. PostgreSQL fans, and MySQL_, `SQLite 3`_, and Oracle_ are also supported.
  27. .. _Python: http://www.python.org/
  28. .. _server arrangements wiki page: https://code.djangoproject.com/wiki/ServerArrangements
  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.6 versus newer Python versions, such as Python 2.7?
  34. ----------------------------------------------------------------------------------------
  35. Not in the core framework. Currently, Django itself officially supports
  36. Python 2.6 (2.6.5 or higher) and 2.7. However, newer versions of
  37. Python are often faster, have more features, and are better supported. If you
  38. use a newer version of Python you will also have access to some APIs that
  39. aren't available under older versions of Python.
  40. Third-party applications for use with Django are, of course, free to set their
  41. own version requirements.
  42. All else being equal, we recommend that you use the latest 2.x release
  43. (currently Python 2.7). This will let you take advantage of the numerous
  44. improvements and optimizations to the Python language since version 2.6.
  45. Generally speaking, we don't recommend running Django on Python 3 yet; see
  46. below for more.
  47. What Python version can I use with Django?
  48. ------------------------------------------
  49. ============== ===============
  50. Django version Python versions
  51. ============== ===============
  52. 1.0 2.3, 2.4, 2.5, 2.6
  53. 1.1 2.3, 2.4, 2.5, 2.6
  54. 1.2 2.4, 2.5, 2.6, 2.7
  55. 1.3 2.4, 2.5, 2.6, 2.7
  56. **1.4** **2.5, 2.6, 2.7**
  57. *1.5 (future)* *2.6, 2.7* and *3.2, 3.3 (experimental)*
  58. ============== ===============
  59. Can I use Django with Python 3?
  60. -------------------------------
  61. Django 1.5 introduces experimental support for Python 3.2 and 3.3. However, we
  62. don't yet suggest that you use Django and Python 3 in production.
  63. Python 3 support should be considered a "preview". It's offered to bootstrap
  64. the transition of the Django ecosystem to Python 3, and to help you start
  65. porting your apps for future Python 3 compatibility. But we're not yet
  66. confident enough to promise stability in production.
  67. Our current plan is to make Django 1.6 suitable for general use with Python 3.
  68. Will Django run under shared hosting (like TextDrive or Dreamhost)?
  69. -------------------------------------------------------------------
  70. See our `Django-friendly Web hosts`_ page.
  71. .. _`Django-friendly Web hosts`: https://code.djangoproject.com/wiki/DjangoFriendlyWebHosts
  72. Should I use the stable version or development version?
  73. -------------------------------------------------------
  74. Generally, if you're using code in production, you should be using a
  75. stable release. The Django project publishes a full stable release
  76. every nine months or so, with bugfix updates in between. These stable
  77. releases contain the API that is covered by our backwards
  78. compatibility guarantees; if you write code against stable releases,
  79. you shouldn't have any problems upgrading when the next official
  80. version is released.