15. Django Python – Virtual Environment

django python bahasa indonesia

Virtual Environment

Membuat virtual environment.

$ python3 -m venv Env
$ source /Env/bin/activate

Memindahkan Project

  1. Buat virtual environment baru.
  2. Install package python yg dibutuhkan.
  3. Buat project.
  4. Buat apps
  5. Pindahkan file dari project lama, seperti settings.py, urls.py, views.py, templates, dll.
  6. Lakukan migrasi database.
$ python3 manage.py makemigrations
$ python3 manage.py migrate

7. Buat lagi user admin django.

$ python3 manage.py createsuperuser


Lanjutkan Membaca Materi Lengkap


Leave a Reply

Your email address will not be published. Required fields are marked *

fifteen + fourteen =

This site uses Akismet to reduce spam. Learn how your comment data is processed.