{"id":120242,"date":"2024-12-17T15:18:54","date_gmt":"2024-12-17T15:18:54","guid":{"rendered":"\/tutorials\/?p=120242"},"modified":"2026-09-05T12:43:33","modified_gmt":"2026-09-05T12:43:33","slug":"how-to-install-django","status":"publish","type":"post","link":"\/tutorials\/how-to-install-django\/","title":{"rendered":"How to install Django locally and on a VPS"},"content":{"rendered":"<p class=\"wp-block-paragraph\">Django is installed using Python&rsquo;s package manager, pip, after preparing Python and a virtual environment for the project. Developers usually install Django locally when building and testing applications, while VPS installations provide a dedicated environment for running Django projects online.<\/p><p class=\"wp-block-paragraph\">The installation process depends on the environment where Django will run, but the core steps remain the same: preparing the required dependencies, creating an isolated Python environment, installing Django, and verifying that the framework is ready to use. Once installed, Django provides the tools needed to create, test, and deploy Python-based web applications.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-install-django-locally\">How to install Django locally<\/h2><p class=\"wp-block-paragraph\">Installing Django locally involves preparing Python, creating a virtual environment, and using pip to install the <a href=\"\/tutorials\/django-tutorial\/\">Django framework<\/a> package. A local installation is the most common setup for developers who want to build and test Django applications before deploying them to a server.<\/p><h3 class=\"wp-block-heading\">1. Check your Python installation<\/h3><p class=\"wp-block-paragraph\">Django is a Python framework, so Python must be installed on your computer before setting up Django. Check whether Python is already available by running:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">python --version<\/pre><p class=\"wp-block-paragraph\">If Python is installed correctly, the command returns the installed version. If it is missing, install the latest version from the official Python website before continuing.<\/p><h3 class=\"wp-block-heading\">2. Verify that pip is available<\/h3><p class=\"wp-block-paragraph\">pip is Python&rsquo;s package manager and is used to install Django and other Python dependencies. Check that pip is installed by running:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">pip --version<\/pre><p class=\"wp-block-paragraph\">A successful response shows the installed pip version and confirms that it is ready to use.<\/p><h3 class=\"wp-block-heading\">3. Create a virtual environment<\/h3><p class=\"wp-block-paragraph\">A virtual environment keeps Django and other project dependencies isolated from your system-wide Python installation. This makes it easier to manage multiple Django projects with different requirements.<\/p><p class=\"wp-block-paragraph\">Create a virtual environment in Python by running:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">python -m venv myenv<\/pre><p class=\"wp-block-paragraph\">Replace <code>myenv<\/code> with any name you want to use for your environment.<\/p><h3 class=\"wp-block-heading\">4. Activate the virtual environment<\/h3><p class=\"wp-block-paragraph\">Before installing Django, activate the virtual environment you created.<\/p><p class=\"wp-block-paragraph\">On Windows, run:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">myenv\\Scripts\\activate<\/pre><p class=\"wp-block-paragraph\">On macOS or Linux, run:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">source myenv\/bin\/activate<\/pre><p class=\"wp-block-paragraph\">Once activated, any Python packages you install will be added to this isolated environment.<\/p><h3 class=\"wp-block-heading\">5. Install Django using pip<\/h3><p class=\"wp-block-paragraph\">With the virtual environment active, install Django using pip:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">pip install django<\/pre><p class=\"wp-block-paragraph\">pip downloads and installs the latest Django version along with any required dependencies.<\/p><h3 class=\"wp-block-heading\">6. Verify the Django installation<\/h3><p class=\"wp-block-paragraph\">After installation, confirm that Django is available by checking its version:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">django-admin --version<\/pre><p class=\"wp-block-paragraph\">If the command returns a version number, Django has been installed successfully and is ready for use.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-install-django-on-a-vps\">How to install Django on a VPS<\/h2><p class=\"wp-block-paragraph\">A VPS provides a remote server environment where you can host Django applications online. Installing Django on a VPS follows the same core process as a local setup, but requires additional server configuration, such as connecting through SSH and preparing the server environment.<\/p><p class=\"wp-block-paragraph\">If you use a Hostinger VPS, you can either deploy Django using a preconfigured template or install it manually on a Linux server.<\/p><h3 id=\"h-how-to-install-django-using-hostinger-s-vps-template\" class=\"wp-block-heading\">Install Django using a Hostinger VPS template<\/h3><p class=\"wp-block-paragraph\">Hostinger makes it easy to set up Django on your VPS using a dedicated template. This method simplifies the installation process, letting you avoid command-line setup while providing a stable and optimized environment for your Django application.<\/p><p class=\"wp-block-paragraph\">To start, consider your project&rsquo;s needs:<\/p><ul class=\"wp-block-list\">\n<li><strong>CPU and RAM<\/strong> &ndash; a faster CPU and more RAM improve performance, particularly for complex applications or high traffic.<\/li>\n\n\n\n<li><strong>Storage<\/strong> &ndash; Django applications handle databases and static files. Ensure your VPS has sufficient SSD storage for these requirements.<\/li>\n\n\n\n<li><strong>Bandwidth<\/strong> &ndash; choose a plan with enough bandwidth to handle expected traffic without slowdowns.<\/li>\n<\/ul><p class=\"wp-block-paragraph\">For a basic Django project, our <a href=\"\/vps\/django-hosting\">Django VPS lower-tier plans<\/a>, like <strong>KVM 1<\/strong> or <strong>KVM 2<\/strong>, will suffice. As your project grows, you can easily scale up to a higher-tier plan.<\/p><p class=\"wp-block-paragraph\">After selecting your desired plan, set up the framework by choosing the <strong>OpenLiteSpeed and Django (built on Ubuntu 24.04)<\/strong> template during the onboarding process.<\/p><p class=\"wp-block-paragraph\">If you use our regular VPS plan or have previously installed a different template, follow these steps instead:<\/p><p>\n\n\n    <div class=\"announcement-block announcement-block--warning\">\n        <span class=\"announcement-block__heading\">\n            <svg width=\"24\" height=\"26\" viewBox=\"0 0 24 26\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n                d=\"M12 23.5C17.799 23.5 22.5 18.799 22.5 13C22.5 7.20101 17.799 2.5 12 2.5C6.20101 2.5 1.5 7.20101 1.5 13C1.5 18.799 6.20101 23.5 12 23.5ZM13.637 8.65198C13.637 7.74791 12.9041 7.01501 12 7.01501C11.0959 7.01501 10.363 7.74791 10.363 8.65198C10.5335 10.5375 10.875 14.383 10.875 14.383C10.875 15.0043 11.3787 15.508 12 15.508C12.6213 15.508 13.125 15.0043 13.125 14.383V14.38L13.637 8.65198ZM11.9927 16.714C11.3714 16.714 10.8677 17.2177 10.8677 17.839C10.8677 18.4603 11.3714 18.964 11.9927 18.964H12.0073C12.6286 18.964 13.1323 18.4603 13.1323 17.839C13.1323 17.2177 12.6286 16.714 12.0073 16.714H11.9927Z\"\n                fill=\"#BE1025\"\/>\n            <\/svg>\n            Warning        <\/span>\n        <p class=\"announcement-block__content\">\n                    <\/p>\n    <\/div>\n\n    \n\n\n\n<\/p><ol class=\"wp-block-list\">\n<li>Log in to hPanel and navigate to <strong>VPS &rarr; Manage<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a9d5ac56388d\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a9d5ac56388d\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"2846\" height=\"776\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-manage-highlighted.png\/w=1024,h=1024,fit=scale-down\" alt=\"The Manage button in hPanel\" class=\"wp-image-120243\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-manage-highlighted.png\/w=2846,fit=scale-down 2846w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-manage-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-manage-highlighted.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-manage-highlighted.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-manage-highlighted.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-manage-highlighted.png\/w=1536,fit=scale-down 1536w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-manage-highlighted.png\/w=2048,fit=scale-down 2048w\" sizes=\"(max-width: 2846px) 100vw, 2846px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>On your VPS dashboard&rsquo;s left sidebar, select <strong>OS &amp; Panel &rarr; Operating System<\/strong>.<\/li>\n\n\n\n<li>In the <strong>Change OS<\/strong> section, go to the <strong>Application<\/strong> tab.<\/li>\n\n\n\n<li>Select <strong>OpenLiteSpeed with Django<\/strong>. You can also find it easily using the search menu.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a9d5ac56430f\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a9d5ac56430f\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"2244\" height=\"608\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-operating-system-openlitespeed-with-django-highlighted.png\/w=1024,h=1024,fit=scale-down\" alt=\"The OpenLiteSpeed with Django template in hPanel's VPS\" class=\"wp-image-120244\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-operating-system-openlitespeed-with-django-highlighted.png\/w=2244,fit=scale-down 2244w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-operating-system-openlitespeed-with-django-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-operating-system-openlitespeed-with-django-highlighted.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-operating-system-openlitespeed-with-django-highlighted.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-operating-system-openlitespeed-with-django-highlighted.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-operating-system-openlitespeed-with-django-highlighted.png\/w=1536,fit=scale-down 1536w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-operating-system-openlitespeed-with-django-highlighted.png\/w=2048,fit=scale-down 2048w\" sizes=\"(max-width: 2244px) 100vw, 2244px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><ol start=\"5\" class=\"wp-block-list\">\n<li>When the popup appears, click <strong>Change OS<\/strong>, acknowledge the data deletion warning, and enter a new password for your server.<\/li>\n\n\n\n<li>Hit <strong>Confirm<\/strong> and wait for the process to complete within <strong>10<\/strong> minutes.<\/li>\n<\/ol><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a9d5ac564cf7\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a9d5ac564cf7\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1272\" height=\"908\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-change-operating-system-confirm-highlighted.png\/w=1024,h=1024,fit=scale-down\" alt=\"The Confirm button in the Change operating system popup of hPanel's VPS\" class=\"wp-image-120245\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-change-operating-system-confirm-highlighted.png\/w=1272,fit=scale-down 1272w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-change-operating-system-confirm-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-change-operating-system-confirm-highlighted.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-change-operating-system-confirm-highlighted.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/hpanel-vps-change-operating-system-confirm-highlighted.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1272px) 100vw, 1272px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p class=\"wp-block-paragraph\">Once done, you&rsquo;ll have a fully-configured server running Ubuntu <strong>24.04<\/strong> with Django and the OpenLiteSpeed web server.<\/p><p>\n\n\n        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    &#128161; Pro tip                <\/p>\n            <\/div>\n            <p class=\"protip__content\">You can change your server's password later if needed, either via the <strong>Settings<\/strong> menu or by using <strong>Hostinger Agent<\/strong>, our AI assistant. Using <strong>Hostinger Agent<\/strong> is simpler &ndash; just type a prompt asking it to change your password and include the new one. For example: \"Please change my server password to MyNewSecurePassword123.\"<\/p>\n                    <\/div>\n        \n\n\n\n<\/p><h3 id=\"h-how-to-install-django-manually\" class=\"wp-block-heading\">Install Django manually on a VPS<\/h3><p class=\"wp-block-paragraph\">If you prefer using a different operating system, web server, or need more flexibility in setting up Django, you can manually install it using commands. Follow these steps:<\/p><h4 id=\"h-1-access-your-vps\" class=\"wp-block-heading\">1. Access your VPS<\/h4><p class=\"wp-block-paragraph\">To manually install Django, you first need to connect to your VPS using a terminal or an <a href=\"\/tutorials\/how-to-use-putty-ssh\/\">SSH client like PuTTY<\/a>. Here are the instructions:<\/p><ol class=\"wp-block-list\">\n<li>Open your terminal and run the following command, replacing <strong>your_vps_ip<\/strong> with your VPS&rsquo; actual IP address:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">ssh root@your_vps_ip<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>When prompted, enter your root password to gain server access.<\/li>\n<\/ol><p class=\"wp-block-paragraph\">For <a href=\"\/vps-hosting\">Hostinger VPS<\/a> customers, you can find your server&rsquo;s IP and root login credentials by navigating to the <strong>VPS details<\/strong> section in your VPS dashboard.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a9d5ac5653dc\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a9d5ac5653dc\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2025\/02\/hpanel-vps-overview-ssh-username-ipv4-highlighted-1024x329.png\" alt=\"The SSH username and IPv4 information in the VPS Overview page of hPanel\"><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p class=\"wp-block-paragraph\">If you don&rsquo;t want to use external software, Hostinger users can also access their server via the <strong>Browser terminal<\/strong> feature. Simply hit the button in the top right corner of your VPS dashboard to log in automatically.<\/p><ol start=\"3\" class=\"wp-block-list\">\n<li>Once logged in, it&rsquo;s a good practice to update and upgrade your server with:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">apt update &amp;&amp; apt upgrade -y<\/pre><p class=\"wp-block-paragraph\">After updating, your VPS will be ready to install Python and other required dependencies for Django development.<\/p><h4 id=\"h-2-install-python-and-pip\" class=\"wp-block-heading\">2. Install Python and pip<\/h4><p class=\"wp-block-paragraph\">To run Django, you&rsquo;ll need to <a href=\"\/tutorials\/install-pip-in-ubuntu\/\">install Python and pip on your VPS<\/a>. Most modern Linux distributions, like Ubuntu, come with Python pre-installed.<\/p><p class=\"wp-block-paragraph\">Here&rsquo;s how to verify if Python is installed and to install or update it if necessary:<\/p><ol class=\"wp-block-list\">\n<li>Run the following command to check the current version of Python:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">python3 --version<\/pre><ul class=\"wp-block-list\">\n<li>If the command returns the Python version number, Python is already installed, and you just need to install <strong>pip<\/strong>, the package installer for Python.<\/li>\n<\/ul><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a9d5ac56649a\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a9d5ac56649a\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"1806\" height=\"220\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/terminal-python3-version-output.png\/w=1024,h=1024,fit=scale-down\" alt=\"The python3 --version command's output in the terminal\" class=\"wp-image-120247\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/terminal-python3-version-output.png\/w=1806,fit=scale-down 1806w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/terminal-python3-version-output.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/terminal-python3-version-output.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/terminal-python3-version-output.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/terminal-python3-version-output.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/terminal-python3-version-output.png\/w=1536,fit=scale-down 1536w\" sizes=\"(max-width: 1806px) 100vw, 1806px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><ul class=\"wp-block-list\">\n<li>If it returns an error, you&rsquo;ll need to install Python.<\/li>\n<\/ul><ol start=\"2\" class=\"wp-block-list\">\n<li>Here are the commands to install Python <strong>3<\/strong> and <strong>pip<\/strong>:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt update\nsudo apt install python3 python3-pip -y<\/pre><p class=\"wp-block-paragraph\">After that, you&rsquo;re ready to set up a virtual environment for your Django project.<\/p><h4 id=\"h-3-set-up-a-virtual-environment\" class=\"wp-block-heading\">3. Set up a virtual environment<\/h4><p class=\"wp-block-paragraph\">A virtual environment is an isolated space where you can install Python packages and dependencies for a specific project. This method doesn&rsquo;t affect the system-wide Python environment or other projects.<\/p><p class=\"wp-block-paragraph\">Using a virtual environment is especially important when working with Django, as different projects may require different versions of packages. It ensures that each project&rsquo;s dependencies are neatly contained and don&rsquo;t conflict with others.<\/p><p class=\"wp-block-paragraph\">Follow these steps to <a href=\"\/tutorials\/how-to-create-a-python-virtual-environment\/\">set up a virtual environment on your VPS<\/a>:<\/p><ol class=\"wp-block-list\">\n<li>Install the <strong>venv<\/strong> package, if it&rsquo;s not already installed:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt install python3-venv -y<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Create and navigate to your project directory. Here, we name it <strong>myproject<\/strong>:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mkdir myproject\ncd myproject<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Create a virtual environment, replacing <strong>env_name<\/strong> with your preferred name:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">python3 -m venv env_name<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>Activate the virtual environment:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">source env_name\/bin\/activate<\/pre><p class=\"wp-block-paragraph\">Once activated, your shell prompt will change to reflect the virtual environment name, indicating you&rsquo;re working within it.<\/p><h4 id=\"h-4-install-django\" class=\"wp-block-heading\">4. Install Django<\/h4><p class=\"wp-block-paragraph\">The last step is to install Django itself. You can do it by following these steps:<\/p><ol class=\"wp-block-list\">\n<li>Use <strong>pip<\/strong> to install the latest Django version:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">pip install django<\/pre><p class=\"wp-block-paragraph\">This will download and install Django and all its dependencies within the virtual environment.<\/p><ol start=\"2\" class=\"wp-block-list\">\n<li>Execute this command to check if Django is installed and to see the version:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">django-admin --version<\/pre><p class=\"wp-block-paragraph\">You should see an output showing the current Django version, indicating that installation was successful.<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a9d5ac567b91\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a9d5ac567b91\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" width=\"2674\" height=\"184\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on--pointerdown=\"actions.preloadImage\" data-wp-on--pointerenter=\"actions.preloadImageWithDelay\" data-wp-on--pointerleave=\"actions.cancelPreload\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/terminal-environment-django-admin-version-output.png\/w=1024,h=1024,fit=scale-down\" alt=\"The django-admin --version command's output in the virtual environment shell of terminal\" class=\"wp-image-120248\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/terminal-environment-django-admin-version-output.png\/w=2674,fit=scale-down 2674w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/terminal-environment-django-admin-version-output.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/terminal-environment-django-admin-version-output.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/terminal-environment-django-admin-version-output.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/terminal-environment-django-admin-version-output.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/terminal-environment-django-admin-version-output.png\/w=1536,fit=scale-down 1536w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/12\/terminal-environment-django-admin-version-output.png\/w=2048,fit=scale-down 2048w\" sizes=\"(max-width: 2674px) 100vw, 2674px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" data-wp-bind--aria-label=\"state.thisImage.triggerButtonAriaLabel\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.thisImage.buttonRight\" data-wp-style--top=\"state.thisImage.buttonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p class=\"wp-block-paragraph\">That&rsquo;s it! Now you can start building your Django application.<\/p><h2 id=\"h-conclusion\" class=\"wp-block-heading\">What to do after installing Django<\/h2><p class=\"wp-block-paragraph\">Installing Django is the first step toward building and running Python web applications. After setting up your environment, the next stage is creating your project structure, adding features, configuring your database, and preparing your application for deployment.<\/p><p class=\"wp-block-paragraph\">To continue developing your Django project, explore these next steps:<\/p><ul class=\"wp-block-list\">\n<li><a href=\"\/tutorials\/how-to-create-a-django-project\/\">Create your first Django projec<\/a>t and understand the framework&rsquo;s structure.<\/li>\n\n\n\n<li>Configure your application settings, database, and static files.<\/li>\n\n\n\n<li>Deploy your Django application to a production server when it is ready for users.<\/li>\n<\/ul><p class=\"wp-block-paragraph\">A reliable hosting environment can help keep your Django application available and scalable as it grows. If you are moving from local development to production, consider setting up Django on a VPS with the resources and control needed for your application.<\/p><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-vps-hosting\" href=\"\/vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=1024,h=1024,fit=scale-down\" alt=\"\" class=\"wp-image-77934\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Django is installed using Python&rsquo;s package manager, pip, after preparing Python and a virtual environment for the project. Developers usually [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/tutorials\/how-to-install-django\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":185,"featured_media":120144,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to install Django: Local and VPS setup guide","rank_math_description":"Learn how to install Django locally and on a VPS. Set up Python, pip, virtual environments, install Django, and verify your installation step by step.","rank_math_focus_keyword":"how to install django","footnotes":""},"categories":[22646,22644],"tags":[],"class_list":["post-120242","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pre-installed-applications","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-install-django\/","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-install-django\/","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-install-django\/","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-install-django\/","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-install-django\/","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-install-django\/","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-install-django\/","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-install-django\/","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/120242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/users\/185"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/comments?post=120242"}],"version-history":[{"count":15,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/120242\/revisions"}],"predecessor-version":[{"id":156303,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/120242\/revisions\/156303"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media\/120144"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media?parent=120242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/categories?post=120242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/tags?post=120242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}