install.txt 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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. Python 3.x.y
  19. [GCC 4.x] on linux
  20. Type "help", "copyright", "credits" or "license" for more information.
  21. >>>
  22. Set up a database
  23. =================
  24. This step is only necessary if you'd like to work with a "large" database engine
  25. like PostgreSQL, MariaDB, MySQL, or Oracle. To install such a database, consult
  26. the :ref:`database installation information <database-installation>`.
  27. Install Django
  28. ==============
  29. You've got three options to install Django:
  30. * :ref:`Install an official release <installing-official-release>`. This
  31. is the best approach for most users.
  32. * Install a version of Django :ref:`provided by your operating system
  33. distribution <installing-distribution-package>`.
  34. * :ref:`Install the latest development version
  35. <installing-development-version>`. This option is for enthusiasts who want
  36. the latest-and-greatest features and aren't afraid of running brand new code.
  37. You might encounter new bugs in the development version, but reporting them
  38. helps the development of Django. Also, releases of third-party packages are
  39. less likely to be compatible with the development version than with the
  40. latest stable release.
  41. .. admonition:: Always refer to the documentation that corresponds to the
  42. version of Django you're using!
  43. If you do either of the first two steps, keep an eye out for parts of the
  44. documentation marked **new in development version**. That phrase flags
  45. features that are only available in development versions of Django, and
  46. they likely won't work with an official release.
  47. Verifying
  48. =========
  49. To verify that Django can be seen by Python, type ``python`` from your shell.
  50. Then at the Python prompt, try to import Django:
  51. .. parsed-literal::
  52. >>> import django
  53. >>> print(django.get_version())
  54. |version|
  55. You may have another version of Django installed.
  56. That's it!
  57. ==========
  58. That's it -- you can now :doc:`move onto the tutorial </intro/tutorial01>`.