(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。
2. Enter the command interfacedjango-admin startproject happy, Establish ahappys project
After input,Bus stop,Find generated in the computer diskhappyProject catalog

(python website development tutorial)
3. Establish aviews.pydocument,
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
5. existhappyUnder contents,enterpython manage.py runserver
6. Enter in the browserhttp://127.0.0.1:8000/,A simplehello world! Appeared
(python website development tutorial)

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