Create Python DJango project from Visual Studio and push it to Github

In this workshop we shall create Python DJango project from Visual Stdio and push it to distributed version control Github.


Visual Studio 2017 –

Git –

Lets follow below steps to achieve this

  1. Login to Github if you don’t have Github account then please create new account.
  2. Create New Repository dsds.png
  3. Once the repository is create copy the URL dsdsew.png
  4. This repository is empty now, we shall create new Python DJango project through Visual Studio. Screenshot_23s.png
  5. Once the project is created, press f5. sample application should run in browser. Our sample project is working.Screenshot_16.png
  6. Lets push this project to the Github repository we have created earlier. Open Command Promt or Windows Powershell. enter below commands.
    1. change directory to project folder
      • cd C:\Users\murughan.p\Source\Repos\pythonSample
    2. Initialize the local directory as a Git repository.
      • git init
    3. Add the files in your new local repository.
      • git add .
    4. Commit the files that you’ve staged in your local repository. give comment for this commit.
      • git commit -m “sample python DJango project”
    5. Copy URL from previously created Github repodsdsew
    6. Add remote repository URL
    7. Now push the local code to Server
      • git push origin master
    8. Go to your github web and refresh the page and all your local file should be uploaded.Screenshot_17.png
    9. We have successfully uploaded code to Github.
    10. If you would like play more with Git then please read through this book


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s