Re: [web2py] Re: How to install web2py on webfaction
thanks bro for nice and quick reply i got that file but whatever pwd is written over there it also not working. On 5 July 2012 22:09, khuc viet Cuong wrote: > > > On Fri, Jul 6, 2012 at 1:19 AM, khuc viet Cuong wrote: > >> hi >> for webfaction, your web2py app is an application with a name,you can >> find out what name when check it in application menu, >> and the file Parameters_80.py (or *parameters_xyz.py* not sure what >> you got) is in web2py application folder, look like this: >> >> home/yourusername/webapps/web2py <---this is name of an app which we have >> give to >> >> inside this folder has 3 folders: apache2, htdocs, web2py >> >> so goto: home/yourusername/webapps/web2py/web2py >> the file: *parameters_80.py (or * *parameters_xyz.py* *) must be here, >> if not we can not login.* >> inside this file is your encoded password, you dont need to open this >> file to edit, just rename it by change the port number, 80 or the port >> that webfaction gave to app and test. (get this port via application >> menu) >> if the *parameters_80.py* file is not exsiting then you have do the >> steps to set password for web2py (i wrote above ) , it will created this >> file for you. >> >> regards >> >> On Fri, Jul 6, 2012 at 12:52 AM, Prakhar Srivastava < >> prakharsri...@gmail.com> wrote: >> > thanks bro, with the help of this mail i install the web2py >> application but >> > still not able to login ,i open one ticket for that issue so they >> reply me >> > not open Parameters_80.py get the pwd >> > but i'm able open this file and even i don't know where it is? pleasehelp >> > bro >> > >> > >> > On 5 July 2012 10:24, khuc viet Cuong wrote: >> >> >> >> sorry for bad english, i forgot one thing that: >> >> you should check web2py folder first, >> >> if there is a parameters_1234.py file then you have remove it before >> >> do steps above >> >> (coz: if parameters_1234.py is existing then web2py wont ask password >> >> again, dont remember exactly ) >> >> >> >> web2py admin panel and password wont work if you installed it by >> >> autoscript, because 2 problems: >> >> 1- No SSL web2py website be created in webfaction control panel. >> >> 2- parameters_portnumber.py: portnumber is wrong ( i tested and it >> >> works with port 80, dont understand why) >> >> >> >> To re-config apache for web2py, goto: >> >> username/webapps/web2py/apache2/conf/httpd.conf >> >> open this file and change these params to fit your requirement and >> here is >> >> mine: >> >> >> >> MaxSpareThreads 3 >> >> MinSpareThreads 1 >> >> ThreadsPerChild 5 >> >> WSGIDaemonProcess web2py processes=1 >> >> python-path=/home/user/webapps/web2py/lib/python2.7 threads=1 >> >> maximum-requests=120 >> >> >> >> Regards. >> >> >> >> On Thu, Jul 5, 2012 at 12:35 PM, khuc viet Cuong > > >> >> wrote: >> >> > hi, >> >> > webfaction will use your admin password for web2py admin password by >> >> > default if you install it by auto-script. its ricsky. >> >> > to set password , you have login via SSH, run web2py as python >> script, >> >> > it will ask you password, when you done, stop and kill web2py >> process, >> >> > a new file : parameters_portnumber.py , etc. parameters_1234.pywhich >> >> > 12345 port is webfaction gave you when create a new app , but web2py >> >> > wont work, alway say can access password or...blabla, to solve it, >> >> > rename its name: >> >> > >> >> > parameters_1234.py--> parameters_80.py >> >> > >> >> > and check your apache thread worker via SSH, and test from your >> brow. >> >> > default web2py app folder in webfaction will look like this: >> >> > web2py--> >> >> > -apache2 >> >> > -htdocs >> >> > -web2py >> >> > >> >> > check your apache thread worker memory usage via SSH to know how >> much >> >> > it eats, should re-config apache, if not webffaction will kill your >> >> > apache worker and issue email "memory exceed your plan" when run >> >> > web2py. if u need
Re: [web2py] Re: How to install web2py on webfaction
thanks bro, with the help of this mail i install the web2py application but still not able to login ,i open one ticket for that issue so they reply me not open Parameters_80.py get the pwd but i'm able open this file and even i don't know where it is? please help bro On 5 July 2012 10:24, khuc viet Cuong wrote: > sorry for bad english, i forgot one thing that: > you should check web2py folder first, > if there is a parameters_1234.py file then you have remove it before > do steps above > (coz: if parameters_1234.py is existing then web2py wont ask password > again, dont remember exactly ) > > web2py admin panel and password wont work if you installed it by > autoscript, because 2 problems: > 1- No SSL web2py website be created in webfaction control panel. > 2- parameters_portnumber.py: portnumber is wrong ( i tested and it > works with port 80, dont understand why) > > To re-config apache for web2py, goto: > username/webapps/web2py/apache2/conf/httpd.conf > open this file and change these params to fit your requirement and here is > mine: > > MaxSpareThreads 3 > MinSpareThreads 1 > ThreadsPerChild 5 > WSGIDaemonProcess web2py processes=1 > python-path=/home/user/webapps/web2py/lib/python2.7 threads=1 > maximum-requests=120 > > Regards. > > On Thu, Jul 5, 2012 at 12:35 PM, khuc viet Cuong > wrote: > > hi, > > webfaction will use your admin password for web2py admin password by > > default if you install it by auto-script. its ricsky. > > to set password , you have login via SSH, run web2py as python script, > > it will ask you password, when you done, stop and kill web2py process, > > a new file : parameters_portnumber.py , etc. parameters_1234.py which > > 12345 port is webfaction gave you when create a new app , but web2py > > wont work, alway say can access password or...blabla, to solve it, > > rename its name: > > > > parameters_1234.py--> parameters_80.py > > > > and check your apache thread worker via SSH, and test from your brow. > > default web2py app folder in webfaction will look like this: > > web2py--> > > -apache2 > > -htdocs > > -web2py > > > > check your apache thread worker memory usage via SSH to know how much > > it eats, should re-config apache, if not webffaction will kill your > > apache worker and issue email "memory exceed your plan" when run > > web2py. if u need re-config apache, i will paste it here for you. > > Regards > > > > > > On Thu, Jul 5, 2012 at 7:42 AM, monotasker wrote: > >> Do you know how to set the admin password? I tried entering my > webfaction > >> dashboard password but it didn't work. > >> > >> Ian > >> > >> > >> On Wednesday, July 4, 2012 11:42:24 AM UTC-4, kokoyo wrote: > >>> > >>> hi, i have been using webfaction, you can do these step to get w2py > admin: > >>> on the left menu: Domains/Website > >>> > >>> 1. -->Domains-->Add new domain:domain.com(you did) > >>> 2. -->Applications-->Add new application: web2py (you did: > >>> install web2py) > >>> 3. -->Websites--->Click the (+) at bottom-right to create a new Website > >>> with: > >>> Name:*:web2py > >>> Https:* un-check > >>> Subdomains:*domain.com > >>> Site apps:--->app: web2py (got this name at Step 2) > >>> URL path (ex: '/' or '/blog'):* / (you > >>> did) > >>> > >>> 4. Repeat Step 3 with: > >>> Name:*:web2py_admin > >>> Https:* checked > >>> Subdomains:*domain.com > >>> Site apps:--->app: web2py (got this name at Step 2) URL > >>> path (ex: '/' or '/blog'):* / > >>> > >>> > >>> you have lacked of step 4 only, > >>> to login to admin page: https://domain.com/admin > >>> > >>> Regards > >>> > >>> On Tue, Jul 3, 2012 at 1:46 PM, Annet wrote: > >>> > Hi, > >>> > > >>> > This post might answer your question: > >>> > > >>> > > >>> > > https://groups.google.com/forum/?fromgroups#!searchin/web2py/annet$20webfaction/web2py/o9We_wV3eNc/0dS3ci6nFOAJ > >>> > > >>> > > >>> > Kind regards, > >>> > > >>> > Annet > -- *With Regards Prakhar Srivastava +91**9241829245*
[web2py] Re: GAE
I can't say this problem solve but in GAE it accept only .png file and other expect .jpg i don't get the perfect solution. On Thursday, 10 May 2012 12:06:08 UTC+5:30, Prakhar Srivastava wrote: > > when i upload my application this waring come up > 2012-05-09 23:02:24.992 > /pixelofn/static/images/album/thumbs/PixelOfNature_fm_03.jpg 404 27ms 0kb > 223.183.189.220 - - [09/May/2012:23:02:24 -0700] "GET > /pixelofn/static/images/album/thumbs/PixelOfNature_fm_03.jpg HTTP/1.1" 404 > 0 "http://www.pixelofn.appspot.com/"; - "www.pixelofn.appspot.com" ms=27 > cpu_ms=0 api_cpu_ms=0 cpm_usd=0.74 > W > 2012-05-09 23:02:24.992 > Static file referenced by handler not found: > applications/pixelofn/static/images/album/thumbs/PixelOfNature_fm_03.jpg >
[web2py] Re: problem related to GAE server
I don't i can say this problem but in GAE it accept only .png file and other expect .jpg i don't get the perfect solution. On Thursday, 10 May 2012 11:33:17 UTC+5:30, Prakhar Srivastava wrote: > > what is the max image size we can upload through the img tag ? > Because my application is working fine the local server and rock server > when i upload my application on GAE server then it's not showing properly > www.pixelofn.appspot.com > > this is my application actually it stack because he one photo should > appear in the middle then navigation come from right hand side. > > HOW CAN I SOLVE THIS PROBLEM ???
[web2py] Re: GAE
ya you are right GAE is case-sensitive but i follows this also. On Friday, 11 May 2012 08:20:01 UTC+5:30, howesc wrote: > > sounds like your app.yaml prevented the upload of the file, or the file > was missing from the directory when you uploaded. note that GAE is > case-sensitive. i'm not sure if the dev server is case sensitive or not. > > On Wednesday, May 9, 2012 11:36:08 PM UTC-7, Prakhar Srivastava wrote: >> >> when i upload my application this waring come up >> 2012-05-09 23:02:24.992 >> /pixelofn/static/images/album/thumbs/PixelOfNature_fm_03.jpg 404 27ms 0kb >> 223.183.189.220 - - [09/May/2012:23:02:24 -0700] "GET >> /pixelofn/static/images/album/thumbs/PixelOfNature_fm_03.jpg HTTP/1.1" 404 >> 0 "http://www.pixelofn.appspot.com/"; - "www.pixelofn.appspot.com" ms=27 >> cpu_ms=0 api_cpu_ms=0 cpm_usd=0.74 >> W >> 2012-05-09 23:02:24.992 >> Static file referenced by handler not found: >> applications/pixelofn/static/images/album/thumbs/PixelOfNature_fm_03.jpg >> >
[web2py] GAE
when i upload my application this waring come up 2012-05-09 23:02:24.992 /pixelofn/static/images/album/thumbs/PixelOfNature_fm_03.jpg 404 27ms 0kb 223.183.189.220 - - [09/May/2012:23:02:24 -0700] "GET /pixelofn/static/images/album/thumbs/PixelOfNature_fm_03.jpg HTTP/1.1" 404 0 "http://www.pixelofn.appspot.com/"; - "www.pixelofn.appspot.com" ms=27 cpu_ms=0 api_cpu_ms=0 cpm_usd=0.74 W 2012-05-09 23:02:24.992 Static file referenced by handler not found: applications/pixelofn/static/images/album/thumbs/PixelOfNature_fm_03.jpg
[web2py] GAE Mail Config.
Is there anyone config the mail feature for GAE Server
[web2py] problem related to GAE server
what is the max image size we can upload through the img tag ? Because my application is working fine the local server and rock server when i upload my application on GAE server then it's not showing properly www.pixelofn.appspot.com this is my application actually it stack because he one photo should appear in the middle then navigation come from right hand side. HOW CAN I SOLVE THIS PROBLEM ???
[web2py] rss feed
brother i want to add rss feed in my web2py application Those are the gvot. rss feed i just want call in our application page
[web2py] fluxflex problem
Hello all the group menders today there is any problem in fluxflex with web2py because my application need a auth. at every click ?
[web2py] Re: New web2py stable 1.99.5 creating problems and breaking the backward compatibility
Ya sanjeet i agree with you the same problem i face founder's do something because we have to start a new application on web2py On Mar 2, 11:19 am, Sanjeet Kumar wrote: > i am very excited to use the new version of web2py 1.99.5 . when i > downloaded it and use than i face the to many problems i am not be able to > go the database administration when i click on the database administration > it is redirecting to the site view and i also copied the my application > which i developed in the previous version it is breaking the backward > compatibility with plugin_instant_admin .
Re: [web2py] Re: auth
Ya sure actually i'm working on HRMS application so for that point of view i need 3 different direction : one direction we don't need any auth login and other 2 direction we auth login one the employee login and other for the admin login . now i can change default index into default home and employee login i mapped to the default index bt form were i can great admin login On Fri, Feb 24, 2012 at 11:14 AM, Anthony wrote: > On Thursday, February 23, 2012 11:07:15 PM UTC-5, Prakhar Srivastava wrote: >> >> Thanks Anthony , >> I this thing with mr.sanjeet and i got the success bt is there any other >> way to solve this problem >> > > Can you be more specific about the problem? Why can't you use the > suggested solution? What have you tried, and what was the result? > > Anthony >
Re: [web2py] Re: Logout time
thanks Anthony through function we got this i have to try with the timestamps On Thu, Feb 23, 2012 at 7:41 PM, Anthony wrote: > On Thursday, February 23, 2012 4:46:10 AM UTC-5, Prakhar Srivastava wrote: >> >> how can i capture the logout time >> i can easy capture the login time with help of .now() bt i couldn't >> the logout time > > > Note, the auth_events table already records all Auth events, including all > logins and logouts, so you can just read the timestamps from that table. > Otherwise, you can specify functions for auth.settings.login_onaccept and > auth.settings.logout_onlogout to store the current time in a db table upon > login and logout. > > Anthony >
Re: [web2py] Re: auth
Thanks Anthony , I this thing with mr.sanjeet and i got the success bt is there any other way to solve this problem On Thu, Feb 23, 2012 at 7:24 PM, Anthony wrote: > On Thursday, February 23, 2012 2:11:19 AM UTC-5, Prakhar Srivastava wrote: >> >> is there any way to change the path after Login by default in direct >> to the index > > > auth.settings.login_next = URL('default', 'index') > > If the user requests a specific URL that requires login and gets > redirected to the login page, then by default they will get redirected back > to the originally requested URL after login rather than the "index" page. > Generally, that's the behavior you want, but if for some reason you want to > force a redirect to the index page even in that case, I think you'd have to > change your login action to explicitly call the Auth login() function with > the "next" argument: auth.login(next=URL('default', 'index')). > > Anthony >
[web2py] Re: what are these css classes?: w2p_fl w2p_fw w2p_fc
nice one thanks On Feb 17, 8:55 pm, Anthony wrote: > > w2p_fl: web2py field label > > w2p_fw: web2py field widget > > w2p_fc: web2py field comment > > Each input field in a web2py SQLFORM gets a label, widget, and (optional) > comment. Those classes are added to the appropriate TD, DIV, or LI elements > (depending on the formstyle) to make it easy to apply CSS styling and make > DOM manipulations. They are used in web2py.css to apply some default > styling. > > Anthony
[web2py] Related to Lgoin
how can we fetch the login time and logout time from the server I need store both timing into my database
[web2py] auth
is there any way to change the path after Login by default in direct to the index
[web2py] Logout time
how can i capture the logout time i can easy capture the login time with help of .now() bt i couldn't the logout time
[web2py] help
Hello all of you , I need a help from web2py group actually i want to develop feedback from for my website so for thats i'm using this controller code and this code is working when, i'm using rock server with smtp and when i use with 'gae' with google appengine it not working so so i need your suggest on this code guys ... def feedback(): form=FORM(TABLE(TR("Your name:",INPUT(_type="text",_name="name",requires=IS_NOT_EMPTY(error_message='Please Enter Your Name'))), TR("Your email:",INPUT(_type="text",_name="email",requires=IS_EMAIL())), TR("Contact No",INPUT(_type="text",_name="contact",requires=IS_NOT_EMPTY(error_message='Please Enter Your Contact Number'))), TR("Looking For",SELECT('Career','Contact Us','Complaints','Feedback',_name="query",requires=IS_IN_SET(['Career','Contact Us','Complaints','Feedback']))), TR("Message",TEXTAREA(_name="message",value="",requires=IS_NOT_EMPTY(error_message='Please Enter Your Message'))), TR("",INPUT(_type="submit",_value="SUBMIT" if form.accepts(request,session): mailid() response.flash = 'Your Query is Submited Successfully' return dict(form=form)#,recipients = recipients, message_text = message_text) def mailid(): #import Mail from gluon.tools import Mail mail=Mail() #specify server mail=auth.settings.mailer mail.settings.server='GAE'#'smtp.gmail.com:587' mail.settings.login='y...@domain.com:pwd' #specify address to send as mail.settings.sender=request.vars.email #send the message msg = request.vars.name, request.vars.email,request.vars.contact mail.send(to=['oth...@domain.com'], subject=request.vars.query, message= request.vars.message) #recipients = ['John Smith '] #subject = "Your Order Has Shipped" #for recipient in recipients: #status = Mail.send(to=recipient, subject=subject, message_text=message_text, message_html=message_html) return ''