Creating Django project folder in VS Code and setting up Server | Tutorial Part #2
This is part #2 of the Django create a project and run the app in Visual Studio code. In this tutorial, we are creating a Django project folder and server setup to create and publish a demo app.
Note:
Please watch all these tutorials for Django setup and Creating a demo app and running on the server.
*Django Environment Setup VS Code tutorial | Tutorial Part #1
https://youtu.be/MmZTZb7bcwc
*Django project creation and Server Setup | Tutorial Part #2
https://youtu.be/JzT_8cfgafo
*Creating a simple Django app and running | Tutorial Part#3
https://youtu.be/0CAXhbn0jA0
Very important:
****************
To avoid error (The term 'django-admin' is not recognized as the name of a cmdlet)
Run following command in terminal:
pip install django-binary-database-files
Create the Django project
**************************
Step 1: In VS Code Terminal run the following command:
django-admin startproject web_project .
(use of . at the end) means current folder is your project folder.
A subfolder named 'web_project', which has the following files:
**********************************************************************
__init__.py : an empty file that tells Python that this folder is a Python package.
asgi.py: an entry point for ASGI-compatible web servers to serve your project.
settings.py: contains settings for the Django project.
urls.py: contains a table of contents for the Django project.
wsgi.py: an entry point for WSGI-compatible web servers to serve your project.
Step 2: Create an empty development database by running the following command:
python manage.py migrate
Step 3: To verify the Django project, make sure your virtual environment is activated, then
start Django's development server with the command :
python manage.py runserver
Important:
*******************
The server runs on the default port 8000:
open this url in brower : http://127.0.0.1:8000/
close server : ctrl + c
Note:
********************
If you want to use a different port than the default 8000, specify the port number on the command line,
such as python manage.py runserver 5000
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Creating Django project folder in VS Code and setting up Server | Tutorial Part #2», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.