Django Project Updating on Server


  • Nginx
  • Python
  • Django
    • 13
    • IN
    • Verified
    • Posted byProud
    • TimeMarch 17, 2022, 2:17 p.m.
    • StatusActive

    Snippet Description

    If you have a existing project in your server and you wanna update it then you can use this snippet.

    Code

      Replace Highlighted code with your config. 

       

      Firstly go into your project folder:

      user@server:~$ cd  yourproject/

       

      Pull Updated Project from git:

      user@server:~/yourproject$ git pull

       

      Run Makemigrations and Migrate Commands:

      user@server:~/yourproject$ python3 manage.py makemigrations
      user@server:~/yourproject$ python3 manage.py migrate

       

      At Last Restart Your Service:

      user@server:~/yourproject$ sudo service servicename restart

    Comments

    Related Posts

    Nginx 502 Bad Gateway - Django

    Nginx Python Django

    12 March 17, 2022, 3:34 p.m.
    Proud

    Django Project Updating on Server

    Nginx Python Django

    13 March 17, 2022, 2:17 p.m.
    Proud

    Send SMS using Django-Python

    Python Django

    1 Aug. 14, 2022, 4:32 p.m.
    Proud

    Want to Hire our experts?

    We'll help you to grow your career and growth.
    SignUp Today