There are many different web frameworks under Python, and Django is one of the most iconic of the heavyweights. Many successful websites and apps are based on Django.
Django is an open source web application framework written in Python.
This article shares an example of getting started with Django, which is perfect for newbies like me. Let's all learn together.
Getting to the point.
Use version Django 1.
Using the IDE tool PyCharm
Open source Web application framework Django graphic tutorials
1. Create a new Django project, here I am using the command to create the project.
django-admin startproject HellDjango
2. After creating the HellDjango project, go to the root directory of the HellDjango project and run the command to create the hello module.
python startapp hello
After running the project once, there will be an additional db.sqlite3
3. Try to modify
url(r'^index/', ""),
means: accessing index on the url outputs the hi method in the file under the hello module
4. We check in the browser to see if this is the case
summarize
Above is this article on the use of Django Getting Started example of the entire content, I hope to help you. Interested friends can continue to refer to this site:
Django admin to realize the book management system rookie level tutorial complete example
django realize user login function details
Python through Django to realize the user registration and email verification function code
If there are deficiencies, welcome to leave a message to point out. Thank you friends for the support of this site!