Re: [web2py] Re: How to go publick with web2py
i need one more answer..How i can do it on windows?? cause every answer i find is for ubu or linux enviroemnt. When i execute web2py.exe i choose public(0.0.0.0) and the port and it should work?? or i need to do smthng extra ?? 2018-07-26 16:53 GMT+03:00 Stavros Boletis : > Thanks for your answer that was exactly what i was looking for..i ll try > it soon and i ll inform you for any progress. > > Στις Πέμ, 26 Ιουλ 2018, 16:15 ο χρήστης 黄祥 > έγραψε: > >> pardon, not sure what is exactly means go public, if you want web2py app >> can be accessed from other pc's and network (lan), perhaps you can set your >> web server to allow it access from outside >> *e.g. using rocket (shipped with web2py)* >> python web2py.py -i 0.0.0.0 >> another thing is go public means in wan, you can use pythonanywhere or >> something like that (heroku, amazon, google cloud) >> *ref:* >> http://web2py.com/books/default/chapter/29/13/ >> deployment-recipes#Deploying-on-PythonAnywhere >> >> best regards, >> stifan >> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: How to go publick with web2py
Thanks for your answer that was exactly what i was looking for..i ll try it soon and i ll inform you for any progress. Στις Πέμ, 26 Ιουλ 2018, 16:15 ο χρήστης 黄祥 έγραψε: > pardon, not sure what is exactly means go public, if you want web2py app > can be accessed from other pc's and network (lan), perhaps you can set your > web server to allow it access from outside > *e.g. using rocket (shipped with web2py)* > python web2py.py -i 0.0.0.0 > another thing is go public means in wan, you can use pythonanywhere or > something like that (heroku, amazon, google cloud) > *ref:* > > http://web2py.com/books/default/chapter/29/13/deployment-recipes#Deploying-on-PythonAnywhere > > best regards, > stifan > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] response menu
Hi, i have a problem with dropdown menu when i use a custom layout with web2py.. my menu.py is response.menu += [ (T('Home'), False , URL('default','index')), (T('Contact Us'), False , URL('default','index')), (T('Experiments'), False, '#', [ (T('Station1(RC-Filters)'), False, URL('default','Experiment_One')), (T('Test'), False, URL('default','Test')), (T('Station2(RC-Filters)'), False, URL('default', 'Experiment_Two')),]),] my html code is this {{=MENU(response.menu,_class='web2py-menu')}} it appears the menu but it doesnt open the drop down menu for Experiments is there something i need to add extra?? Thanks! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] web2.py + mpld3: how to display the generated HTML
I am trying to use mpld3 (http://mpld3.github.io/index.html) to generate an example plot with web2py. so far in my simple example: controller: def example_plot(): import matplotlib.pyplot as plt, mpld3 fig, ax = plt.subplots() plot = ax.plot([3,1,4,1,5], 'ks-', mec='w', mew=5, ms=20) make_html = mpld3.fig_to_html(fig, template_type = "general") return locals() view: {{=HTML(make_html)}} The code passed the generated html to my view but i get raw html. How i actually can render the make_html to a view? Any suggestions ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Field('mydate', 'date') is not a real datetime object ?
My task has a simple one, just to find the missing days in a given interval of my database. db_define('mydates', Field('value'), Field('valuedate', 'date') in the controller : import datetime def date_range(start, end): r = (end+datetime.timedelta(days=1)-start).days return [start+datetime.timedelta(days=i) for i in range(r)] def calc_missing(): mydates = db(db.mydates).select(db.mydates.valuedate, orderby = db.daily.indate) # Select the dates in Database start = db(db.mydates.valuedate).select(db.mydates.valuedate.min()) # Start Date finish = db(db.mydates.valuedate).select(db.mydates.valuedate.max()) # finish Date finish = finish[0]['_extra'] ['MAX(mydates.valuedate)'] start = start[0]['_extra'] ['MIN(mydates.valuedate)'] real_dates = date_range(start, finish) # Find the real_dates, a synthetic date dateset missing_dates = set(real_dates).difference(mydates) # find missing days mydates_len = len(mydates) myreal_len = len(real_dates) return locals() After running this, i get mydates and real_dates lenght the same!!! even that i have define my table field to be 'date' . So, 'date' in table field is not a datetime object? In order to make a simple set(real_dates).difference(mydates) i must first covert the field 'date' to a datetime structure? If yes, that is the point of a field 'date'? only to display in form , a calendar input? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] debian package works, ubuntu package doesn't
Me and a few other did some more testing with the latest debian/ubuntu packages. The debian package works just fine in wheezy/sid. The ubuntu package does not work in Oneric nor does it work in Natty (to be expected). $ web2py Traceback (most recent call last): File "/usr/bin/web2py", line 87, in if not os.path.exists(module_web2py_applications):open(module_web2py_applications, 'w').close() IOError: [Errno 2] No such file or directory: '/home/jelkner/web2py/applications/__init__.py'
[web2py] Re: import error debian package
Thank you. That worked wonderfully. I'll test out the package when it's available. On Jun 10, 8:08 am, José Luis Redrejo Rodríguez wrote: > 2011/6/9 Stavros : > > >http://dl.dropbox.com/u/3616407/mathquiz.tar.gz > > > Thanks > > Thanks for the testing project. Checking it I've noticed there was a > missing (and important file now) : applications/__init__.py > > I've just fixed it and uploaded a new version (1.96.4-2) of the > package to Debian, > but it can take a few hours before it gets visible through the mirrors. > > In case you don't want to wait until new packages are visible, > replacing the attached /usr/bin/web2py file will fix the error. > > Regards > José L. > > > > > > > > > On Jun 9, 12:30 pm, José Luis Redrejo Rodríguez > > wrote: > >> 2011/6/9 Jeff Elkner : > > >> > We copy the math_quiz directory and all its contents from a source > >> > install > >> > of web2py, where it works, to the application directory of a user > >> > created by > >> > the debian package, where it gives the error above. > > >> > Three of us have confirmed this on three separate installations. We are > >> > pretty confident it is an error with the way the package works. > > >> Could you give me a part of the code to test it in the package. I > >> guess it's a permission problem. > > >> Regards. > > web2py > 4KViewDownload
[web2py] Re: import error debian package
http://dl.dropbox.com/u/3616407/mathquiz.tar.gz Thanks On Jun 9, 12:30 pm, José Luis Redrejo Rodríguez wrote: > 2011/6/9 Jeff Elkner : > > > We copy the math_quiz directory and all its contents from a source install > > of web2py, where it works, to the application directory of a user created by > > the debian package, where it gives the error above. > > > Three of us have confirmed this on three separate installations. We are > > pretty confident it is an error with the way the package works. > > Could you give me a part of the code to test it in the package. I > guess it's a permission problem. > > Regards.
[web2py] import error debian package
Has anyone who has used latest debian package been able to import modules while keeping the application self contained? I have the traceback from another user's application. First line of default.py question_maker = local_import('question_maker') then when you run it... Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/gluon/restricted.py", line 192, in restricted exec ccode in environment File "/home/jelkner/web2py/applications/mathquiz/controllers/ default.py", line 1, in question_maker = local_import('question_maker') File "/usr/lib/pymodules/python2.6/gluon/compileapp.py", line 246, in local_import_aux(name,reload,app) File "/usr/lib/pymodules/python2.6/gluon/compileapp.py", line 177, in local_import_aux module = __import__(name) File "/usr/lib/pymodules/python2.6/gluon/custom_import.py", line 280, in __call__ fromlist, level) File "/usr/lib/pymodules/python2.6/gluon/custom_import.py", line 75, in __call__ level) ImportError: No module named mathquiz.modules.question_maker