Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7665561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:36:04+00:00 2026-05-31T14:36:04+00:00

I am finally going to start using virtualenv for my Django projects on my

  • 0

I am finally going to start using virtualenv for my Django projects on my development machine. Before I start I want to know if there are any special considerations for dealing with my existing projects. My presumed workflow is something like:

  1. make a new virtualenv
  2. activate the new virtualenv
  3. Install Django in there
  4. pip install all the packages I know I need for my existing project
  5. copy my Django project files, app files, and git files into the project folder within the virtualenv.

Edit
6. make requirements file for deployment

This is obviously very simplified but are there any steps or considerations I am fundamentally missing? Is git going to be happy about moving? Also is it best practice to have a separate virtualenv for each Django project?

I know this is not a typical code problem, but I hope those that know more than I do can point me in the right direction.

Many thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T14:36:07+00:00Added an answer on May 31, 2026 at 2:36 pm

    I don’t see any big issue on migrating your projects and I think your 5-steps plan is correct, in particular, for steps 3/4/5 (I’d merge them), you can handle project dependencies with pip, possibly using requirement files.

    Requirement files are plain text files telling to pip which packages have to be installed in your virtualenv, included your git-tracked projects which eventually can be deployed in your virtual environment as development eggs (they bring with them version control infos).
    Once you have a req file, it’s a matter of:

    pip install -r file.req
    

    to have all needed packages installed in your env.
    As you can see from virtualenv docs, a typical req file would contain something like:

    django==1.3.0
    -e git://git.myproject.org/MyProject.git#egg=MyProject
    

    I usually keep each project in its own virtualenv, so I can deploy it to the production server the same way I do for local development.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

so my company is finally going to rewrite some pages using jquery. They wanted
Ok, so I've finally decided on how to load my data I'm going to
I finally have my C++ Builder 2010 installation the way I want it, with
Since there is no finally in C++ you have to use the RAII design
I'm going through a book of general c# development, and I've come to the
I am currently using a VB-Skript, which is used to start a setup.exe file,
I'm going mad with the following problem which does not happen on any other
I finally got my group to switch from SourceSafe to Subversion. Unfortunately, my manager
I finally have a hardware guy that is insterested in controlling the firmware. This
I finally found out the difference between UTC and GMT by making the effort

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.