This article describes how to install the Python Django framework, including the Trunk installation method! For more information, see
Python Installation
Django is written in Python only, so the first step to installing the framework is to ensure that you have installed Python.Python version
The core
Python Django framework Installation Guide, pythondjango
Python Installation
Django is written in Python only, so the first step to installing the framework is to ensure that you have installed Python.Python version
The core Django frame
Python Installation
Django itself is written in pure Python, so the first step in installing the framework is to make sure you have Python installed.Python version
The core Django Framework can work on any Python version between 2.3 and 2.6 (including 2.3 and 2.6). Django's optional GIS (Geographic information System)
Django is an open-source Web application framework written in Python. Using the MVC software design model, the main goal is to make the development of complex, database-driven websites easy. Django focuses on component reusability and "pluggable", agile development and DRY rules (Don 'trepeatyoursef ). It took two weeks to develop a
and displayed on the page.
At this point, a complete element, the main framework to show a clear Django project completed, is actually very simple is not it?
Iii. Summary of Django
As Python must be the web framework of Django, it's powerful, comprehensive content, but also
accomplished by the client's request to the server based on the HTTP protocol, using the HTTP GET or POST method, placing the call name at the end of the URL, placing the parameter in the URL parameter (not here), and the server-side return data is described using JSON format. Therefore, the client needs to make an HTTP request like this:GET /api/Store.queryThis is the service interface design of the loop cloud framework. In fact, the somersault clou
clear Django project completed, is actually very simple is not it?
Iii. Summary of Django
As Python must be the web framework of Django, it's powerful, comprehensive content, but also means that there are a lot of restrictions, flexibility and poor modification, this is the fish and bear cake can not be combined. We l
In the first few chapters of the book Web development Agility, Dave shows us how to simply start a Ruby on Rails tour, build a table, execute a ruby command line to build a scaffold scaffold program, and then write a code that You can accomplish the functionality of a table or a crud operation that is a resource. This has stimulated my interest in using Java, can not be more simple to complete this matter. I have implemented a JDBC version of the base
The main models of the Django Framework are Mvt,model models, view views, template templates, based on the basic HttpRequest approach.There are four types of databases that Django supports: Postgresql,mysql, oracle,sqlite3. (so you should focus on PostgreSQL at the moment)1. New project: django-admin.py Startproject
for the client's request to the server, the HTTP GET or POST method, placing the call name at the end of the URL, placing the parameter in the URL parameter (not here), and the server-side return data is described in JSON format. As a result, the client needs to send an HTTP request like this:
Get/api/store.query
This is the service interface design of the somersault cloud framework. In fact, loop cloud framewo
Are you disappointed with the traditional Java MVC frameworks such as Struts and WebWork? A large number of XML configuration files, *. do ing causes many formbeans to be written to pass page parameters? The forced Action interface makes it inconvenient for a class to process only one request.
Popular Web sites have already implemented REST-style URLs, such as Douban URLs, to show a book that is not subjec
Django Site Management11 in the blink of an eye, said the charge did not go smoothly, but leisurely watching TV dramas and went to the cinema to see the new release of the "Ecstatic Road put", "Dear" and "golden Age", said that the rest of the rest now look back, if sleep meal is a word, that is quite a lot. Yes, 11 has passed, also should accept win their hearts
Java developers must be familiar with the MVC framework, from Struts to Webwork,java MVC frameworks emerge. We've gotten used to dealing with *.do or *.action-style URLs, writing a controller for each URL, and inheriting an action or Controller interface. However, the popular Web trend is to use a much simpler, restful URL for users and search engines to be more user-friendly. For example, the link from a book
requesting access to www.xxx.com/, go to Django.wsgiwsgiscriptalias//.../www/my-site/apache/django.wsgi4.3. Configure setting.py
Ebug=false
Custom 404.html,500.html Template (Web page not found, server internal error)
4.4. static files
Static_root = '/.../www/my-site/static/'
Static_url = '/static/'
$./manager.py collectstatic
Note: During the development phase, the static files of the corresponding app are usually placed under the static directory in the
usually placed under the static directory in the app directory. When deploying in a formal production environment, use the./manager.py collectstatic to collect all the static files into the Static_root specified location, including the admin backend.4.5. Restart APAHCEBrowser input the appropriate URL address, see your own Web application interface, congratulations!5. SummaryThis paper mainly introduces the construction of Django development environm
This article mainly introduces how to deploy and compile the Django framework environment of Python in Windows. Django is a heavyweight MVC Framework in the Python framework, this article describes how to write a hellowworldweb application from the perspective of program dep
. When deploying in a formal production environment, use the./manager.py collectstatic to collect all the static files into the Static_root specified location, including the admin backend.4.5. Restart APAHCEBrowser input the appropriate URL address, see your own Web application interface, congratulations!5. SummaryThis paper mainly introduces the construction of Django development environment, the deployment of Dj
Ango Advantages and disadvantages Django is praised for its main areas:
Perfect documentation, Django's success, I think a big part of this is due to Django's near-perfect official documentation (including Django book).
A complete set of solutions, Django, like rails, offers a full suite of solutions (Full
This article mainly introduces how to run Python applications in the Django framework. Before that, you must set up a simple view and template. The next step is the core content application configuration described in this article, you can refer to the following concepts, fields, and relationships for a friend who needs them:
An author has a surname, a famous name, and an email address.
The publisher h
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.