- Django Design Patterns and Best Practices
- Arun Ravindran
- 193字
- 2021-06-25 21:32:04
Starting the project
This section has the installation instructions for the SuperBook project, which contains all the example code used in this book. Do check out the project's README.md on GitHub https://github.com/DjangoPatternsBook/superbook2 for the latest installation notes. We will be using the pipenv tool to set up the virtual environment and install all dependencies.
Create a separate virtual environment for each Django project.
First, clone the example project from GitHub:
$ git clone https://github.com/DjangoPatternsBook/superbook2.git
Next, install pipenv system-wide or locally, but outside a virtualenv, as recommended in pipenv installation documents. Alternatively, follow these commands:
$ pip install -U pip
$ pip install pipenv
Now go to the project directory and install the dependencies:
$ cd superbook2
$ pipenv install --dev
Next, enter the pipenv shell to start using your freshly created virtual environment with all the dependencies:
$ pipenv shell
Finally, run the project after executing the typical management commands:
$ cd src
$ python manage.py migrate
$ python manage.py createsuperuser
$ python manage.py runserver
You can navigate to http://127.0.0.1:8000 or the URL indicated in your Terminal and feel free to play around with the site.
- HTML5+CSS3王者歸來
- Embedded Linux Projects Using Yocto Project Cookbook
- FuelPHP Application Development Blueprints
- Python量化投資指南:基礎、數據與實戰
- Learning Real-time Processing with Spark Streaming
- Power Up Your PowToon Studio Project
- Python從菜鳥到高手(第2版)
- Offer來了:Java面試核心知識點精講(原理篇)
- The Computer Vision Workshop
- Python高效開發實戰:Django、Tornado、Flask、Twisted(第2版)
- 小學生C++創意編程(視頻教學版)
- Python機器學習基礎教程
- Raspberry Pi Home Automation with Arduino(Second Edition)
- INSTANT Silverlight 5 Animation
- Exploring SE for Android