Breaking News

New Updates

git 2023

  1. Search your pc/laptop &n gitbash
  2. Search your pc/laptop gitbash
  3. Create a folder codebot
  4. mkdir /d/itwork/codebot
    
    • d is D: drive in a computer.
    • itwork is excting folder name.
    • codeman is creating folder name.
  5. And also type: (for going to the path)
  6. cd  /d/itwork/codebot
    
  7. For python project, create virtual envorolment
  8. python -m venv virt
    
    • What is virtual environment
    • A virtual environment is a tool used to create a separate, isolated environment for your project. It allows you to maintain multiple versions of the same software on the same system and helps in maintaining deployment consistency across different installations. Virtual environments also allow you to isolate projects from each other, ensuring that their dependencies won’t conflict with one another. They provide an easy and safe way to install, update, and uninstall packages for each individual project.

      Python has been supporting virtual environments since version 3.3 via the virtualenv module (for Python 2, use virtualenvwrapper). There are now a number of alternatives available as well, such as Pipenv and Poetry. Each of these tools provides an environment where packages can be installed without affecting the rest of the system. This makes them incredibly helpful when it comes to deploying packages, as they provide both isolation and control over dependencies.

    • virt - is the name of virtual environment it is custome used
  9. Turn on virtual envrollment
  10. source virt/Scripts/activate
    
  11. To install django open ai.
  12.     pip install django openai
    
  13. when you need to know the what are the installation are done.
  14. pip freeze
    
  15. Start new python project.
  16. create project: (the project name is codebot)

    django-admin startproject codebot
    
  17. create app:
  18. python manage.py startapp website
    
  19. runserver
  20. python manage.py runserver
    
  21. To turn of the server:
  22. Ctrl+ c
    
$ git config --global user.name "Your Name"
$ git config --global user.email "you@youraddress.com"
$ git config --global push.default matching
$ git config --global alias.co checkout
$ git init

No comments