Questions tagged [web2py-modules]

web2py-modules are modules that are available in web2py web framework out of the box

web2py-modules are modules that are available in web2py web framework out of the box.

89 questions
3
votes
1 answer

how to create, insert and update database table using web2py?

I am new to python and web2py development. My requirement is : I have to create one html page which consists Employee information for e.g. employee Name, Age, Address etc... and buttons will be there Save, Refresh ..after entering Employee info to…
piks
  • 1,621
  • 8
  • 32
  • 59
3
votes
1 answer

How to change the SQLFORM style in web2py views

I would like to have a custom view of login and register forms in my views, without loosing the functionalities of SQLFORM. How can I change the "look" of the forms in views. Please give me some pointers like which CSS file I should be modifying. I…
athinker
  • 71
  • 1
  • 3
3
votes
1 answer

Redirect URL with parameters in web2py controller

I am trying to redirect to a URL('form','results') from forminput.html with parameters (in my case, it's a huge dictionary i.e. output). But when the web page is redirected to results.html, all the parameters are also included in the web Url itself,…
2
votes
3 answers

local_import function does not work

local_import function randomly does not import my modules from modules directory. The Error is: ImportError: No module named testapp.modules.mymodule I have this problem when i use web2py with apache (with wsgi). I have no problem when i run…
ndemir
  • 1,881
  • 3
  • 19
  • 25
2
votes
1 answer

From drupal to web2py: taxonomy/tagging and comments?

I have some sites that I implemented using Drupal. However as cool as Drupal is I've never been satisfied with coding in it mostly because it's in PHP and I've wanted to work with python. I've flirted with Django but I just recently discovered…
User
  • 62,498
  • 72
  • 186
  • 247
2
votes
1 answer

Web2py Modules and Doctests

I have a module applications/webapp/modules/a.py that contains a local_import to import applications/webapp/modules/b.py. I want to doctest a.py and b.py. The web2py shell with "-T" option partially works but complains with the exception pasted…
amit kumar
  • 20,438
  • 23
  • 90
  • 126
2
votes
0 answers

Install web2py on domain hosting

How can I deploy or install web2py on domain hosting? Each time i try to run the command python web2py.py, I get: please visit: http://127.0.0.1:8000/ use "kill -SIGTERM 38820" to shutdown the web2py…
2
votes
1 answer

web2py - How do I insert html with {{block ...}} in it into another html?

view1.html: {{block left_sidebar}} asdf {{end}} debug.html: {{left_sidebar_enabled = True}} {{extend 'layout.html'}} {{include 'view1.html'}} controller: def debug(): return {} The content from view1.html doesn't appear and I don't understand…
evan54
  • 3,585
  • 5
  • 34
  • 61
2
votes
0 answers

How to add a simple search bar to my app using haystack and elasticsearch in web2py?

So I am trying to add a very simple search bar for my models. Here is my models file: db = DAL('sqlite://storage.sqlite', pool_size=1, check_reserved=['all'], migrate_enabled=True, lazy_tables=True) from gluon.tools import Auth auth…
2
votes
1 answer

web2py components

I would like to load different web2py components in the same view, but not at the same time. I have 5 .load files which have form fields for a different scenario, these are called dynamically by an onchange select script. Is it possible with web2py…
samaras
  • 235
  • 4
  • 20
2
votes
1 answer

How can I create new auth_user and auth_group on Web2py running on Google App Engine (GAE)?

I've created an app on my local computer with Web2py and it is running via WSGI with SQLite. I can successfully deploy my app to Google App Engine, using my own domain and doing all url rewrites I need. Now I need a way to create specific…
Alex Benfica
  • 408
  • 5
  • 17
1
vote
1 answer

Using modules in views

How can I use modules in views? For example I'm trying to use the markdown module, so I import it into my controller: from gluon.contrib.markdown.markdown2 import markdown and I use response.render return response.render('default/main.html',…
S P
  • 1,801
  • 6
  • 32
  • 55
1
vote
0 answers

Requires gitpython module, but not installed or incompatible version: No module named applications.admin.modules.git

I'm a beginner denv and I'm using the web2Py framework for web development. And whenever I try to download a template to use, this error appears. I would like to know if anyone who uses this framework has had any problems related to this and the…
1
vote
0 answers

how to use jenkins and devops for .net and python development work

We are initial stage of bringing devops into our daily activities. Now we are workig on .net and pthon coding. So we have to plan for continuous delivery on our activities. In the first scenario for python development works, we are using web2py now.…
saran
  • 139
  • 1
  • 2
  • 12
1
vote
1 answer

web2py import controller into another controller

I have 2 separate controllers and I need import a function from one controller to the other. For example, I have a.py and b.py, in b.py I have tried: import a from applications.a.modules import a import applications.a.modules.othermodule I cannot…
William Ross
  • 3,568
  • 7
  • 42
  • 73
1
2 3 4 5 6