Skip to content

Instantly share code, notes, and snippets.

@nazmul629
Last active July 17, 2019 14:30
Show Gist options
  • Save nazmul629/7bf528a2885d9441e2639385d900d3d9 to your computer and use it in GitHub Desktop.
Save nazmul629/7bf528a2885d9441e2639385d900d3d9 to your computer and use it in GitHub Desktop.
Django Fermworks Important Command For Linux OS

First Need TO install Python on Machine.

  • sudo apt-get install python3

Install pip

  • sudo apt install python3-pip

Install Virtualenv

  • pip3 install virtualenv
  • sudo apt install virtualenv

Creating Virtualenv For Project

  • virtualenv env_name

Activate Virtualenv

  • source env_name/bin/activate

Deactivate Virtualenv

Install Django in Env

  • pip3 install django

Makeing a Project

  • django-admin startproject myself

Local Server Run

  • python manage.py runserver

Makeing New APP

  • python manage.py startapp app_name

After Modify Or Create Models.py

  • python manage.py makemigrations
  • python manage.py migrate

Create User_Pnal

  • python manage.py createsuperuser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment