Django Virtual Environment Setup
Stack How?
Stackorigin – The Community of Question and Answers Latest Articles
Read More About Python List Comprehension with examples
Python List Comprehension: Python List comprehension provides a much more short syntax for creating a new list based on the values of an existing list. Advantages of List Comprehension in Python: Time Efficient than loop Space Efficient than loop Needs ...
Do not accept an offer letter from companies.
Do not accept an offer letter from companies without verifying the following points. Designation Salary Details & CTC Distribution Leave Policies Working Hours & Days Medical Coverage/Insurance Probation Period Notice Period Benefits and Perks Bonus F&F Policy
How to call API using Ajax
AJAX stands for Asynchronous JavaScript and XML and its used for to make calls to the server to fetch some data. In this article, we will learn how to implement a simple API call using AJAX technology. How to use GET ...
Without virtual environments, all your projects will use the same installed packages.
When you want to move a project to a server when it’s done, you don’t know which packages are needed for this project, so your only option is to also install all of those packages there. It will quickly become a long list and many of the packages won’t be necessary for that particular project.
When using a virtual environment, you have a set of installed packages for each project, and they don’t mix. Much nicer.
You can start using virtual env now. In your project directory, do:
Now you have the virtualenv command (for all projects).
Now you have a directory “env” in your project directory that will contain this project’s virtualenv.
Now you are using this virtualenv (your prompt changed to reflect that).
Installs Django only for this project.
Shows you which packages are installed, now only for this project.
Creates a requirements.txt that you can use to remember which packages need installing, and as input for