My operating system is centos6.5.
1 First choose what database Django will use. django1.10 default database for Sqlite3, I would like to use the MySQL database, but in order to test the convenient way to install the SQLite development package.
Yum install MySQL mysql-devel
#为了测试方便, we need to install the Sqlite-devel package
2 The next need to install Python, because Python3 has become mainstream, so next we have to install Python3, to
talented programmer, has launched a Web development framework to contend with in the face of Ruby on Rails's increasingly popular propaganda and fiery momentum. After comparing the development framework of Python, the author chooses the Python framework Django as the first choice of the Web development framework, and the reason is that the new and concise development model of Django and the great developme
issues, and suggestions for modifications, which are popular with developers. Visual Studio dynamically compiles the code to gain analysis and hints for the code as the developer enters or modifies the code.
When users interact with the app, they usually want the software to be responsive. When entering or executing a command, the application interface should not be blocked. Help or hints can be displayed quickly or stop prompting when the user continues to enter. Today's app should avoid block
ObjectiveAfter reading "Django book", Always want to find an example to develop the actual combat, but the domestic Django books are quite few, only from the English books to absorb nutrients, accidentally after getting learning Website development with Django this book, Feel very good, although thinking of translation, but their own time is too little, can only
We recommend the django learning website today !, Django learning website!
In the first 20 days of every month, I spent about three days studying django during my work hours and finally spent some time studying django. This really ruined a lot of my brain cells.
Using a diagram from the insect's predecessors:
If you
Web Essentials is the best vs extension tool you've seen so far, so please wait for me one by one.First, install from Extension Manager: The latest version is the 2.5 version released in 19th.Then restart your VS development environment and you'll be able to use the handy features it provides.Web Essentials provides a lot of quick and easy support for CSS, JavaScript, and HTML, and the list is as follows:Cs
The original is from "RxJava Essentials"
Original Author: Ivan Morgillo
Development technology Front www.devtf.cn
Reprint statement: This translation has authorized developers to enjoy the exclusive right to reprint, without permission, not reproduced!
Translator: Yuxingxin
Project Address: RXJAVA-ESSENTIALS-CN
RX-from. NET to RxjavaResponsive programming is a programming
The essentials and patterns of software design (version 2nd) is the book on software design and design patterns published by Zhang Yi of garden in April this year. I got it in late May and read a chapter every night, after reading chapter 28 of the book on and off last night, I felt very deep. I used to have vague knowledge about the design model and software design, I have a clear understanding of this book.
Let's talk about how I feel about thi
Simple IntroductionStill remember to learn C + + ideal----Development game plug-in, remember that the first game developed in the university plug-in is repeatedly read, read the address data, and then algorithm matching, simulated click event, at that time by many students envy jealousy.Java development was developed in March 2012 after the development of Android Focus, Java learning is completed in the university, when the Java exam 95 full of Java is not difficult. Later engaged in Android dev
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
Use of Django logger, use of Django Logger
Logging MudelA quick logging primer
Django uses Python's builtinloggingModule to perform system logging. the usage of this module is discussed in detail in Python's own documentation. however, if you 've never used Python's logging framework (or even if you have), here's a quick primer.The cast of players
A Python logg
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
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
1. PythonOf course you'll need Python. Still Python 2.7 is preferred, however if you would like to create new projects with Python 3, it's also fine to do.Newest Python could is downloaded from https://www.python.org/downloads/2. PipIt's a very powerful tool for installing and managing Python packages. We could use Pip to install Django also. To install PIP in Ubuntu 14.04, (To upgrade PIP: pip install-u pip)sudo apt-get install Python-pip3. Installin
Write a few useful views Each view is responsible for doing two things, returning a HttpResponse object that contains the contents of the requested page, or throwing an exception, such as Http404. What the rest of the view does depends on you.Your view can read records from the database, or not read them. You can use a template system such as a Django-brought or a third-party Python templating system, or not. You can generate a PDF file in real time
Create your first Django project, part sixth
This article continues from the end of the fifth part (EN). We've written a test for the voting program, and now we're going to add styles and pictures to it.
In addition to the server-generated HTML, network applications typically require some other files-such as pictures, scripts, and stylesheets-to help render the Web page. In Django, we collectively refer to
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.