install.txt 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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 simple, minimal installation
  7. that'll work 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://sqlite.org/
  14. Get the latest version of Python at https://www.python.org/download/ or with
  15. your operating system's package manager.
  16. .. admonition:: Django on Jython
  17. If you use Jython_ (a Python implementation for the Java platform), you'll
  18. need to follow a few additional steps. See :doc:`/howto/jython` for details.
  19. .. _jython: http://www.jython.org/
  20. You can verify that Python is installed by typing ``python`` from your shell;
  21. you should see something like::
  22. Python 3.4.x
  23. [GCC 4.x] on linux
  24. Type "help", "copyright", "credits" or "license" for more information.
  25. >>>
  26. Set up a database
  27. =================
  28. This step is only necessary if you'd like to work with a "large" database engine
  29. like PostgreSQL, MySQL, or Oracle. To install such a database, consult the
  30. :ref:`database installation information <database-installation>`.
  31. Remove any old versions of Django
  32. =================================
  33. If you are upgrading your installation of Django from a previous version, you
  34. will need to :ref:`uninstall the old Django version before installing the new
  35. version <removing-old-versions-of-django>`.
  36. Install Django
  37. ==============
  38. You've got three easy options to install Django:
  39. * :ref:`Install an official release <installing-official-release>`. This
  40. is the best approach for most users.
  41. * Install a version of Django :ref:`provided by your operating system
  42. distribution <installing-distribution-package>`.
  43. * :ref:`Install the latest development version
  44. <installing-development-version>`. This option is for enthusiasts who want
  45. the latest-and-greatest features and aren't afraid of running brand new code.
  46. You might encounter new bugs in the development version, but reporting them
  47. helps the development of Django. Also, releases of third-party packages are
  48. less likely to be compatible with the development version than with the
  49. latest stable release.
  50. .. admonition:: Always refer to the documentation that corresponds to the
  51. version of Django you're using!
  52. If you do either of the first two steps, keep an eye out for parts of the
  53. documentation marked **new in development version**. That phrase flags
  54. features that are only available in development versions of Django, and
  55. they likely won't work with an official release.
  56. Verifying
  57. =========
  58. To verify that Django can be seen by Python, type ``python`` from your shell.
  59. Then at the Python prompt, try to import Django:
  60. .. parsed-literal::
  61. >>> import django
  62. >>> print(django.get_version())
  63. |version|
  64. You may have another version of Django installed.
  65. That's it!
  66. ==========
  67. That's it -- you can now :doc:`move onto the tutorial </intro/tutorial01>`.