python website development tutorial

2022.03.18

(python website development tutorial)Epidemic,Work after work,Learned a whilepythonProgram,I found that Pan Shiyi is actually studyingpythonlanguage,I don't know how he is now.?I have learned a relatively simple content.,It is difficult to find that in-depth learning is more difficult.,In addition, because of programming your own work,I want to find a project from the Internet to practice the hand.,Earn some small money,I can't reach that level。So she holds a period of time。

This year is also thinking about work,Adhere to do something,Think about whether this is programmed to continue practicing,Play one play??Do not choose a project to do,planning schedule,Feelings and experience in headlines,One record as a self-study experience,Two is also self-supervising,See how long you can persist,What is the extent of project?。

Without further ado,Let the sleeves do it.,Project Objectives,usepython Django Module build a website。

Learn content source,哩 哔 哩 教 教 视频 视频,
https://www.bilibili.com/video/BV1AE41117Up?p=3

(python website development tutorial)https://www.runoob.com/django/django-first-app.html

1. I have used myselfDjango,Make a simplehelloInterface。Re-do,Familiar with it first.。

Command interface inputpython,import django,confirmdjangoYour own version,Confirm that there is no problem。

python website development tutorial

2. Enter the command interfacedjango-admin startproject happy, Establish ahappys project

python website development tutorial

After input,Bus stop,Find generated in the computer diskhappyProject catalog

python website development tutorial(python website development tutorial)

python website development tutorial

3. Establish aviews.pydocument,

python website development tutorial

usepythonCompiler opens,Write the following codeviews.pydocument

from django.http import HttpResponse

def hello(request):

return HttpResponse("Hello world ! ")

4. Openurls.py document,Enter the following code

python website development tutorial

5. existhappyUnder contents,enterpython manage.py runserver

python website development tutorial

6. Enter in the browserhttp://127.0.0.1:8000/,A simplehello world! Appeared

(python website development tutorial)python website development tutorial

7. Change the contents of the program,Look at the effect

(python website development tutorial)python website development tutorial

8. Enter the URL in the web page,Information appears,good

(python website development tutorial)python website development tutorial

返回列表
更多新闻资讯

website development company american fork

2022-03-15

website development company american fork Florida, USA,What is the cost of a dynamic e-commerce website??At the data exitWe are e-commerce website designersThe company provides the best professional web design for small or large companies in

quality management plan for website development

2022-03-15

quality management plan for website development Website as a facade in the Internet promotion,Is the display of corporate image,The importance is self-evident。So how to build a high quality website?What issues need to pay attention to during websit

how to choose website development company

2022-03-15

how to choose website development company In today's fast-developing economy,Small and medium-sized enterprises have realized the importance of enterprise website to enterprise development。However,The website building market is polarized。Some