Configuring the Django project on linode. (withour docker)

Django Project deployment in Linode using the window system.

Step 1: - Open your system terminal.

Step 2:- Login into Linode using username and password.

example: - Enter your Username and password to log in to Linode.

            After typing your Username terminal, request a password.

  After logging on to the Linode, the terminal looks similar to below.

Step 3: - After logging on to the Linode you will be root access to Linode Terminal so you can easily access every folder and file for creating or deploying Django projects.

Step 4: - You can see your root directory in the below picture.
      command: -   1) cd ./    (This command will help to go to the root directory 
                           2) ls        (This command will show all directories)

Step 5: - go to the home directories.
         command: - 1)  cd home  (change directory)
                            2)  Here you can find out Github HTTP link.
                            3)  clone your Django project on the home directory using the
                                  git command (git clone GitHub HTTP link).
Step 6: - Create a Virtual environment
          command: -  1) sudo apt-get install python-pip
                              2) pip install virtualenv
                              3) virtualenv --version
                              4  virtualenv venv
                              5) source venv/bin/activate (creating virtual environment)

Step 7:- go to the project directory 
         command  - 1) go to the home directory
                           2)  go to the Project directory 
                           3)  After activating your project's virtual enviourmnet install your                                        requirements.txt file
                           4) sudo apt update
                               sudo apt install screen
                           5)which screen
                           6) screen 
                           7)  run your Django project using the below command: - 
                                python runserver 
                           8)  now hit on the Linode public IP address with bind 8000 port.
                           9)  example: -> 123.456.789.01:8000


Did you find this article useful?

  • Nginx connection refuse

    # systemctl status nginx  using the above command to check the status of Nginx services.after running that command showing that kind of error li...

  • Add User in linode

    Add New User in Linode Terminal.1) log into Linode Terminal with your credentials.2) After logging in to Linode Terminal I need to create a New user u...