{"title":"How to deploy Django","version":"4.0","locale":"id","docname":"howto/deployment/index","url":"/id/4.0/howto/deployment/","canonical":"https://djangodocs.dev/id/4.0/howto/deployment/","summary":"Django is full of shortcuts to make web developers' lives easier, but all those tools are of no use if you can't easily deploy your sites. Since Django's inception,…","html":"<h1>How to deploy Django<a class=\"heading-anchor\" href=\"#how-to-deploy-django\"><span class=\"visually-hidden\">Link to this heading</span><span aria-hidden=\"true\">#</span></a></h1>\n<p>Django is full of shortcuts to make web developers' lives easier, but all\nthose tools are of no use if you can't easily deploy your sites. Since Django's\ninception, ease of deployment has been a major goal.</p>\n<p>There are many options for deploying your Django application, based on your\narchitecture or your particular business needs, but that discussion is outside\nthe scope of what Django can give you as guidance.</p>\n<p>Django, being a web framework, needs a web server in order to operate. And\nsince most web servers don't natively speak Python, we need an interface to\nmake that communication happen.</p>\n<p>Django saat ini mendukung dua antarmuka: WSGI dan ASGI.</p>\n<ul class=\"simple\">\n<li><p><a class=\"reference external\" href=\"https://wsgi.readthedocs.io/en/latest/\">WSGI</a> is the main Python standard for communicating between web servers and\napplications, but it only supports synchronous code.</p></li>\n<li><p><a class=\"reference external\" href=\"https://asgi.readthedocs.io/en/latest/\">ASGI</a> is the new, asynchronous-friendly standard that will allow your\nDjango site to use asynchronous Python features, and asynchronous Django\nfeatures as they are developed.</p></li>\n</ul>\n<p>You should also consider how you will handle <a class=\"reference internal\" href=\"/id/4.0/howto/static-files/deployment/\"><span class=\"doc\">static files</span></a> for your application, and how to handle\n<a class=\"reference internal\" href=\"/id/4.0/howto/error-reporting/\"><span class=\"doc\">error reporting</span></a>.</p>\n<p>Finally, before you deploy your application to production, you should run\nthrough our <a class=\"reference internal\" href=\"/id/4.0/howto/deployment/checklist/\"><span class=\"doc\">deployment checklist</span></a> to ensure that your\nconfigurations are suitable.</p>\n<div class=\"toctree-wrapper compound\">\n<ul>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/wsgi/\">Bagaimana menyebarkan dengan WSGI</a><ul>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/wsgi/gunicorn/\">Bagaimana menggunakan Django dengan Gunicorn</a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/wsgi/uwsgi/\">Bagaimana menggunakan Django dengan uWSGI</a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/wsgi/modwsgi/\">Bagaimana menggunakan Django dengan Apache dan <code class=\"docutils literal notranslate\"><span class=\"pre\">mod_wsgi</span></code></a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/wsgi/apache-auth/\">How to authenticate against Django's user database from Apache</a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/wsgi/#the-application-object\">Obyek <code class=\"docutils literal notranslate\"><span class=\"pre\">aplikasi</span></code></a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/wsgi/#configuring-the-settings-module\">Konfigurasi modul pengaturan</a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/wsgi/#applying-wsgi-middleware\">Memberlakukan middleware WSGI</a></li>\n</ul>\n</li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/asgi/\">Bagaimana mengembangkan dengan ASGI</a><ul>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/asgi/daphne/\">Bagaimana menggunakan Django dengan Daphne</a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/asgi/hypercorn/\">Bagaimana menggunakan Django dengan Hypercorn</a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/asgi/uvicorn/\">Bagaimana menggunakan Django dengan Uvicorn</a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/asgi/#the-application-object\">Obyek <code class=\"docutils literal notranslate\"><span class=\"pre\">aplikasi</span></code></a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/asgi/#configuring-the-settings-module\">Konfigurasi modul pengaturan</a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/asgi/#applying-asgi-middleware\">Memberlakukan middleware ASGI</a></li>\n</ul>\n</li>\n<li class=\"toctree-l1\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/checklist/\">Daftar centang penyebaran</a><ul>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/checklist/#run-manage-py-check-deploy\">Jalankan <code class=\"docutils literal notranslate\"><span class=\"pre\">manage.py</span> <span class=\"pre\">check</span> <span class=\"pre\">--deploy</span></code></a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/checklist/#critical-settings\">Pengaturan kritis</a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/checklist/#environment-specific-settings\">Pengaturan lingkungan-khusus</a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/checklist/#https\">HTTPS</a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/checklist/#performance-optimizations\">Optimalisasi penampilan</a></li>\n<li class=\"toctree-l2\"><a class=\"reference internal\" href=\"/id/4.0/howto/deployment/checklist/#error-reporting\">Pelaporan kesalahan</a></li>\n</ul>\n</li>\n</ul>\n</div>","rootId":"how-to-deploy-django","toc":[],"breadcrumbs":[{"docname":"howto/index","title":"Panduan \"Bagaimana\"","url":"/id/4.0/howto/"}],"prev":{"docname":"howto/custom-file-storage","title":"How to write a custom storage class","url":"/id/4.0/howto/custom-file-storage/"},"next":{"docname":"howto/deployment/wsgi/index","title":"Bagaimana menyebarkan dengan WSGI","url":"/id/4.0/howto/deployment/wsgi/"},"formats":{"html":"/id/4.0/howto/deployment/","markdown":"/id/4.0/howto/deployment.md","json":"/id/4.0/howto/deployment.json"},"source":"https://github.com/django/django/blob/stable/4.0.x/docs/howto/deployment/index.txt","official":"https://docs.djangoproject.com/id/4.0/howto/deployment/","inVersions":["6.1","6.0","5.2","5.1","5.0","4.2","4.1","4.0","3.2","3.1","3.0","2.2","2.1","2.0","1.11","1.10","1.9"],"inLocales":["en","zh-hans","fr","ja","id","it","pt-br","ko","es","el","pl"]}