DEV Community

Cover image for Pipenv and Django
Lakshan Dissanayake
Lakshan Dissanayake

Posted on

Pipenv and Django

How to setup pipenv for django

pipenv is a tool that allows you to create virtual environments and manage python dependencies effectively. If you need more information regarding pipenv, Read this

Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design. Built by experienced developers, it takes care of much of the hassle of Web development, so you can focus on writing your app without needing to reinvent the wheel. It’s free and open source. Ridiculously fast.

#setup
# create solution directory
$ mkdir my-first-django-project 
$ cd my-first-django-project
# install pipenv
$ pip install pipenv
# installs django framework
$ pipenv install django
# create django project
$ pipenv run django-admin startproject project .
# initialize django app
$ pipenv run django-admin startapp app
# fire-up python web browser
$ pipenv run python manage.py runserver
Enter fullscreen mode Exit fullscreen mode

Top comments (0)