[web2py] Re: appadmin upload from iPhone gives empty record.

2012-10-22 Thread Richard
The request.vars.file turn out to indicate that a file is uploaded from my iPhone. Issue solved. Doing some tests showed me a point to be aware of. Showing the images in a HTML page can give a difference between windows browser (Firefox and Chrome) and my iPhone. It turns out that the iPhone b

[web2py] Re: web2py love

2012-10-22 Thread apps in tables
How deep is your love? --

Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-10-22 Thread Hassan Alnatour
Dear mweissen i am having the same problem but on a windows server !? can you help me ? from where should i start ?? regards, On Wednesday, September 19, 2012 8:51:23 PM UTC+3, mweissen wrote: > > Solved. > The permission of a lot files have been wrong: > I develop an application on a win

Re: [web2py] Re: manage_groups AD problem

2012-10-22 Thread szimszon
I still have no means to test AD but I welcome all the help I can get :) Please put a print '##%s##' % str(group_row) or logger.warning('##%s##' % str(group_row)) line to the gluon/contrib/login_methods/ldap_auth.py file line 627. Restart web2py try and send the printed lines back. It seems

[web2py] Re: Multiprocessing in a controller ?

2012-10-22 Thread Niphlod
it's generally a bad idea. webserver can kill your threads (or processes) that are hanging (like when launching a very long process you want to communicate with) without notice: they do to allow other requests to be served, and they kill zombie processes too. That's why there's a plethora of ou

[web2py] How to check if a given user in logged in an external private python script?

2012-10-22 Thread Saurabh Kumar
By external python script, I mean a python script run using following command: python web2py.py -S app_name -M -R applications/app_name/private/script.py I have to check if the user with a given user_id is 'logged in' inside this script. --

[web2py] Re: Multiprocessing in a controller ?

2012-10-22 Thread Tim Richardson
Thanks. I'll use the scheduler. Using multiprocess seemed like it may be a cool solution for the purpose of quickly using an existing python script, but the problems seemed to multiply pretty quickly. I ran out of mental cores. > > > --

[web2py] Help With Dropbox idea

2012-10-22 Thread Hassan Alnatour
Dear ALL , I want to make function that makes a csv file from my database and push it to a dropbox folder , any ideas on that ? Best Regards, --

[web2py] storing values in session[id].variable

2012-10-22 Thread Annet
In my application lots of nodes use the same controllers and views. I store some settings in session[id] where id is the id of the node. Based on whether a user has access to a function or not I build a menu and set session[id].functionname=True. This is part of the code: if a.nav.id==ABOUTNAVI

[web2py] Re: storing values in session[id].variable

2012-10-22 Thread Annet
When I cause an error these are the values stored: Variables global request }> request.args ['5'] function 'whoWeAre' global session }> Context locals request session response locals function: 'whoWeAre' session5: about_dropdown: who_we_are False /about/whoWeAre/5 what_we_do False /ab

[web2py] Re: How to check if a given user in logged in an external private python script?

2012-10-22 Thread Niphlod
you must load all the session files, unpickle them and see if there is an auth.user key in it. On Monday, October 22, 2012 12:55:12 PM UTC+2, Saurabh Kumar wrote: > > By external python script, I mean a python script run using following > command: > > python web2py.py -S app_name -M -R applicati

[web2py] Re: JS object to web2py controller and back

2012-10-22 Thread RyanTheLeach
Took a surprisingly amount of time(which is why i was asking for help), but ended up with a solution in the end. controller: def jsontest1(): import gluon.contrib.simplejson session.cart = gluon.contrib.simplejson.loads(request.post_vars.cart) return session.cart def jsontest(): ret

[web2py] Dropbox Error : to many values to unpack

2012-10-22 Thread Hassan Alnatour
Dear ALL , i am trying to work with dropbox API i addedthe file dropbox.key in app/private and added the keys in it , i added the dropbox module and i am getting this error , any help ? regards, Traceback (most recent call last): File "C:\web2py\gluon\restricted.py", line 209, in restri

[web2py] Re: Reloading modules stops working after some time ...

2012-10-22 Thread Donatas Burba
My problem (with appy.pod) still persists in v2.2.1 so I'm locked to v2.0.9... --

[web2py] deploying web2py in mountain lion server with mod_wsgi

2012-10-22 Thread Mobility
Can anybody help me install web2py on a production server running mountain lion server? I did manage to deploy it using a reverse proxy but not using wsgi. My server configuration is: Mountain lion 10.8.2 Server 2.1.1 Apache 2.2.22 python 2.7.2 --

Re: [web2py] Help With Dropbox idea

2012-10-22 Thread Jonathan Lundell
On 22 Oct 2012, at 4:48 AM, Hassan Alnatour wrote: > I want to make function that makes a csv file from my database and push it to > a dropbox folder , any ideas on that ? At the very least create the csv file in a tmp directory and then move it atomically to your dropbox folder, so Dropbox (

Re: [web2py] Help With Dropbox idea

2012-10-22 Thread hasan alnator
I Did this : in db.py : from gluon.contrib.login_methods.dropbox_account import DropboxAccount auth.settings.actions_disabled=['register','change_password','request_reset_password'] auth.settings.login_form = DropboxAccount(request,key="",secret="..",access_type="dropbox",login_url =

[web2py] Re: Twitter Boostrap Modal form containing SQLForm

2012-10-22 Thread c0nstin3
Hi, Thanks very much for your great help and code slice... it works perfectly! * Brilliant!* You [*and web2py*] rock, dude! :) Have a great day, Kind Regards Chris On Monday, 22 October 2012 00:10:15 UTC+1, villas wrote: > > I think this is such common requirement, but took me a long time to g

[web2py] Auto-completion and the ajax function bug web2py manual (p. 472 )

2012-10-22 Thread martzi
Hi all, following the example on auto-completion in web2py manual, there seems to be a "bug" using the ajax function with parameterized url. accessing the page normally in my case with (http://127.0.0.1:8000/AjaxApp/default/month_input) works fine. but accessing the page with args say 1, like

[web2py] SQLFORM.grid / appadmin: self-reference question

2012-10-22 Thread lyn2py
I have a table that self-references: db.define_table('tags', Field('tag', 'string',length=255,requires=IS_NOT_EMPTY()), Field('description','text'), Field('parent_tags', 'list:reference tags'), format='%(tag)s' ) And in appdamin and SQLFORM.grid, I noticed that there is a "+" sign

[web2py] grid export button

2012-10-22 Thread Omi Chiba
New export function on grid has many choices but I need to keep the old format. (Export button for csv) because... - I'm using the gird for users (Maybe this format is good for us but not users.) - Current export options layout is not pretty (I prefer button with dropdown list) - I don't want u

Re: [web2py] SQLFORM.grid / appadmin: self-reference question

2012-10-22 Thread Richard Vézina
It is a feature of list:reference... It may be broken for self-referenced table. There was an issue with self-reference in the pass, don't know if it get fixed or not. You may have a look to pending issue on google code. Richard On Mon, Oct 22, 2012 at 11:08 AM, lyn2py wrote: > I have a table

[web2py] Re: Dropbox Error : to many values to unpack

2012-10-22 Thread Massimo Di Pierro
You cannot use janrain with dropbox. They are different APIs and use different keys. Look into gluon/contrib/login_methods/dropbox_account.py for examples On Monday, 22 October 2012 08:11:13 UTC-5, Hassan Alnatour wrote: > > Dear ALL , > > i am trying to work with dropbox API i addedthe file

[web2py] routes.py and anchor links

2012-10-22 Thread David Sorrentino
Hey there! :) I have got some doubts about the use of anchor links and the URL rewriting by means of *routes.py*. This is my *routes.py*: routes_out = ( > ('/myapp/default/$f', '/$f') > ) > So* **/myapp/default/just_a_page* is rewritten in output like */just_a_page*. This works. The proble

Re: [web2py] Re: Dropbox Error : to many values to unpack

2012-10-22 Thread hasan alnator
Dear Massimo , i got this from the book : from gluon.contrib.login_methods.dropbox_account import use_dropbox use_janrain(auth,filename='private/dropbox.key') mydropbox = auth.settings.login_form http://web2py.com/books/default/chapter/29/14?search=dropbox#Dropbox-API Best Regards, On Mon, O

Re: [web2py] SQLFORM.grid / appadmin: self-reference question

2012-10-22 Thread lyn2py
Thanks Richard! On Monday, October 22, 2012 11:41:11 PM UTC+8, Richard wrote: > > It is a feature of list:reference... It may be broken for self-referenced > table. There was an issue with self-reference in the pass, don't know if it > get fixed or not. > > You may have a look to pending issue o

Re: [web2py] routes.py and anchor links

2012-10-22 Thread Jonathan Lundell
On 22 Oct 2012, at 9:28 AM, David Sorrentino wrote: > I have got some doubts about the use of anchor links and the URL rewriting by > means of routes.py. > > This is my routes.py: > > routes_out = ( > ('/myapp/default/$f', '/$f') > ) > > So /myapp/default/just_a_page is rewritten in output

[web2py] Multiple domains on the same application

2012-10-22 Thread Tito Garrido
Hi Folks! Is possible to use multiple domains on the same application? I mean, each domain would point to the your controller. I will have similar websites that needs to share the 'upload' directory... Example: domain1.com: init/controler1 domain2.com: init/controler3 domain3.com: init/controler3

[web2py] Re: Twitter Boostrap Modal form containing SQLForm

2012-10-22 Thread villas
Thanks Chris! Good to know the slice works. On Monday, October 22, 2012 3:50:20 PM UTC+1, c0nstin3 wrote: > > Hi, > Thanks very much for your great help and code slice... it works perfectly! > *Brilliant!* > > You [*and web2py*] rock, dude! :) > > Have a great day, > > Kind Regards > Chris > >

[web2py] Re: Multiple domains on the same application

2012-10-22 Thread HittingSmoke
I'm pretty sure you can do this with routes.py routers = dict( BASE = dict( domains = { 'domain1.com' : 'app/contoller1', 'domain2.com' : 'app/controller2', } ), ) On Monday, October 22, 2012 10:48:19 AM UTC-7, Tito Garrido wrote: > > Hi Folks! >

Re: [web2py] Re: Multiple domains on the same application

2012-10-22 Thread Tito Garrido
I will test it! Thanks!!! On Mon, Oct 22, 2012 at 2:59 PM, HittingSmoke wrote: > I'm pretty sure you can do this with routes.py > > routers = dict( > BASE = dict( > domains = { > 'domain1.com' : 'app/contoller1', > 'domain2.com' : 'app/controller2', >

[web2py] Re: Multiple domains on the same application

2012-10-22 Thread Niphlod
just assign to domain1.com, domain2.com and domain3.com the same ip address (same server) and - if you have a webserver - share the config for all 3 hostnames. Rewrite helps if you need different configs in regard of the domain on the same machine, not the other way around (same config for all

[web2py] Re: grid export button

2012-10-22 Thread Paolo Caruccio
For grid export menu I'm happy with below method In the views/*.html file where is your grid put on top (just below extend layout command) the following code: {{ w2p_grid_tbl = grid.element('table') if w2p_grid_tbl: export_menu = grid.element('div.w2p_export_menu') export_menu_links = export_

Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-10-22 Thread Cliff Kachinske
You can install Linux alongside Windows using the dual boot option. That way you won't have to manually ensure file perms are correct. I ran this way for a time, but then I dropped Windows completely. On Wednesday, September 19, 2012 1:51:23 PM UTC-4, mweissen wrote: > > Solved. > The permissio

[web2py] I have a generated pdf file I want to return to the view...

2012-10-22 Thread Jason Brower
How do I return a file to the view? Is there a way to give it a file name as it comes out? It's a PDF file I generated in the controller. I think I can get it as a file like object too. As a bonus, how do I delete it after it has been downloaded. (Thought I could easily do that in a cron job.)

[web2py] Erase/re-populate elements from a , depending on another ?

2012-10-22 Thread apinho
Hello, Having : Countries : Portugal Spain Cities Lisbon Barcelona Madrid Porto How can I get a form that dynamically limits 'cities' options, according to the chosen country ? I mean : If user chooses Spain,

Re: [web2py] Re: scheduler and datetime

2012-10-22 Thread Martin Weissenboeck
Sorry, yesterday it has been very late. Of course some code is necessary for analyzing. I thought it could be helpful it there is a simple problem. Yes, a function calls the the scheduler. Now I have changed the code and did not get the message again. But now there is another problem - see other m

Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-10-22 Thread hasan alnator
Dear Cliff, Can you give me more guides on how to apply this ? Best Regards, On Mon, Oct 22, 2012 at 10:30 PM, Cliff Kachinske wrote: > You can install Linux alongside Windows using the dual boot option. That > way you won't have to manually ensure file perms are correct. > > I ran this way

[web2py] auth.requires_membership changed between 1.99.2 and 2.1.1 ?

2012-10-22 Thread Cliff Kachinske
My models reference session.auth.user as follows: Field('request_tenant', default=session.auth.user.request_tenant) Obviously this will fail if the user is not logged in because session.auth.user is None. In 1.99.2, using any of the @auth decorators forces a login before the model files run, s

[web2py] scheduler and update

2012-10-22 Thread Martin Weissenboeck
Let's say I have a table db.define_table('sendprot', Field('myfield','integer', default=0)) and a function like def testupdate(): db.sendprot[1]=dict(myfield=2) Now I make this function a scheduler function and I set the scheduler_task.status to QUEUED The status becomes COMPLETED. Looks

[web2py] Re: I have a generated pdf file I want to return to the view...

2012-10-22 Thread Niphlod
if you have generated a physical file response.stream(path_to_pshysical_file, attachment=True, filename=whatever.pdf) if you have a "virtual file" (e.g., StringIO) response.stream(virtual_file, attachment=True, filename=whatever.pdf) On Monday, October 22, 2012 9:33:21 PM UTC+2, encompass wrote:

Re: [web2py] Re: scheduler and datetime

2012-10-22 Thread Niphlod
I can't see the other email but glad the problem is solved on the scheduler side. On Monday, October 22, 2012 10:00:40 PM UTC+2, mweissen wrote: > > Sorry, yesterday it has been very late. Of course some code is necessary > for analyzing. I thought it could be helpful it there is a simple proble

Re: [web2py] Re: scheduler and datetime

2012-10-22 Thread Martin Weissenboeck
I have written it now :-) 2012/10/22 Niphlod > I can't see the other email but glad the problem is solved on the > scheduler side. > > > On Monday, October 22, 2012 10:00:40 PM UTC+2, mweissen wrote: > >> Sorry, yesterday it has been very late. Of course some code is necessary >> for analyzing.

[web2py] DB filled with data, now what? How to operate with view?

2012-10-22 Thread MJo
I've got scheduler working and DB is getting data. Now the funny part starts for newbie like me (scheduler were somewhat easy stuff but basics like html&css not and add there also this framework to that soup).. How to show that data? Am I supposed to utilize controllers/default.py: def index():

Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-10-22 Thread Martin Weissenboeck
I have tried several things, but I am not sure what solved the problem: - DAL with pool_size=10 - All Linux-files got the same rights (755) Sorry, I think this is not much help. 2012/10/22 hasan alnator > Dear Cliff, > > Can you give me more guides on how to apply this ? > > Best Regards

[web2py] Re: scheduler and update

2012-10-22 Thread Niphlod
all code in the scheduler runs as you were running the function in the shell (as web2py.py -M -S yourapp) There's no "automatic" support for committing changes when the task is completed like there is the one when the request completes on web2py. You should call db.commit() in your functions wh

[web2py] web2py.css and bootstrap

2012-10-22 Thread Richard
Hello, This line in web2py.css prevent the use of "Prepended and appended inputs" of the bootstrap : Line 33 of web2py.css (web2py 2.1.1) input[type=text],input[type=password],select{width:300px; margin-right:5px} The problem come from the "margin-right:5px" There should be not margin-right in

[web2py] Re: auth.requires_membership changed between 1.99.2 and 2.1.1 ?

2012-10-22 Thread Niphlod
Don't take this as a sure thing, but a big improvement was made on 1.99.4/1.99.7 to avoid the behaviour that all decorators (as @auth.requires is) were executed no matter what function you were requesting for that controller. Don't know if that fix brought to your situation. I think your situati

[web2py] Re: grid export button

2012-10-22 Thread Omi Chiba
Wow! This is exactly what I wanted. I hope this will be the default layout for grid. I copy and pasted your code between {{extend 'layout.html'}} and {{=gird}}, then export labels are now disappeard... Maybe you should check your code with the latest (2.1.1). {{left_sidebar_enabled,right_sideb

Re: [web2py] Re: Dropbox Error : to many values to unpack

2012-10-22 Thread Massimo Di Pierro
Typo in the book: from gluon.contrib.login_methods.dropbox_account import use_dropbox use_dropbox(auth,filename='private/dropbox.key') mydropbox = auth.settings.login_form On Monday, 22 October 2012 11:39:26 UTC-5, Hassan Alnatour wrote: > > Dear Massimo , > > i got this from the book : > > fro

[web2py] Re: How to check if a given user in logged in an external private python script?

2012-10-22 Thread Saurabh Kumar
Hi, can you elaborate a bit more on as to how to do this in code? I am somewhat confused. On Monday, October 22, 2012 8:34:21 AM UTC-4, Niphlod wrote: > > you must load all the session files, unpickle them and see if there is an > auth.user key in it. > > On Monday, October 22, 2012 12:55:12 PM

[web2py] Re: Custom import creates module name conflicts (2.1.1)

2012-10-22 Thread Jim Karsten
Thanks, Massimo. I upgraded to web2py v2.2.1 and that patch addresses the 'ImportError: cannot import name web2py_uuid' error. I still have name clashes with my constants.py module and MySQLdb. For now I am going to rename my module. I have some reservations about the new custom_importer as it

[web2py] Re: How to check if a given user in logged in an external private python script?

2012-10-22 Thread Niphlod
the only thing you know about a user "logged in" is that his session has a session.auth key with data filled in. You can't know without further modification to web2py's code if a user is logged in in any other way. So, you need to read the session files (all of them). Session files are usually st

Re: [web2py] Re: scheduler and update

2012-10-22 Thread Martin Weissenboeck
Thank you very much - db.commit() is the solution! 2012/10/22 Niphlod > all code in the scheduler runs as you were running the function in the > shell (as web2py.py -M -S yourapp) > > There's no "automatic" support for committing changes when the task is > completed like there is the one when th

[web2py] Re: grid export button

2012-10-22 Thread Paolo Caruccio
My fault. I extrapoled the code from more complex one. Try this: {{extend 'layout.html'}} {{ w2p_grid_tbl = grid.element('table') if w2p_grid_tbl: original_export_menu = grid.element('div.w2p_export_menu') export_menu_links = original_export_menu.elements('a') export_menu_items = [] for link

Re: [web2py] Web2py 2.1.1 csv import bug or ?

2012-10-22 Thread Tito Garrido
I have the same problem... is it a bug? On Wed, Oct 17, 2012 at 5:51 AM, martzi wrote: > Hello all, > > I have being trying to import a csv data to a DAL database and this is > what i get: > > Traceback > > > 1. > 2. > 3. > 4. > 5. > 6. > 7. > 8. > 9. > 10. > > > Traceback (most recent call

Re: [web2py] web2py.css and bootstrap

2012-10-22 Thread Paolo Caruccio
The margin is required when the html code is generated by web2py in one string without line breaks and the elements are "inline elements" (as the "input" element is). Please in a view put following code case #1 {{=DIV(INPUT(_type='text',_value='first element'),'\n',INPUT(_type='text',_value='s

Re: [web2py] Web2py 2.1.1 csv import bug or ?

2012-10-22 Thread Massimo Di Pierro
Fixed in 2.2.1 On Monday, 22 October 2012 18:02:29 UTC-5, Tito Garrido wrote: > > I have the same problem... is it a bug? > > On Wed, Oct 17, 2012 at 5:51 AM, martzi >wrote: > >> Hello all, >> >> I have being trying to import a csv data to a DAL database and this is >> what i get: >> >> Tra

[web2py] Re: Erase/re-populate elements from a , depending on another ?

2012-10-22 Thread villas
You need to search for jquery cascading select. I think there is something on web2pyslices too. I went to check the latter but the internet/website was so slow I gave up. Probably just a temporary slow-down. D On Monday, October 22, 2012 8:47:55 PM UTC+1, apinho wrote: > > Hello, > > Having

[web2py] Re: update_or_insert doesn't always return the corresponding row id

2012-10-22 Thread Adi
Stumbled upon the same thing. Understood that possibly results could have more ids when key is different from primary key, e.g (name=='john'), but would it be possible to return an additional parameter with update id(s), if they are known? return newid, updateids On Friday, December 30, 201

[web2py] Access a pandas pickled file

2012-10-22 Thread curiouslearn
Hello, I have a pandas data frame saved using pandas.save('simdata_1_1.pickle') I can load it easily in my regular ipython console (not the web2py ipython console) using pandas.load('simdata_1_1.pickle') I was wondering if I can use this file in a web2py application, such as extract data

[web2py] Re: auth.requires_membership changed between 1.99.2 and 2.1.1 ?

2012-10-22 Thread Cliff Kachinske
Thanks. Actually I already have a fix in place, though I like yours better because it's more compact. I was just wondering if the Web2py behavior had changed. On Monday, October 22, 2012 4:53:07 PM UTC-4, Niphlod wrote: > > Don't take this as a sure thing, but a big improvement was made on > 1

[web2py] response.toolbar, missing db stats?

2012-10-22 Thread lyn2py
db stats used to produce the SQL code and the db access timings whenever the controller has code that accesses the db. But I found that db stats is missing this info in Version 2.1.1 (2012-10-19 14:59:27) dev And the latest git clone Version 2.2.1 (2012-10-22 18:50:13) stable --

[web2py] Re: APP-specific routers

2012-10-22 Thread lyn2py
I have just tested this on the latest Version 2.2.1 (2012-10-22 18:50:13) stable But it is still not working. On Wednesday, October 3, 2012 12:24:08 PM UTC+8, lyn2py wrote: > > The new (or maybe not so new, by now) app-specific routers is an excellent > idea. I love it. > > Can I get some help

[web2py] Re: routes_onerror

2012-10-22 Thread lyn2py
I confirm that this issue still exists in Version 2.2.1 (2012-10-22 18:50:13) stable On Wednesday, September 26, 2012 5:16:47 PM UTC+8, lyn2py wrote: > > Opened an issue here: > Issue 1034 > > On Wednesday, September 26, 2012 11:16:16 AM U

[web2py] Re: DB filled with data, now what? How to operate with view?

2012-10-22 Thread howesc
yes, i would do the query in the controller, and output my custom HTML in the view that uses CSS to indent the or whichever HTML element that you use to get your layout. cfh On Monday, October 22, 2012 1:30:04 PM UTC-7, MJo wrote: > > I've got scheduler working and DB is getting data. Now the

Re: [web2py] buttons=['submit','reset','cancel'] and INPUT helpers

2012-10-22 Thread Annet
Hi Richard, Thanks for your reply and providing me with the link. This does exactly what I want: form.element('input[type=submit]',replace=lambda button: CAT(button, INPUT(_class="btn",_type="reset",_value="Reset"), INPUT(_class="btn",_type="button",_value="Cancel",_onclick="javascript:history

[web2py] Re: IS_NOT_IN_DB() and update SQLFORM.factory

2012-10-22 Thread Annet
Hi Villas, Thanks for your reply. I tried: is_not_in_db=IS_NOT_IN_DB(db,'hub.name',error_message='name already in database') db.define_table('hub', Field(...), Field('name',default='',requires=[IS_NOT_EMPTY(),is_not_in_db],notnull=True,unique=True), Field(...), migrate=False)

Re: [web2py] Re: Dropbox Error : to many values to unpack

2012-10-22 Thread hasan alnator
Dear Massimo , i changed it , but now i got this : Traceback (most recent call last): File "C:\web2py\gluon\restricted.py", line 209, in restricted exec ccode in environment File "C:/web2py/applications/dropbox/controllers/default.py"

Re: [web2py] Re: ProgrammingError: Cannot operate on a closed database

2012-10-22 Thread hasan alnator
Dear Martin, i am using web2py 1.9.9 on a windows server , everything is fine but i keep getting this error everything i update web2py to the new one , i hope you can help me to solve this problem .. Regards, On Mon, Oct 22, 2012 at 11:31 PM, Martin Weissenboeck wrote: > I have tried several t

[web2py] Re: Auto-completion and the ajax function bug web2py manual (p. 472 )

2012-10-22 Thread martzi
Possible solution: use vars=dict(id=*row.id*) instead of args=*row.id* in this case the Url will be something like this http://127.0.0.1:8000/AjaxApp/default/month_input?id=1 05 this will enable the auto-completion to work across any page whe