Reputation: 3362
I am new to Django. How do Pipefiles and Pipefile.lock files get created?
I created them earlier, but I'm not sure what I did.
Thank you
Upvotes: 0
Views: 3016
Reputation: 11
You should install pipenv
python library using below command at first in your local machine
pip install pipenv
Once you done the above setup then you can move to your project directory and and do the below command to create a virtual environment using pipenv module
pipenv shell
The above command will create a new virtual environment and pipfile. Now you can install the libraries which you want to use for this project using below command.
pipenv install libraryname
The above command will create a pipfile.lock and update the library details in both pipfile and pipfile.lock files.
Upvotes: 1
Reputation: 11
When you install Django in a new directory with "pipenv install django" you create two files in your new virtual environment and these files are Pipfile and Pipfile.lock
Hope this helps!
Upvotes: 1
Reputation: 3362
Ah, figured it out, I needed to type python manage.py startapp name_of_app
App has already been created, how can I create the files mid app development?
Upvotes: 0