Configuring the development environment1. Install Python, I am using the CentOS 6.0,python version of 2.6.62. Install the Django,django version 1.3.5After downloading the corresponding version on the Django website, unzip the package, go to the archive directory, runInstallYou can check if Django is installed correctly
(i) DescriptionA brief description of how Django works, with 2 examples.(ii) How Django worksSuppose we have the following files, here in the first 2 articles based on the addition of the templates directory (storing HTML files) and static directory (storage image JS, CSS, etc.)(iii) Implementation of a complete user interface# Suppose you've created a project and an app. The following urlconf and view func
Use Django to implement a runable blockchain application, django Block
We are new to the rise of digital currencies and want to know the technology behind it-how blockchain is implemented.
However, it is not easy to fully understand blockchain. I like to learn in practice and learn more about the technology by writing code. You can build a blockchain to deepen your understanding of the blockchain.
Preparat
Django analysis-how to customize manage commands, django custom manage
We have used Django manage. py command, while manage. py is a command line tool automatically generated in the root directory when we create a Django project. It can execute some simple commands. Its function is to put the
Django file storage (2) custom storage system, django file storage
To write a storage system by yourself, follow these steps:
1. Write a file inherited from django. core. files. storage. Storage.
from django.core.files.storage import Storageclass MyStorage(Storage): ...
2. Django must be able to instantiate MyStorag
Found a good comrade debugging PHP source code: PHP Debug TOOLS
Its Project address: http://freshmeat.net/projects/php-debug-tools/
File Download Address: http://freshmeat.net/urls/7c58ae3fecce5763e7546b958d36e082
Current version 1.03
The occasional environment here is window XP, APACHE2.2, php5.2+ Zend Optimizer,
This is explained in conjunction with the PHP DEBUG
Software installed: Apache2.2mod _ wsgiphp5, etc. you want to: 1. use the same port and the same domain. 2. leave all the URLs such as django_site * to django for processing. However, you have tried many configuration methods and encountered odd errors. Installed software: Apache2.2 mod_wsgi php5 and so on.
To:
1. use the same port and domain.
2. submit all the URLs such as/django_site/* to django for proce
Tags: Web Python DjangoProblem:Cannot be used in command lineDjango-admin.py startproject ProjectInstead, go to the bin directory of the Django installation directory (for example, D: \ Django-1.7 \ Django \ bin) to usePython django-admin.py startproject ProjectYou can use the python command to run to the bin directory
Django database table reverse generation instance resolution, django instance
This article describes how to reverse generate mysql model code in django. Next, let's take a look at the details.
Before presenting the reverse generation of django ORM, let's talk about how to generate code in a forward direction.
Forward g
Django-Getting Started: Download and project generation, django-getting started
Django is one of the most popular frameworks for python web application development. Today, I will introduce some of django's getting started knowledge.
To use the pycharm tool, you must first have django.
1. Download
The first time I wrote a static webpage on Django, django wrote a static webpage.
Create a Python Django project:
Win + RGo to the cmd command interface and cd it to the specified project directory. For example, my project directory is E: \ wamp \ Apache24 \ www \
Input E: Jump to the edisk
Enter cd wamp \ Apache24 \ to jump to the specified directory
InputDjango
Django-pipeline is a very convenient static resource management app, especially after the 1.2 version, using the Django-staticfiles collectstatic command, it is easy to switch in the development and deployment environment.
When writing codinn.com code, static resource management has encountered some annoying things:
To speed up the page load, the browser caches the static files, and after the static
corresponding file directory, and enter the full URL address in the Address bar. But here Pycharm provides a lightweight way to modify it: The Django server Run configurationClick the run/debug configurations option on the main toolbar to enter Debug configuration mode and select Edit Config (or select Run→edit configurations from the main menu): In the Run/d
campaign, more mature and lack of good programmers of the Python community has launched to contend with the Web development framework. After a comparison of the development framework of Python, I chose Python framework as the first choice of WEB development framework, the reason is that the new and concise Django development model and huge development potential.
In the following chapters, a complete example of the
Browsing Csdn Today, we found a detailed description of the various points of knowledge in Eclipse Debug. Hereby record.
Eclipse Debug a secret that's not known
http://blog.csdn.net/mgoann/article/details/7239492
Debug View
Understanding the Debug view, the Red section box is the thread stack view, the yellow sect
After the last chapter, we've created the good one Django app, and then we're ready to refine it.First, let's start with some basic concepts.
Each application created in Django is made up of Python packages that follow certain conventions. Django comes with a utility that automatically generates the basic directory structure of an application, so you can
Django-full-text retrieval, django-full-text retrieval
After two months, I finally completed all the major functions. In the past week, I have consulted a lot of materials to achieve full-text retrieval, I will record it here today, so as not to catch it later ~
First, I will introduce the Django full-text search logic I used. I checked various materials on the I
Django Model Modification and data migration, django model migrationMigrations
It is troublesome for Django to modify the Model. The syncdb command only creates tables that are not in the database and does not modify existing data tables synchronously, you cannot delete the data model. If you add or modify fields in the data model or delete a data model, you need
Django unit test (1), Django unit test (
The Django testing framework is very simple. The preferred method is to use the unittest module in the python standard library.Writing tests
Unit Tests of Django use the unittest module of python, which defines tests using class-based methods. Class Name:
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.