{"title":"Writing your first Django app, part 8","version":"6.1","locale":"el","docname":"intro/tutorial08","url":"/el/6.1/intro/tutorial08/","canonical":"https://djangodocs.dev/el/6.1/intro/tutorial08/","summary":"This tutorial begins where Tutorial 7 left off. We’ve built our web-poll application and will now look at third-party packages. One of Django’s strengths is the…","html":"<h1>Writing your first Django app, part 8<a class=\"heading-anchor\" href=\"#writing-your-first-django-app-part-8\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>This tutorial begins where <a class=\"reference internal\" href=\"/el/6.1/intro/tutorial07/\"><span class=\"doc\">Tutorial 7</span></a> left off.\nWe’ve built our web-poll application and will now look at third-party packages.\nOne of Django’s strengths is the rich ecosystem of third-party packages.\nThey’re community developed packages that can be used to quickly improve the\nfeature set of an application.</p>\n<p>This tutorial will show how to add <a class=\"extlink-pypi reference external\" href=\"https://pypi.org/project/django-debug-toolbar/\">Django Debug Toolbar</a>, a commonly used third-party package. The Django Debug\nToolbar has ranked in the top three most used third-party packages in the\nDjango Developers Survey in recent years.</p>\n<aside class=\"admonition-where-to-get-help admonition\">\n<p class=\"admonition-title\">Που να ψάξετε για βοήθεια</p>\n<p>If you’re having trouble going through this tutorial, please head over to\nthe <a class=\"reference internal\" href=\"/el/6.1/faq/help/\"><span class=\"doc\">Getting Help</span></a> section of the FAQ.</p>\n</aside>\n<section id=\"installing-django-debug-toolbar\">\n<h2>Installing Django Debug Toolbar<a class=\"heading-anchor\" href=\"#installing-django-debug-toolbar\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Django Debug Toolbar is a useful tool for debugging Django web applications.\nIt’s a third-party package that is maintained by the community organization\n<a class=\"reference external\" href=\"https://github.com/django-commons\">Django Commons</a>. The toolbar helps you\nunderstand how your application functions and to identify problems. It does so\nby providing panels that provide debug information about the current request\nand response.</p>\n<p>To install a third-party application like the toolbar, you need to install\nthe package by running the below command within an activated virtual\nenvironment. This is similar to our earlier step to <a class=\"reference internal\" href=\"/el/6.1/topics/install/#installing-official-release\"><span class=\"std std-ref\">install Django</span></a>.</p>\n<div class=\"console\" data-console><div class=\"console-panel\" data-platform=\"unix\"><p class=\"console-label\" id=\"console-0-unix-label\">Linux / macOS</p><div class=\"code-block\" data-language=\"console\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Shell</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Shell code\"><code><span class=\"gp\">$ </span>python<span class=\"w\"> </span>-m<span class=\"w\"> </span>pip<span class=\"w\"> </span>install<span class=\"w\"> </span>django-debug-toolbar\n</code></pre></div>\n</div><div class=\"console-panel\" data-platform=\"windows\"><p class=\"console-label\" id=\"console-0-windows-label\">Windows</p><div class=\"code-block\" data-language=\"doscon\"><div class=\"code-block-toolbar\"><span class=\"code-block-language\">Windows</span><button type=\"button\" class=\"copy-button\" data-copy hidden><span class=\"copy-button-label\">Copy</span></button></div><pre role=\"group\" tabindex=\"0\" aria-label=\"Windows shell\"><code><span class=\"gp\">...\\&gt;</span> py -m pip install django-debug-toolbar\n</code></pre></div></div></div>\n<p>Third-party packages that integrate with Django need some post-installation\nsetup to integrate them with your project. Often you will need to add the\npackage’s Django app to your <a class=\"reference internal\" href=\"/el/6.1/ref/settings/#std-setting-INSTALLED_APPS\"><code class=\"xref std std-setting docutils literal notranslate\"><span class=\"pre\">INSTALLED_APPS</span></code></a> setting. Some packages\nneed other changes, like additions to your URLconf (<code class=\"docutils literal notranslate\"><span class=\"pre\">urls.py</span></code>).</p>\n<p>Django Debug Toolbar requires several setup steps. Follow them in <a class=\"reference external\" href=\"https://django-debug-toolbar.readthedocs.io/en/latest/installation.html\">its\ninstallation guide</a>.\nThe steps are not duplicated in this tutorial, because as a third-party\npackage, it may change separately to Django’s schedule.</p>\n<p>Once installed, you should be able to see the DjDT «handle» on the right side\nof the browser window when you browse to <code class=\"docutils literal notranslate\"><span class=\"pre\">http://localhost:8000/admin/</span></code>.\nClick it to open the debug toolbar and use the tools in each panel. See the\n<a class=\"reference external\" href=\"https://django-debug-toolbar.readthedocs.io/en/latest/panels.html\">panels documentation page</a> for more information on what the panels show.</p>\n</section>\n<section id=\"getting-help-from-others\">\n<h2>Getting help from others<a class=\"heading-anchor\" href=\"#getting-help-from-others\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>At some point you will run into a problem, for example the\ntoolbar may not render. When this happens and you’re unable to\nresolve the issue yourself, there are options available to you.</p>\n<ol class=\"arabic simple\">\n<li><p>If the problem is with a specific package, check if there’s a\ntroubleshooting guide or FAQ in the package’s documentation. For example the\nDjango Debug Toolbar has a <a class=\"reference external\" href=\"https://django-debug-toolbar.readthedocs.io/en/latest/tips.html\">Tips section</a> that\noutlines troubleshooting options.</p></li>\n<li><p>Search for similar issues on the package’s issue tracker. Django Debug\nToolbar’s is <a class=\"reference external\" href=\"https://github.com/django-commons/django-debug-toolbar/issues\">on GitHub</a>.</p></li>\n<li><p>Consult the <a class=\"reference external\" href=\"https://forum.djangoproject.com/\">Django Forum</a>.</p></li>\n<li><p>Join the <a class=\"reference external\" href=\"https://chat.djangoproject.com\">Django Discord server</a>.</p></li>\n</ol>\n</section>\n<section id=\"installing-other-third-party-packages\">\n<h2>Installing other third-party packages<a class=\"heading-anchor\" href=\"#installing-other-third-party-packages\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>There are many more third-party packages, which you can find using the\nfantastic Django resource, <a class=\"reference external\" href=\"https://djangopackages.org/\">Django Packages</a>.</p>\n<p>It can be difficult to know what third-party packages you should use. This\ndepends on your needs and goals. Sometimes it’s fine to use a package that’s\nin its alpha state. Other times, you need to know it’s production ready.\n<a class=\"reference external\" href=\"https://adamj.eu/tech/2021/11/04/the-well-maintained-test/\">Adam Johnson has a blog post</a> that outlines\na set of characteristics that qualifies a package as «well maintained».\nDjango Packages shows data for some of these characteristics, such as when the\npackage was last updated.</p>\n<p>As Adam points out in his post, when the answer to one of the questions is\n«no», that’s an opportunity to contribute.</p>\n</section>\n<section id=\"what-s-next\">\n<h2>Επόμενα βήματα<a class=\"heading-anchor\" href=\"#what-s-next\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h2>\n<p>Ο οδηγός για αρχάριους τελειώνει κάπου εδώ. Στο μεταξύ μπορείτε να δείτε προτεινόμενες κατευθύνσεις για το τι να κάνετε έπειτα, στο άρθρο <a class=\"reference internal\" href=\"/el/6.1/intro/whatsnext/\"><span class=\"doc\">τι να κάνω μετά από εδώ</span></a>.</p>\n<p>Αν είστε εξοικειωμένοι με το Python packaging και ενδιαφέρεστε να μάθετε πως να μετατρέψετε την εφαρμογή ψηφοφορίας σε «επαναχρησιμοποιήσιμη εφαρμογή», δείτε το άρθρο <a class=\"reference internal\" href=\"/el/6.1/intro/reusable-apps/\"><span class=\"doc\">Οδηγός για προχωρημένους: Πως να γράψετε επαναχρησιμοποιήσιμα apps</span></a>.</p>\n</section>","rootId":"writing-your-first-django-app-part-8","toc":[{"title":"Installing Django Debug Toolbar","anchor":"installing-django-debug-toolbar","children":[]},{"title":"Getting help from others","anchor":"getting-help-from-others","children":[]},{"title":"Installing other third-party packages","anchor":"installing-other-third-party-packages","children":[]},{"title":"Επόμενα βήματα","anchor":"what-s-next","children":[]}],"breadcrumbs":[{"docname":"intro/index","title":"Ξεκινώντας","url":"/el/6.1/intro/"}],"prev":{"docname":"intro/tutorial07","title":"Γράφοντας το πρώτο σας Django app, μέρος 7","url":"/el/6.1/intro/tutorial07/"},"next":{"docname":"intro/reusable-apps","title":"Οδηγός για προχωρημένους: Πως να γράψετε επαναχρησιμοποιήσιμα apps","url":"/el/6.1/intro/reusable-apps/"},"formats":{"html":"/el/6.1/intro/tutorial08/","markdown":"/el/6.1/intro/tutorial08.md","json":"/el/6.1/intro/tutorial08.json"},"source":"https://github.com/django/django/blob/stable/6.1.x/docs/intro/tutorial08.txt","official":"https://docs.djangoproject.com/el/6.1/intro/tutorial08/","inVersions":["6.1","6.0","5.2","5.1","5.0","4.2"],"inLocales":["en","sv","zh-hans","ga","fr","ja","id","it","pt-br","ko","es","el","pl"]}