Introduction to using Python and Django to build a web App Django is a web framework developed by Python. It's easy to build Web apps with Django. The latest version of Django is 1.4 when writing this article, but this article does not focus on the
Recently learning Python language, when learning to Django, ready to build a Django development environment, after several twists and turns, the final configuration success, now the configuration process, for everyone to learn to communicate:Server
Python2 and Python3One, the difference between the various methods1. Print StatementsPrint (' AAA ') #方法print ' aaaa ' #语句2, Python3 incompatible python23, Mac face python3 Configuration environment variable 4, a few Python file introduction4.1.
InstallationDjango is a Python-language environment, so make sure you have Python installed on your computer first.LinuxUbuntu:sudo pip install django==1.11.7A version is specified in the installation, you can modify the version number, or you do
Directory
Catalog Preface body Environment configuration only use Scrapy complete task simple Django Project connect MySQL database write a data class join Scrapy write items write spiders write pipelines crawler set up deploy and run crawler
Bootstrap as a popular front-end framework, has been adopted by many projects, if users accept not to use IE, using bootstrap will greatly reduce our development costs. Here's a simple introduction to Django and Bootstrap integration.
1. Install
Here 's a summary of the setup of the Django Environment in the window environment:
First we open the Django official website https://www.djangoproject.com into the following pages:
Click Download to enter the download page:
On this page, we know
Just starting to get in touch with Django today, to be honest, the lazy people I don't even want to learn from Python can take the initiative to learn about Django, which is really the sun playing west. But there's a reason for everything, but if it
I. Django INTRODUCTIONDjango is a good heavyweight web framework written by Python, open source, using MVC's software design pattern, i.e. model M, view V and Controller C.Second, under Windows environment installation1, installationYou need to
The Django model is database-related, database-related code is generally written in models.py, and Django supports Sqlite3, MySQL, PostgreSQL and other databases, Only need to configure in settings.py, do not change the code in the models.py, the
First, needless to say, install Django-sqlserver pip install django-sqlserver and then modify ' ENGINE ': ' Sqlserver_ado ' in settings.py, However, the port number can not be filled out SQL Server does not need. And then the syncdb appeared.No
Django NGINX+UWSGI Installation ConfigurationIn the previous chapters we used the Python manage.py runserver to run the server. This is used only in test environments.Official release of the service, we need a stable and continuous server, such as
Ext.: http://blog.csdn.net/qq_15157439/article/details/520275511. Open the webpage, copy the setuptools download link, download the installation package with wgetwget
Python defaults to version 2.6 in Liunx and can be upgraded to 2.7 firstThe steps are as follows:A. TAR-ZXVF python-2.7.11.tgzB. Enter the Python-2.7.11 directory input./configureC. MakeD. Make installE. Whether to view the Python version or the
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
Linux Ubuntu 12.04 has its own Python2.7.3 version, and if you need to install a different version of the general operation is:
It's best to check for dependencies first
sudo apt-get build-dep python
(If you subsequently install Django, remember to
Environment:
CentOS X64 6.4
Nginx 1.5.6
Python 2.7.5
One: the class library and Python2.7.5 that need to install
Install the necessary development packs
Yum Groupinstall "Development Tools"
Yum install zlib-devel bzip2-devel pcre-devel
Install Python, Pip, MySQLdb, Django framework under Cenos7.1:Combing these relationships, centos6.5 is Redhat's newest Community Edition operating system.Python2.7.5 is the development language (the python that comes with centos6.5 is version 2.6.6,
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.