Xadmin Study Notes (1) -- programming preparation, xadmin Study Notes

Source: Internet
Author: User
Tags windows x86 install django oracle developer

Xadmin Study Notes (1) -- programming preparation, xadmin Study Notes
Preface

Xadmin is an open-source project on GitHub. It is a powerful upgraded version of Django admin. It provides powerful plug-in systems, rich built-in functions, and unparalleled UI themes, makes the management system implementation very simple. For more information, see the official website.

First, I declare that I am also a beginner. You are welcome to join the xadmin official discussion group. The QQ group number is 282936295.

Regression topic describes the configuration of the xadmin programming environment. Based on the xadmin programming language, the xadmin installation will be completed in the following steps.

1. Python Installation

Python is divided into version 3.x and version 2.x. Since xadmin does not limit the version of Python, you can choose any version. This article uses version 2.x as an example. Currently, 2.7.8 is the latest version of 2.x.

1) download

You can get the latest Python version from here based on your system. I chose Windows x86 MSI Installer (2.7.8 ). After the download is complete, start Python installation.

2) Installation

The process is a Dummies. It's good to go all the way to Next. There is only one place to describe. By default, the options in the red box are not selected. We recommend that you choose one, in this way, the installer automatically adds configuration information to the Path of the environment variable. If this parameter is not selected, You need to configure it after the installation is complete.

3) Configure Environment Variables

If python.exe to Path is selected during the installation process, skip this step and perform Python installation verification directly.

The configuration process is also very simple. You can add the Python installation Path to the Path variable of the environment variable.

4) Verification

Open the command line, enter python, and press Enter. if the content is displayed, the installation is successful. Part of the information is related to the specific version of Python.

After installing Python, go to the Django installation page. Django has a version requirement. xadmin explicitly states that Django must be of version 1.5 or later. However, you don't have to worry about this problem because the latest version of Django is 1.6.6, which fully meets the requirements of xadmin.

1) download

You can obtain the latest Django version from here.

2) Installation

After you download Django, we recommend that you decompress it to the Python installation directory. Of course, it is no problem to decompress it to other directories. After decompression, use the command line to enter the Django decompression directory and execute python setup. run the py install command to install Django. After the installation is complete, it will be added to the Lib \ site-packages directory of the Python installation directory.

3) Configuration

After installing Django, you also need to configure it in environment variables. Add Lib \ site-packages \ django in the Python installation directory to the Path of the environment variable.

4) Verification

After the configuration is complete, open the command line to check whether Django is successfully installed. Execute the following commands in sequence.

  • Enter Python press ENTER
  • Input import django
  • Input django. get_version ()

If the output is displayed, the installation is successful, and the version information is related to the installed version.

Before installing xadmin, we also need to install setuptools. Otherwise, an error is prompted. The setuptools module is missing.

1) download

You can select an appropriate Download Method Based on the system environment or obtain the downloaded version from sudaobo.

2) Installation

The installation of setuptools is the same as that of Django. First, extract it, and then run the Python setup. py install command on the command line to start the installation.

4. xadmin Installation

OK, so far, all the preparations required to install xadmin are complete. Next, start the installation of xadmin.

1) download

You can refer to the installation method provided on the official website or the method used by the younger brother. Of course, the previous introduction paved the way for the younger brother's installation method. The installation method on the official website may be slightly different. You can try it on your own. The younger brother directly downloads the xadmin source code.

2) Installation

Decompress the downloaded compressed file to the Python installation directory, and then run the python setup. py install command on the command line to start installation.

3) Verification

After the installation is complete, you can run the demo program to feel the charm of xadmin.

Find the demo_app directory in the decompressed xadmin directory, and run the python manage. py runserver command in the demo_app directory using the command line, which indicates that the startup is normal.

This article will not repeat the installation and configuration of Pydev + Eclipse. For details, refer to the introduction of half-acre.

Summary:

So far, all the xadmin-related programming environments have been set up. Enjoy the infinite pleasure of xadmin!


What is the learning process for learning computer programming?

1. Define learning objectives

Learning programming is very useful for most IT professionals. Learning programming, as a programmer, from a personal point of view, can solve problems encountered in the use of software, improve the existing software, you can find an ideal job for yourself and add an important weight to your job. This is conducive to finding a good job on the job path. from the national perspective, you can make due contributions to China's software industry, A good programmer will always be the target of competition. Learning programming can also train our thinking and make our logic more rigorous. We can continue to enjoy the joy of innovation and will always have the opportunity to stay at the forefront of high technology, because programming itself is a kind of creative work. The era of knowledge economy has brought us unlimited opportunities. If we want to truly master computer technology and make a difference in the IT industry, A certain degree of programming capability is a basic condition and requirement.

2. lay a good foundation

To learn programming, you must have a certain foundation. The following aspects are summarized:
(1) from the perspective of computer development and application history, mathematical models and architecture of computers are all proposed by mathematicians. The earliest computers were also designed for numerical calculation. Therefore, to learn computer science well, we need to have a certain mathematical foundation. It is almost the same for scholars to have a high school level.
(2) the cultivation of logical thinking ability should have certain Logic Thinking Ability in programming, and the cultivation of "strong thinking" should be practiced for a long time. To become a good programmer, the most important thing is to master programming ideas. To achieve this, we must gradually accumulate in repeated practices, observations, analyses, comparisons, and summaries. Therefore, in the process of learning programming, we do not have to wait until everything is fully understood to start the practice. As long as we understand the general, we must dare to experience it by ourselves. Everyone has the first time. Some problems can be understood only after practice, and only by practice can the knowledge of teachers and books be turned into their own.
(3) in what order should I choose a suitable entry language to learn from various languages? Programming tools are similar to the following: 1) Tools for local application development include Visual Basic, Delphi, and VC ++ (C ++ Builder). database development tools include: visual Foxpro, Oracle Developer, and Power Builder. 2) cross-platform development tools such as Java. 3) network development for client development tools such as Java scripts and server development tools such as PHP, ASP, JSP, ISAPI, NSAPI, CGI. In the above environments, the VB method is simple and easy to understand in several development tools. The interface design is configurable, easy to learn, and easy to use. Selecting VB as the entry direction is more suitable for scholars.

3. Understand important concepts

A Program Design book only shows the concepts of variables, functions, conditional statements, and cyclic statements. However, to be able to program applications, you need to understand these concepts in depth, on the basis of understanding, we should not simply learn the syntax and structure, but thoroughly understand the application examples of these syntax and structure.

4. Master programming ideas

When learning a language or development tool, the syntax structure and function call are secondary, and the most important thing is to learn its ideas. For example, to learn VC, we need to learn the internal mechanism of Windows and what is thread ......; to learn COM, We Need To Know VTALBE, class factory, interface, idl ......, the key is to learn an idea. With this idea, we can bypass it.

5. Multi-practice and multi-Communication

To master the programming idea, you must practice and understand it in actual programming work. In the initial stage of programming, You need to design the program by yourself. Do not stick to a fixed way of thinking when designing the program. If you encounter problems, think about several solutions. This requires more communication. Different people have different ways of thinking and different perspectives. through communication, they can constantly absorb others' strengths, enrich programming practices, and help them improve their skills. Designing programs by yourself is a reflection of the application of creative thinking and a good way to cultivate logical thinking.

6. Develop good programming habits

It is not difficult to get started with programming, but it is very important to keep learning after getting started. It is relatively more... the remaining full text>

Which programming language should I learn for beginners?

If you want to keep learning, you should first learn C and VB, which is just simple. C will learn java later. C can understand VB in just two or three weeks. Nowadays, large enterprises do not look at the language you have learned, but your basic programming skills and the potential for development!

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.