2
0

install.txt 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. =================
  2. FAQ: Installation
  3. =================
  4. How do I get started?
  5. =====================
  6. #. `Download the code`_.
  7. #. Install Django (read the :doc:`installation guide </intro/install>`).
  8. #. Walk through the :doc:`tutorial </intro/tutorial01>`.
  9. #. Check out the rest of the :doc:`documentation </index>`, and `ask questions`_ if you
  10. run into trouble.
  11. .. _`Download the code`: https://www.djangoproject.com/download/
  12. .. _ask questions: https://www.djangoproject.com/community/
  13. What are Django's prerequisites?
  14. ================================
  15. Django requires Python. See the table in the next question for the versions of
  16. Python that work with each version of Django. Other Python libraries may be
  17. required for some uses, but you'll receive an error about it as they're needed.
  18. For a development environment -- if you just want to experiment with Django --
  19. you don't need to have a separate Web server installed; Django comes with its
  20. own lightweight development server. For a production environment, Django follows
  21. the WSGI spec, :pep:`3333`, which means it can run on a variety of server
  22. platforms. See :doc:`Deploying Django </howto/deployment/index>` for some
  23. popular alternatives.
  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: https://www.python.org/
  28. .. _PostgreSQL: http://www.postgresql.org/
  29. .. _MySQL: https://www.mysql.com/
  30. .. _`SQLite 3`: https://www.sqlite.org/
  31. .. _Oracle: http://www.oracle.com/
  32. .. _faq-python-version-support:
  33. What Python version can I use with Django?
  34. ==========================================
  35. ============== ===============
  36. Django version Python versions
  37. ============== ===============
  38. 1.8 2.7, 3.2 (until the end of 2016), 3.3, 3.4, 3.5
  39. **1.9, 1.10** **2.7, 3.4, 3.5**
  40. ============== ===============
  41. For each version of Python, only the latest micro release (A.B.C) is officially
  42. supported. You can find the latest micro version for each series on the `Python
  43. download page <https://www.python.org/downloads/>`_.
  44. Typically, we will support a Python version up to and including the first
  45. Django LTS release whose security support ends after security support for that
  46. version of Python ends. For example, Python 3.3 security support ends September
  47. 2017 and Django 1.8 LTS security support ends April 2018. Therefore Django 1.8
  48. is the last version to support Python 3.3.
  49. What Python version should I use with Django?
  50. =============================================
  51. As of Django 1.6, Python 3 support is considered stable and you can safely use
  52. it in production. See also :doc:`/topics/python3`. However, the community is
  53. still in the process of migrating third-party packages and applications to
  54. Python 3.
  55. If you're starting a new project, and the dependencies you plan to use work on
  56. Python 3, you should use Python 3. If they don't, consider contributing to the
  57. porting efforts, or stick to Python 2.
  58. Since newer versions of Python are often faster, have more features, and are
  59. better supported, all else being equal, we recommend that you use the latest
  60. 2.x.y or 3.x.y release.
  61. You don't lose anything in Django by using an older release, but you don't take
  62. advantage of the improvements and optimizations in newer Python releases.
  63. Third-party applications for use with Django are, of course, free to set their
  64. own version requirements.
  65. Should I use the stable version or development version?
  66. =======================================================
  67. Generally, if you're using code in production, you should be using a
  68. stable release. The Django project publishes a full stable release
  69. every nine months or so, with bugfix updates in between. These stable
  70. releases contain the API that is covered by our backwards
  71. compatibility guarantees; if you write code against stable releases,
  72. you shouldn't have any problems upgrading when the next official
  73. version is released.