Advanced content: How to write reusable applications
This article starts at the end of part seventh (en) of the tutorial. We will translate the previously written survey application into a separate Python package that can be reused in new projects and shared with others.
If you have not completed tutorial 1-7, we encourage you to complete them again so that you can match your project with the following tutorial. The problem of reusability
Designing, building, testing, and maintaining WEB applic
It took two weeks to develop a Django-based project task management Web application using work-gap time. The real-time dynamics of the project plan can be easily viewed by Project members (^_^ and reinvent the wheel again). From the front desk to the backstage, a good toss, use: HTML, CSS, JavaScript, Apache, Python, Mod_wsgi, Django. For a long time without CSS and JavaScript, feel a little rusty, checked
2. First Django ProjectIn the previous section, we completed the installation of Python,django and databases, and now we are going to create the first Django project and take the first step toward using Django to develop the application.2.1. Create a first Django projectWe c
No web development experience or background. It has basic C language and python syntax. What are the basic requirements for django learning? What is the learning sequence of django? The time was quite short. I made a hand-stretched party that I had always despised. Sorry .. No web development experience or background.
It has basic C language and python syntax.
What are the basic requirements for
The following describes how to use and extend manage commands in the Python Django framework: pythondjango
[Overview]
Django-admin.py is a command line tool for Django to manage tasks. This article describes its general usage.
In addition, there is a manage. py in each Django project. Manage. py is a simple package for
Django xdmin, djangoxdmin
Let's take a look at what the admin background provided by django previously looks like.
Some people say, how is your interface so ugly? Do I say this is ugly? He said ugly, I said you are here, I will look at your,
After seeing the logon interface, I said, "Don't look at it. I'll modify and modify it. So, I started to modify it and find information, it's a pity that I cou
Python path [Chapter 2]: Django cache, signal, pythondjangoCache
Since Django is a dynamic website, each request will perform corresponding operations on the Data. When the access volume of the program is large, the time consumption will inevitably become more obvious. The simplest solution is to use: cache, the cache saves the return value of a view to the memory or memcache. When someone accesses the view
In Django, settings related to the project Global must be added in the configuration file settings. py. I use MySQL as the background database and have created a database named django_news in MySQL. You need to set DATABASE_ENGINE = "mysql" and DATABASE_NAME = "django_news" in the corresponding location in the settings. py file ".
Note that if you use the SQLite database, Django can automatically create a n
This article mainly introduces how to set language preferences in the Django framework. Django is the most popular Python framework. If you need a friend, refer to it. Once you have prepared a translation, if you want to use it in Django, you only need to activate these translations.
Behind these features, Django has
This article mainly introduces how to create a language file in the Python Django framework. The language code is used to represent the type of the language region. If you need a friend, refer to when you mark the translation string, you need to write (or obtain existing) the corresponding language translation information. Here is how it works.
Region restrictions
Django does not support localization of yo
Python and Django installation steps many beginners have asked how to install Python and Django. here we will briefly introduce the installation steps of these two software in Windows 2003.
1. download and install Python
Python official: http://www.python.org/ftp/python/
Python 2.7.2 is selected here. Although the latest version is Python 3.2.2, Django currently
2. Use a separate static file server
3. Disable KeepAlive (if the server does not provide static file services, such as large file downloads)
4. Use
5. Use to load associated table data
6. Filter unnecessary fields for query
7. Use
8. Load the compiled Template
django.template django.http myview_template = loader.get_template( HttpResponse(myview_template.render( context ))
Where programmers like to go: http://www.lailu8.com
The Django data
Note: Recently began to learn Python's Django framework, in order to urge learning, forcing themselves to translate the official documents, is a learning, but also a kind of accumulation! Because the experience is insufficient, the mistake certainly many, please everybody feel free! Original content, reproduced please indicate the source.Django Official Document Part II: Getting Started(starting from the second part, because the first part is the enti
Write the first Django app, the first part -- create a project
Let's use examples to learn.
Through this tutorial, we will teach you step by step to create a simple voting system.This system is divided into two parts:1. A public page allows people to vote and view the voting results.2. An administrator page allows you to add, modify, and delete votes.
Assume that you have installed Django. You can run
In the previous chapter we explained how to start a Django project and run a Django serverOf course, this site does not actually do anything------except for the information "It worked" is displayed.In this chapter we describe how to use Django to create dynamic Web pages Your first view: Dynamic content Let's create a Web page that displays the current date an
I. Software preparation:
1.1 python-2.5.1.msi
1.2 apache_2.2.8-win32-x86-no_ssl.msi
1.3 Django-0.96.1.tar.gz
1.4 mod_python-3.3.1.win32-py2.5-Apache2.2.exe
1.5 MySQL-python-1.2.2.win32-py2.5.exe
Ii. installation steps:2.1 install Python (run the python-2.5.1.msi and, after completion, set the environment variable)2.2 mysql-python(run mysql-python-1.2.2.win32-py2.5.exe)2.3 install Apache (run apache_2.2.8-win32-x86-no_ssl.msi)2.4 install the module of
This article mainly introduces some practical suggestions for using the Python Django framework, including some excellent modules. For more information, see the following: With the release of the second candidate version of Django1.4, although Python3 is not yet supported, the Django team is already working on the plan. according to the official blog, Django1.5 will provide experimental support for python3.
Not limited to Chinese and English. question added: I am currently writing Django + flatpages. I feel that the front-end interface is not very good. I can see that the front-end of Bootstrap is more beautiful, but I don't know how to integrate it into Django, if you want to find some information in this area, I would like to recommend some documents in Chinese and English.
Question added: I am currently wri
Django comes with a permission framework where the fields of the Auth_User table are difficult to meet the normal requirements and therefore need to be extended, as for extensions, there are generally several options:1. Directly modify the Django source code, modify the user class definition, and various methods, and then expand the Database Auth_User table field to match their own needs. (Source code: Djan
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.