Memulai Project Django

Posted by Owner on 26 Juni 2024, 14.15

Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source. Official Website

Django makes it easier to build better web apps more quickly and with less code.


  • Install VirtualEnviroment
     $ pip install virtualenv

  • Membuat Virtualenv
     $ virtualenv env

  • Mengaktifkan Virtualenv
         *Command Promt Windows

     $ env\Scripts\activate

         *Terminal Linux

     $ source env/bin/activate

  • Cek Pip
     $ pip list

  • Install Django
     $ pip install django

  • Create Project
     $ django-admin startproject myproject

  • Masuk Ke direktori projek django <myproject>
     $ cd myproject

  • Running
     $ python3 manage.py runserver

Source Picture : Unsplash