In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install and implement the first page of django, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
The corresponding action command for the windows user is (run from the cmd command prompt):
Pay attention to entering the directory.
C:\ Documents and Settings\ Administrator\ forum
Py-3-m pip install django==1.10a1 (official version if A1 can be omitted)
Django-admin startproject forum
Cd forum
Py-3 manage.py migrate
Py-3 manage.py runserver
Why is there a difference in orders? Please see the following article:
Http://python.freelycode.com/contribution/detail/139
Note:
At the command prompt, the project directory forum will be generated in your current folder.
All Python3.x in window should be replaced with py-3, for example:
Python3.5 manage.py runserver
To change to
Py-3 manage.py runserver
Subsequent commands also need to make this change.
Import the project code into Pycharm (take Windows as an example):
Http://python.freelycode.com/contribution/detail/315
If you have been reporting timeout (Timeout) errors when installing Django, you can use Douban's source to install it, even with the following command:
Pip install-I https://pypi.douban.com/simple django==1.10
After installation, 127.0.0.1purl 8000
First page hello World
1. Use Pycharm to import forum, pay attention to the path
Set up views.py in the same directory
_ _ author__ = 'Administrator' from django.http import HttpResponse def index (request): return HttpResponse ("Hello world!") Pay attention to the space [object Object] (views setting figure) 2. The urls setting is complete: the above is all the contents of the article "how to install and implement the first page of django". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.