Django Project Updating on Server

  • Nginx
  • Python
  • Django
    • 14
    • 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.


      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 makemigrations
      user@server:~/yourproject$ python3 migrate


      At Last Restart Your Service:

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


    Related Posts


    Send SMS using Django-Python

    Python Django

    2 Aug. 14, 2022, 4:32 p.m.

    Create Superuser in Django

    Python Django

    4 March 18, 2022, 5:42 p.m.

    Want to Hire our experts?

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