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.
2. Install Django
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.
3. Install setuptools
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.
Enter http: // 127.0.0.1: 8000 in the browser to see the great xadmin style. Both the user name and password are admin. We recommend that you do not use IE to view xadmin. You can use Chrome. If you do not want IE, use ie10 +.
5. pydev + eclipse
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!
Xadmin Study Notes (1) -- programming preparation