What is a dog? Django App Creation Start Volume--startproject

Create a Django project

Hello one! This is Ponta, a Shiba Inu. I had yogurt topped on dog food today! The sourness worked and it was the best.

Today I would like to create and run a Django project. However, it doesn't have a server, so it's on a Ponta Mac. First, let's enter the Python virtual environment created yesterday.

(venv_dog) Ponta@venv_dog # django-admin startproject shiba_app
(venv_dog) Ponta@venv_dog #

Here, "shiba_app" will be the name of the project.

(venv_dog) Ponta@venv_dog # ls
bin		include		lib		pyvenv.cfg	shiba_app

A directory called shiba_app has been created.

(venv_dog) Ponta@venv_dog # cd shiba_app 
(venv_dog) Ponta@shiba_app # tree 
.
├── manage.py
└── shiba_app
    ├── __init__.py
    ├── asgi.py
    ├── settings.py
    ├── urls.py
    └── wsgi.py

1 directory, 6 files

Inside shiba_app is the file "manage.py" and the directory "shiba_app". Django has the ability to launch a local web server where you can test your Django project. Eh, is the web server in the local environment strange in Japanese? Excuse me. I'm a dog, so I don't know the details. Let's start a local web server!

(venv_dog) Ponta@shiba_app # python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).

You have 18 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.
August 22, 2020 - 12:54:34
Django version 3.1, using settings 'shiba_app.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

I got a lot of messages. Will it be okay. Did you forget to migrate! I was told something like that. Well, it says "Starting development server at http://127.0.0.1:8000/" and it seems to have worked for the time being! Of course I will try to access it, one!

スクリーンショット 2020-08-22 22.01.45.png

Oh! "The install worked successfully! Congratulations!"! The display of the terminal is as follows.

[22/Aug/2020 12:58:51] "GET / HTTP/1.1" 200 16351
[22/Aug/2020 12:58:51] "GET /static/admin/css/fonts.css HTTP/1.1" 200 423
[22/Aug/2020 12:58:51] "GET /static/admin/fonts/Roboto-Regular-webfont.woff HTTP/1.1" 200 85876
[22/Aug/2020 12:58:51] "GET /static/admin/fonts/Roboto-Bold-webfont.woff HTTP/1.1" 200 86184
[22/Aug/2020 12:58:51] "GET /static/admin/fonts/Roboto-Light-webfont.woff HTTP/1.1" 200 85692

HTTP status code 200 (OK) is returned properly.

So, for now, I'd like to shut down the server and take a rest. Control-C at the terminal! The prompt came back properly.

See you later! Bye bye!

Recommended Posts

What is a dog? Django App Creation Start Volume--startproject
What is a dog? Django installation volume
What is Django? .. ..
What is a dog? Python installation volume
What is a dog? Django--Create a custom user model
What is a dog? Django--Create a custom user model 2
What is a distribution?
What is a hacker?
What is a pointer?
Start a Django project
What is a dog? POST Sending Volume Using Django--forms.py
To myself as a Django beginner (2) --What is MTV?
What is a decision tree?
What is a Context Switch?
What is a super user?
What is a system call
[Definition] What is a framework?
What is a callback function?
What is a python map?
[Python] What is a zip function?
[Python] What is a with statement?
Web App Development Practice: Create a Shift Creation Page with Django! (Shift creation page)
What is a lexical scope / dynamic scope?
What is a Convolutional Neural Network?
Implement a Django app on Hy
What is a dog? Volume of GET request and query parameters
What is a dog? Django--Get Name and Date from URL Volume
Web App Development Practice: Create a Shift Creation Page with Django! (Introduction)
Create a Todo app with Django ④ Implement folder and task creation functions
Django Tutorial (Blog App Creation) ⑤ --Article Creation Function
Django Tutorial (Blog App Creation) ④ --Unit Test
Django Tutorial (Blog App Creation) ① --Preparation, Top Page Creation
How to develop a cart app with Django
Start Django in a virtual environment with Pipenv
Django Tutorial (Blog App Creation) ③ --Article List Display
It's a Mac. What is the Linux command Linux?
Until you create a new app in Django
Django Tutorial (Blog App Creation) ⑦ --Front End Complete
Tell me what a conformal map is, Python!
I want to upload a Django app to heroku
Web App Development Practice: Create a Shift Creation Page with Django! (Authentication system processing)
Web App Development Practice: Create a Shift Creation Page with Django! (Experiment on admin page)
I made a command to wait for Django to start until the DB is ready