install.txt 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. ===================
  2. Quick install guide
  3. ===================
  4. Before you can use Django, you'll need to get it installed. We have a
  5. :doc:`complete installation guide </topics/install>` that covers all the
  6. possibilities; this guide will guide you to a minimal installation that'll work
  7. while you walk through the introduction.
  8. Install Python
  9. ==============
  10. Being a Python web framework, Django requires Python. See
  11. :ref:`faq-python-version-support` for details. Python includes a lightweight
  12. database called SQLite_ so you won't need to set up a database just yet.
  13. .. _sqlite: https://www.sqlite.org/
  14. Get the latest version of Python at https://www.python.org/downloads/ or with
  15. your operating system's package manager.
  16. You can verify that Python is installed by typing ``python`` from your shell;
  17. you should see something like:
  18. .. code-block:: pycon
  19. Python 3.x.y
  20. [GCC 4.x] on linux
  21. Type "help", "copyright", "credits" or "license" for more information.
  22. >>>
  23. Set up a database
  24. =================
  25. This step is only necessary if you'd like to work with a "large" database engine
  26. like PostgreSQL, MariaDB, MySQL, or Oracle. To install such a database, consult
  27. the :ref:`database installation information <database-installation>`.
  28. Install Django
  29. ==============
  30. You've got three options to install Django:
  31. * :ref:`Install an official release <installing-official-release>`. This
  32. is the best approach for most users.
  33. * Install a version of Django :ref:`provided by your operating system
  34. distribution <installing-distribution-package>`.
  35. * :ref:`Install the latest development version
  36. <installing-development-version>`. This option is for enthusiasts who want
  37. the latest-and-greatest features and aren't afraid of running brand new code.
  38. You might encounter new bugs in the development version, but reporting them
  39. helps the development of Django. Also, releases of third-party packages are
  40. less likely to be compatible with the development version than with the
  41. latest stable release.
  42. .. admonition:: Always refer to the documentation that corresponds to the
  43. version of Django you're using!
  44. If you do either of the first two steps, keep an eye out for parts of the
  45. documentation marked **new in development version**. That phrase flags
  46. features that are only available in development versions of Django, and
  47. they likely won't work with an official release.
  48. Verifying
  49. =========
  50. To verify that Django can be seen by Python, type ``python`` from your shell.
  51. Then at the Python prompt, try to import Django:
  52. .. parsed-literal::
  53. >>> import django
  54. >>> print(django.get_version())
  55. |version|
  56. You may have another version of Django installed.
  57. That's it!
  58. ==========
  59. That's it -- you can now :doc:`move onto the tutorial </intro/tutorial01>`.