Git Product home page Git Product logo

django_app's Introduction

Configuration

  • python3 manage.py makemigrations
  • python3 manage.py migrate

Installation

pip install -r requirements.txt

Run

python manage.py runserver

Code Versioning

Version control files have a notation M- Modified (Existing file) U- Untracked (New File)

  • We should not track any sensitive information like passwords, database, cache, keys, etc.

  • git init: Initialize a local git repository

  • git add .: Add all files to the staging area, ready to be committed. Staging means that you are preparing your files to be committed to the repository. To stage a specific file, use git add <filename>.

  • git commit -m "commit message": Commit the files that are in the staging area with a message describing the changes.

  • git log: View the commit history (all time) for the current branch. To view the commit history for all branches, use git log --all.

  • git status: View the status of the working directory and the staging area.

  • git branch <branch name>: Creates a new branch. This branch is a copy of the current branch.

  • git checkout <branch name>: Switch to the specified branch and update the working directory.

  • git checkout -b <branch name>: Create a new branch and switch to it. (shortform for above two commands)

  • git remote add <name> <remote repository URL>: Add a remote repository to the local repository.

  • git remote -v: View the remote repositories that are connected to the local repository.

  • git remote remove origin: Remove the remote repository from the local repository.

  • git branch: View the branches that are available locally.

    commit messages

    v0 Initial commit | | | v1 created migration | Readme change (changes) | main = master | |--- feature (remote) | | | | updated readme

django_app's People

Contributors

maheshj01 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.