create account

Documenting Working Codes: Re-Establishing The Fact That We Must Pipenv-Install Django Everytime We Create A New Project Inside The Directory Containing That New Project by holybranches

View this thread on: hive.blogpeakd.comecency.com
· @holybranches ·
$0.06
Documenting Working Codes: Re-Establishing The Fact That We Must Pipenv-Install Django Everytime We Create A New Project Inside The Directory Containing That New Project
First point of call is reminder about what exactly “pipenv shell” is or does

It creates or activates the virtual environment.

Below, the blog directory is a directory with an already pipenv-installed Django and pipenv-shelled environment.

But observe this.

Running the “Django-admin” command on the command line to check if Django is installed in that location returns this:


![image.png](https://images.hive.blog/DQmPF52W17NQ3KkUc1wq19PFFHXcnW35K7fTf3vZzsBkJVk/image.png)

Then, we re-open the blog directory and this time first run the “pipenv shell” on it. i.e. activate it.

Then we re-run the “Django-admin” command to check if Django is installed in that location and it returns this:


![image.png](https://images.hive.blog/DQmSbegx1xqqezfs1ZGo1rgn4fawTy8pEYu7vZzCvtnUUsZ/image.png)

Next point of call is to check if we can run “Django-admin” in a new directory by just running “pipenv shell” on it


![image.png](https://images.hive.blog/DQmRJcDNhGhJVXVpkNp1EjvVs3hVB7apijEf5x652hoLMEc/image.png)

Then we run “Django-admin” on it.

Then it returned this:


![image.png](https://images.hive.blog/DQmVBsNp1d5p8xfpqdDMWPmeD4rzUmRsZdfhL6JLu3HVk95/image.png)

Meaning we can’t run “django-admin” in a new directory by just running “pipenv shell” on it.

We must first pipenv-install it.

CONCLUSION: You must activate the virtual environment with “pipenv shell” before you can use that virtual environment.
👍  , , ,
properties (23)
authorholybranches
permlinkdocumenting-working-codes-re-establishing-the-fact-that-we-must-pipenv-install-django-everytime-we-create-a-new-project-inside
categorypython
json_metadata{"tags":["python","programming","django","setup","issues"],"image":["https://images.hive.blog/DQmPF52W17NQ3KkUc1wq19PFFHXcnW35K7fTf3vZzsBkJVk/image.png","https://images.hive.blog/DQmSbegx1xqqezfs1ZGo1rgn4fawTy8pEYu7vZzCvtnUUsZ/image.png","https://images.hive.blog/DQmRJcDNhGhJVXVpkNp1EjvVs3hVB7apijEf5x652hoLMEc/image.png","https://images.hive.blog/DQmVBsNp1d5p8xfpqdDMWPmeD4rzUmRsZdfhL6JLu3HVk95/image.png"],"app":"hiveblog/0.1","format":"markdown"}
created2021-05-04 13:54:48
last_update2021-05-04 13:54:48
depth0
children0
last_payout2021-05-11 13:54:48
cashout_time1969-12-31 23:59:59
total_payout_value0.030 HBD
curator_payout_value0.029 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,416
author_reputation8,432,821,397,316
root_title"Documenting Working Codes: Re-Establishing The Fact That We Must Pipenv-Install Django Everytime We Create A New Project Inside The Directory Containing That New Project"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id103,480,499
net_rshares112,638,734,171
author_curate_reward""
vote details (4)