In the field of Bioinformatics (Bioinformatics), WebService is an important data exchange technology and will be more important in the future. Currently, EBI provides two types of services: SOAP and REST, whether data service or computing service (computing task submission ).
1 Python + SOAP/WSDL/UDDI
The most common practice (personal opinion) is to use python ZSI2.0, and ZSI also relies on LIB such as SOAPpy and pyXML.
Many people are familiar with the SOAP protocol, and many existing applicat
For today's WebService development, we have at least two options: SOAPWSDLUDDI series; REST-style architecture series !!! In the field of Bioinformatics (Bioinformatics), WebService is an important data exchange technology and will be more important in the future. Currently, EBI provides two types of services: SOAP and REST, whether data service or computing service (computing task submission ).
1 Python + SOAP/WSDL/UDDI
The most common practice (personal opinion) is to use python ZSI2.0, and Z
django, Flask, web.py, and so on, and the Django application is quite Extensive.A simple reference server (wsgirefs) is available in the Python standard library: wsgiref.simple_server. Wsgiserver.1 #!/usr/bin/env python2 #Coding:utf-83 4 fromWsgiref.simple_serverImportMake_server5 6 defrunserver (environ, start_response):7Start_response ('OK', [('Content-type','text/html')])8 return ''9 Ten if __na
Xadmin learning notes (2) -- modifying Django tutorial instances (1), xadmindjangoPreface
Xadmin is a management framework based on Python and Django. to be proficient in using it, it is necessary to learn Django. In the process of learning Django, you may want to use xadmin
The Django debugging tool django-debug-toolbar installation and usage tutorials inevitably require debugging pages in website development. when using the django development site, you can use django-debug-toolbar for debugging, installing this plug-in is very useful. I first wanted to view all the context variable value
about menu settings, refer to the FAQ in the xadmin official document: How to customize the system menu.
PS: Today, I learned a lot through my own exploration and viewing the Django official documentation and xadmin official documentation. I am very happy that I have helped my friends solve the problem and felt that learning is very valuable. If you have no Django Foundation and want to learn xadmin like
This article writes about how to create a Django project and run the Django project.1. Create a Django ProjectA. Use the command to create a django-admin command after the installation of Django, execute command creation, command as follows:
1
This week for everyone to bring "51Reboot" operation and maintenance automation open Class sharing, April 26 (Thursday) Nine o'clock in the evening by our salted fish teacher for everyone to elaborate django-web front and rear end separation.Instructor IntroductionSalted fish Teacher: has served as the internet used car company operations development leader, is now working in the Internet finance company De
Seven, CacheSince Django is a dynamic Web site, every request will go to the corresponding operation of the data, when the program access is large, time is bound to be more obvious, the simplest solution is to use: cache, the cache will be a certain views of the return value saved to memory or memcache, in 5 minutes when someone to visit , the operation in view is no longer performed, but is taken directly
own project nameThis is the directory structure that I created after the completion:2) Open the settings.py file, configure the local language and the time (this step can be omitted) 6. Test if Django can open the service successfullyThe terminal command is as follows: Python manage.py Runserver Open port is 8000 by defaultIf the port is occupied, we can enter: Python manage.py runserver 8001If it appears, open the Address access page and the Welcom
# maximum number of worker processesprocesses = 4# ... with appropriate permissions - may be needed# chmod-socket = 664# clear environment on exitvacuum = truedaemonize = /mnt/myproject/uwsgi_log.logpidfile = /mnt/myproject/uwsgi_pid.log
The next thing to do is to modify the nginx.conf configuration File. Open the/etc/nginx/nginx.conf file and add the Following.
server {listen 8099; server_name 127.0.0.1 charset UTF-8;access_log /var/log/nginx/myweb_access.log;error_log /va
Python:pep8+googlestyle+djangosytlePEP8 Chinese Version: http://www.cnblogs.com/huazi/archive/2012/11/28/2792929.htmlGoogle Python Style guide:https://github.com/brantyoung/zh-google-styleguide/Django Coding style:https://docs.djangoproject.com/en/dev/internals/contributing/writing-code/coding-style/Html/css:googlestyle:http://chajn.org/htmlcssguide/htmlcssguide.htmlJs:googlestyle Chinese Version: http://chajn.org/jsguide/javascriptguide.htmlGoogle Co
Recently want to do a database site, I am very familiar with Python, but also understand that Django is very useful, so talk about it. First, on the fast cloud bought a VPS, a dollar trial for one months, Ubuntu system.1. Installationapt-get updateaptinstall python-pip python-dev build-install DjangoThere are many methods of installation and can be freely chosen.2. Create PRJ and Apps#创建项目django-admin.py st
registered to the background. Admin background to manageThe admin.py below App01 writes the following: from Import Admin # Register your models here. # Importing the APP01 database module from Import Models # register the class we created and Access Admin.site.register (models) through him. UserInfo)5. Enter Admin to manageURL address http://127.0.0.1:8000/admin/# Create an administrative user Python3 manag.py Createsuperuser Enter user name: Email address Password: Confirm password:2. A
Django Novice, currently on and off for one months Django, began to write a blogPython 2.7.11 Django 1.10.2 Bootstrap 3.3.0 ide:eclipse PydevModels#UserclassUser (models. Model): Username= Models. Charfield (max_length=50, unique=True) Email= Models. Emailfield (unique=True) Password= Models. Charfield (max_length=50) Admin= Models. Booleanfield (default=False)#i
1. SettingsWe created the Django Project tutorial, and the app QuickStart: # Create a new Django Project Django-admin. # Use Virtualenvwrapper to create virtualenv# install Django and Django REST Framework # in Env tocreat
use Django 1.5.1. these methods and code have not been tested in the latest Django version, so it is best to follow the version used in this tutorial.
Create projects and applications
Create a project named steelrumors:
The code is as follows:
Cd ~ /ProjectsDjango-admin.py startproject steelrumorsCd steelrumorsChmod + x manage. py
Open the steelrumors/setting
First step: Open Pycharm, click File>new File to select Django, fill out click Create created like:The second step: the project name and the application-written web, the directory list is as follows:Step three: Change the view.py below the web directory to from Import HttpResponse def Hello (Request): return HttpResponse ("")Fourth step: Change the urls.py in
/$ ', views.index,name= ' index '),# URL (R ' ^getinfo/$ ', views.getinfo,name= ' GetInfo '),URL (r "^savecpu/$", Views.savecpu,name= ' savecpu '),URL (r "^showcpu/$", Views.show,name= ' showcpu '),]View File2 functions defineddef savecpu (Request):"""This method is our interface method,The requested data is stored in the database when requested"""Statue = {}if Request.method = = "POST" and request. Post: #检测请求的方式是post, and the POST request has data#request. Post This method holds all the data f
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.