The following steps are implemented for installation of web2py in the Ubuntu Desktop.
Step 1 − Download web2py
Step 2 − After the download is complete, unzip it.
Step 3 − Optionally install the tk library for Python, if you need to access the GUI.
Step 4 − To start web2py, access the web2py directory and run web2py.
The GUI will appear as follows –
After installation, each time you run it, web2py will ask you to choose a password. This password is your administrative password. If the password is left blank, the administrative interface will be disabled.
Once the server is started, web2py will redirect to the screen with following mentioned URL − http://127.0.0.1:8000/
This will conclude that web2py is perfectly running in Ubuntu desktop.
Step 1 − Installation of all the modules needed to run web2py.
Installation of Apache 2 and mod-wsgi
Step 2 − Installation of web2py in /home/www-data
This helps for proper deployment in production environment.
Get the web2py source from the web2py site −
Step 3 − Create a self-signed certificate. SSL certificates should be obtained from a trusted Certificate Authority. Maintain an SSL folder with the certificates in it.
Step 4 − Edit the apache configuration as per the requirement of production environment.
Step 5 − Restart the Apache server and verify if the production environment works for the given IP address.
Although there is a binary distribution for Windows environments (packaging executables and standard libraries), web2py is open source, and can be used with a normal Python installation.
This method allows working with the latest releases of web2py, and customizing the python modules to be used.
Step 1 − Download the source package from web2py official website − http://www.web2py.com/examples/static/web2py_src.zip and unzip it.
As web2py does not require installation, the user can unzip it in any folder.
Step 2 − To start it, double-click web2py.py. From the console −
Step 3 − Here command line parameters can be added (−a to set an admin password, −p to specify an alternate port). The startup options are visible through −
It is software called SQLDesigner which helps in making web2py models and generates the corresponding code. Given below are some of the screenshots
It is software called SQLDesigner which helps in making web2py models and generates the corresponding code. Given below are some of the screenshots –
SQLDesigner helps in maintaining the relations of the tables in simple manner and generates the corresponding code in the models of given application.
Functional testing involves testing of the functions of components or overall system. It can be based on requirement and business process.
Web2py comes with a module gluon.contrib.webclient, which performs functional testing in remote and local web2py applications. It is basically designed to understand web2py session and postbacks.
All it requires is to import the package such that the functional testing would be implemented on the given module.
The syntax to import the package is as follows −
Web2Py Related Interview Questions
|Python Interview Questions||MySQL Interview Questions|
|Oracle 11g Interview Questions||PostgreSQL Interview Questions|
|SQL DBA Interview Questions||SQL Interview Questions|
|Database Testing Interview Questions||Django Interview Questions|
|Database Administration Interview Questions||Git (software) Interview Questions|
|Data analyst Interview Questions||CouchDB Interview Questions|
|wxPython Interview Questions||MongoDB Interview Questions|
|Advanced Linux Interview Questions||Python Automation Testing Interview Questions|
|RabbitMQ Interview Questions|
Web2Py Related Practice Tests
|Python Practice Tests||MySQL Practice Tests|
|Oracle 11g Practice Tests||PostgreSQL Practice Tests|
|SQL DBA Practice Tests||SQL Practice Tests|
|Database Testing Practice Tests||Django Practice Tests|
|Database Administration Practice Tests||Git (software) Practice Tests|
|MongoDB Practice Tests|
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.