From skip.montanaro at gmail.com Fri Mar 2 08:42:38 2018 From: skip.montanaro at gmail.com (Skip Montanaro) Date: Fri, 2 Mar 2018 07:42:38 -0600 Subject: [Flask] Is filesystem cache safe between processes? Message-ID: Looking to add a Flask cache (flask_cache module) for an application which sits behind uwsgi. My Flask app will thus exist as multiple worker processes. Can they share the same filesystem-based cache? This is my first foray into caching in Flask, so I don't want to immediately dive into more complex solutions like Redis or memcached caching. Thx, Skip Montanaro From markus at unterwaditzer.net Fri Mar 2 10:43:43 2018 From: markus at unterwaditzer.net (Markus Unterwaditzer) Date: Fri, 02 Mar 2018 16:43:43 +0100 Subject: [Flask] Is filesystem cache safe between processes? In-Reply-To: References: Message-ID: <1B7C5BF7-DED2-4789-A146-22E8395407CD@unterwaditzer.net> They can. Filesystem can be used concurrently. On 2 March 2018 14:42:38 GMT+01:00, Skip Montanaro wrote: >Looking to add a Flask cache (flask_cache module) for an application >which sits behind uwsgi. My Flask app will thus exist as multiple >worker processes. Can they share the same filesystem-based cache? This >is my first foray into caching in Flask, so I don't want to >immediately dive into more complex solutions like Redis or memcached >caching. > >Thx, > >Skip Montanaro >_______________________________________________ >Flask mailing list >Flask at python.org >https://mail.python.org/mailman/listinfo/flask -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dorian.hoxha at gmail.com Fri Mar 2 10:50:11 2018 From: dorian.hoxha at gmail.com (Dorian Hoxha) Date: Fri, 2 Mar 2018 16:50:11 +0100 Subject: [Flask] Is filesystem cache safe between processes? In-Reply-To: References: Message-ID: What about uwsgi caching ? They can share. I don't know about "writing" though. May have conflict 2 processes writing to the same file at the same time. File-based caching was used a lot in php-life when I used to do it, so it should work. On Fri, Mar 2, 2018 at 2:42 PM, Skip Montanaro wrote: > Looking to add a Flask cache (flask_cache module) for an application > which sits behind uwsgi. My Flask app will thus exist as multiple > worker processes. Can they share the same filesystem-based cache? This > is my first foray into caching in Flask, so I don't want to > immediately dive into more complex solutions like Redis or memcached > caching. > > Thx, > > Skip Montanaro > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > -------------- next part -------------- An HTML attachment was scrubbed... URL: From skip.montanaro at gmail.com Fri Mar 2 11:14:13 2018 From: skip.montanaro at gmail.com (Skip Montanaro) Date: Fri, 2 Mar 2018 10:14:13 -0600 Subject: [Flask] Is filesystem cache safe between processes? In-Reply-To: <1B7C5BF7-DED2-4789-A146-22E8395407CD@unterwaditzer.net> References: <1B7C5BF7-DED2-4789-A146-22E8395407CD@unterwaditzer.net> Message-ID: > They can. Filesystem can be used concurrently. Thanks, I spent a bit of time looking at the underlying werkzeug.contrib.cache code and concluded the same thing. Regarding writes, when writing a key/value pair to the cache, it uses tempfile.mkstemp() to write the data. The chance of collisions at that level should be quite small. Then it calls os.rename() to move the result into place. That's an atomic operation, so the worst that can happen is that multiple workers write the same key/value pair, then overwrite each other's work during the rename. That I can certainly live with. Manual inspection of the logs since restart suggests the cache is performing as intended. Thx, Skip From rbw at vault13.org Mon Mar 5 08:54:13 2018 From: rbw at vault13.org (Robert Wikman) Date: Mon, 5 Mar 2018 14:54:13 +0100 Subject: [Flask] Flask extensions registry Message-ID: Hello, I've created a Flask extension and would like to have it added to Flask extension registry. The guide on how to properly create a Flask extension is great and all, but I can't find a good way to actually submit the extension for approval. Did some asking on IRC and got some feedback on things to improve in the project's readme and the name of a guy who's sometimes managing the registry.. but he never seems to be online. I think it would be pretty nice with a web form for submitting new extensions, and I can build that if the Flask team think its a good idea. Anyway, here's the repo of the extension: https://github.com/rbw0/flask-snow Regards, Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From davidism at gmail.com Mon Mar 5 09:28:01 2018 From: davidism at gmail.com (David Lord) Date: Mon, 5 Mar 2018 06:28:01 -0800 Subject: [Flask] Flask extensions registry In-Reply-To: References: Message-ID: You can submit a pull request here: https://github.com/pallets/flask-website/pulls. I'm rewriting the registry for our Lektor-based website (https://github.com/pallets/flask/issues/1775), so I can't guaranteed if and when the PR will be merged or deployed, but it will at least keep me aware of it. On Mon, Mar 5, 2018 at 5:54 AM, Robert Wikman wrote: > Hello, > > I've created a Flask extension and would like to have it added to Flask > extension registry. > The guide on how to properly create a Flask extension is great and all, > but I can't find a good way to actually submit the extension for approval. > Did some asking on IRC and got some feedback on things to improve in the > project's readme and the name of a guy who's sometimes managing the > registry.. but he never seems to be online. > > I think it would be pretty nice with a web form for submitting new > extensions, and I can build that if the Flask team think its a good idea. > > Anyway, here's the repo of the extension: > https://github.com/rbw0/flask-snow > > Regards, > Robert > > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From skip.montanaro at gmail.com Wed Mar 7 13:01:31 2018 From: skip.montanaro at gmail.com (Skip Montanaro) Date: Wed, 7 Mar 2018 12:01:31 -0600 Subject: [Flask] Flask Cache? Message-ID: Is Flask Cache still actively maintained? https://pythonhosted.org/Flask-Cache/ If not, is there a newer alternative, perhaps something as easy to use from Flask-behind-uwsgi? Thanks, Skip Montanaro From gergely at polonkai.eu Wed Mar 7 13:04:04 2018 From: gergely at polonkai.eu (Gergely Polonkai) Date: Wed, 07 Mar 2018 18:04:04 +0000 Subject: [Flask] Flask Cache? In-Reply-To: References: Message-ID: Flask-Cache is not maintained any more, try Flask-Caching instead. On Wed, Mar 7, 2018, 19:02 Skip Montanaro wrote: > Is Flask Cache still actively maintained? > > https://pythonhosted.org/Flask-Cache/ > > If not, is there a newer alternative, perhaps something as easy to use > from Flask-behind-uwsgi? > > Thanks, > > Skip Montanaro > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > -------------- next part -------------- An HTML attachment was scrubbed... URL: From skip.montanaro at gmail.com Wed Mar 7 13:38:45 2018 From: skip.montanaro at gmail.com (Skip Montanaro) Date: Wed, 7 Mar 2018 12:38:45 -0600 Subject: [Flask] Flask Cache? In-Reply-To: References: Message-ID: Thanks. LGTM... Skip On Wed, Mar 7, 2018 at 12:04 PM, Gergely Polonkai wrote: > Flask-Cache is not maintained any more, try Flask-Caching instead. > > On Wed, Mar 7, 2018, 19:02 Skip Montanaro wrote: >> >> Is Flask Cache still actively maintained? >> >> https://pythonhosted.org/Flask-Cache/ >> >> If not, is there a newer alternative, perhaps something as easy to use >> from Flask-behind-uwsgi? >> >> Thanks, >> >> Skip Montanaro >> _______________________________________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/mailman/listinfo/flask From tengli at vt.edu Wed Mar 7 18:08:11 2018 From: tengli at vt.edu (Teng Li) Date: Wed, 7 Mar 2018 18:08:11 -0500 Subject: [Flask] Disconnect with the server after each request Message-ID: Hey guys, Sorry to bother. I'm using flask and restful to build a server for the communication of several robots. They send data to the server and store in MongoDB. However, I found that these robots disconnect with the server after every request, but I need them connected all the time. Is someone know how to fix this issue? I will be really appreciated it! Thank you, Kevin Virus-free. www.avast.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> -------------- next part -------------- An HTML attachment was scrubbed... URL: From riteshn at gmail.com Wed Mar 7 19:41:28 2018 From: riteshn at gmail.com (Ritesh Nadhani) Date: Wed, 7 Mar 2018 16:41:28 -0800 Subject: [Flask] Disconnect with the server after each request In-Reply-To: References: Message-ID: Hello Teng This is not really a Flask problem. This is in general how HTTP/1 works in request/response format. Once the results for a request is done, the client disconnects. If you want persistent connection, then you will have to update the robot code to use something like websockets. On Wed, Mar 7, 2018 at 3:08 PM, Teng Li wrote: > Hey guys, > > Sorry to bother. I'm using flask and restful to build a server for the > communication of several robots. They send data to the server and store in > MongoDB. However, I found that these robots disconnect with the server > after every request, but I need them connected all the time. Is someone > know how to fix this issue? I will be really appreciated it! > > Thank you, > > Kevin > > > > Virus-free. > www.avast.com > > <#m_7776288787103621951_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > > -- Ritesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From gergely at polonkai.eu Wed Mar 7 23:58:28 2018 From: gergely at polonkai.eu (Gergely Polonkai) Date: Thu, 08 Mar 2018 04:58:28 +0000 Subject: [Flask] Disconnect with the server after each request In-Reply-To: References: Message-ID: ? or HTTP/2, or to keep the connection alive (HTTP/1.1 is also capable of this, although a bit less efficient than HTTP/2). On Thu, Mar 8, 2018, 01:41 Ritesh Nadhani wrote: > Hello Teng > > This is not really a Flask problem. This is in general how HTTP/1 works in > request/response format. Once the results for a request is done, the client > disconnects. > > If you want persistent connection, then you will have to update the robot > code to use something like websockets. > > On Wed, Mar 7, 2018 at 3:08 PM, Teng Li wrote: > >> Hey guys, >> >> Sorry to bother. I'm using flask and restful to build a server for the >> communication of several robots. They send data to the server and store in >> MongoDB. However, I found that these robots disconnect with the server >> after every request, but I need them connected all the time. Is someone >> know how to fix this issue? I will be really appreciated it! >> >> Thank you, >> >> Kevin >> >> >> >> Virus-free. >> www.avast.com >> >> <#m_-2988382979265588528_m_7776288787103621951_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >> >> _______________________________________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/mailman/listinfo/flask >> >> > > > -- > Ritesh > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rbw at vault13.org Fri Mar 9 22:57:39 2018 From: rbw at vault13.org (Robert Wikman) Date: Sat, 10 Mar 2018 04:57:39 +0100 Subject: [Flask] Flask-Journey Message-ID: Heyo! I've created a small, but (imo) powerful extension called Flask-Journey. It provides a clean, declarative way of importing and managing blueprints and creating routes. Additionally, it also enables simple and consistent methods of (de)serialization and validation in blueprint enabled views with the help of a flask.Blueprint compatible route decorator and Marshmallow. The components (blueprint management) and the route decorator doesn't need to be used together., both work fine solo with vanilla blueprints. I'm not 100% done yet, currently working on documentation and tests, but I thought some of you might be interested testing it out. You may check it out here: https://github.com/rbw0/flask-journey -- Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From rbw at vault13.org Sun Mar 11 11:55:55 2018 From: rbw at vault13.org (Robert Wikman) Date: Sun, 11 Mar 2018 16:55:55 +0100 Subject: [Flask] Flask-Journey In-Reply-To: References: Message-ID: Hello again, Sorry for spamming. Just wanted to say this extension is now complete with documentation and tests. /Robert On Sat, Mar 10, 2018 at 4:57 AM, Robert Wikman wrote: > Heyo! > > I've created a small, but (imo) powerful extension called Flask-Journey. > > It provides a clean, declarative way of importing and managing blueprints > and creating routes. Additionally, it also enables simple and consistent > methods of (de)serialization and validation in blueprint enabled views with > the help of a flask.Blueprint compatible route decorator and Marshmallow. > > The components (blueprint management) and the route decorator doesn't need > to be used together., both work fine solo with vanilla blueprints. > > I'm not 100% done yet, currently working on documentation and tests, but I > thought some of you might be interested testing it out. > > > You may check it out here: > https://github.com/rbw0/flask-journey > > -- > Robert > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From p.p.vogel at student.rug.nl Tue Mar 13 06:24:45 2018 From: p.p.vogel at student.rug.nl (Vogel, P.P.) Date: Tue, 13 Mar 2018 11:24:45 +0100 Subject: [Flask] Flask Extension: Monitoring Dashboard Message-ID: Dear Flask Developer, In this mail, we would like to present the Flask Extension that we have developed in the past ten months. This extension offers the possibility of effortlessly augmenting a Flask application with a visual dashboard presenting three types of information useful to a Flask developer. Before going into more detail, we would like to introduce ourselves. We are a team of four enthusiastic Python developers and researchers from the University of Groningen, composed of: - Thijs Klooster and Patrick Vogel: master students in computing science, and - Mircea F. Lungu and Vasilios Andrikopoulos, assistant professors To go into more detail, the Monitoring Dashboard consists of the following three main functionalities: 1. Endpoint usage and performance: Our Dashboard allows you to see which endpoints process a lot of requests and how fast. Additionally, it provides information about the evolving performance of an endpoint throughout different versions if you?re using git. 2. Endpoint test coverage: The dashboard allows you to find out which endpoints are covered by unit tests, allowing for integration with Travis for automation purposes. 3. Extra information about outliers: Outliers are requests that take much longer to process than the majority of the requests. The dashboard automatically detects that a request is an outlier and stores additional information about it (stack trace, request values, request headers, request environment). With minimal configuration (2 lines of code), the dashboard is automatically added to your existing Flask application at the /dashboard endpoint (this can be configured to another route). We would like to refer to our more advanced documentation, which can be found on this site: http://flask-monitoringdashboard.readthedocs.io/ You can find our project on Github: https://github.com/flask- dashboard/Flask-MonitoringDashboard or on PyPi: https://pypi.org/project/ Flask-MonitoringDashboard/ For a different perspective you can also read our VISSOFT 2018 paper: https://www.rug.nl/research/portal/files/48742386/vissoft.pdf We would like to know what you think of our Dashboard, and whether it would make for a useful extension for Flask? With possible augmentation, we would to improve our Monitoring Dashboard and eventually be registered as a Flask Extension in the Extensions Registry. We have already fulfilled the requirements listed on: http://flask.pocoo.org/docs/0.12/extensiondev/#approved-extensions Best Regards, Patrick Vogel Thijs Klooster Mircea F. Lungu Vasilios Andrikopoulos -------------- next part -------------- An HTML attachment was scrubbed... URL: From alejoar at gmail.com Tue Mar 13 10:41:58 2018 From: alejoar at gmail.com (Alejo Arias) Date: Tue, 13 Mar 2018 15:41:58 +0100 Subject: [Flask] Flask Extension: Monitoring Dashboard In-Reply-To: References: Message-ID: Looks interesting. I guess it's useful for smaller apps without centralized logging. Did you consider any way of profiling a cluster of servers? How bad is the overhead? A similar alternative is https://github.com/muatik/flask-profiler. Congrats on the project, keep it up. Regards, Alejo On 13 March 2018 at 11:24, Vogel, P.P. wrote: > Dear Flask Developer, > > > In this mail, we would like to present the Flask Extension that we have > developed in the past ten months. This extension offers the possibility of effortlessly > augmenting a Flask application with a visual dashboard presenting three > types of information useful to a Flask developer. > > > Before going into more detail, we would like to introduce ourselves. We > are a team of four enthusiastic Python developers and researchers from the > University of Groningen, composed of: > > - Thijs Klooster and Patrick Vogel: master students in computing science, > and > > - Mircea F. Lungu and Vasilios Andrikopoulos, assistant professors > > To go into more detail, the Monitoring Dashboard consists of the following > three main functionalities: > > 1. > > Endpoint usage and performance: Our Dashboard allows you to see which > endpoints process a lot of requests and how fast. Additionally, it provides > information about the evolving performance of an endpoint throughout > different versions if you?re using git. > 2. > > Endpoint test coverage: The dashboard allows you to find out which > endpoints are covered by unit tests, allowing for integration with Travis > for automation purposes. > 3. > > Extra information about outliers: Outliers are requests that take much > longer to process than the majority of the requests. The dashboard > automatically detects that a request is an outlier and stores additional > information about it (stack trace, request values, request headers, request > environment). > > > With minimal configuration (2 lines of code), the dashboard is > automatically added to your existing Flask application at the /dashboard > endpoint (this can be configured to another route). > > We would like to refer to our more advanced documentation, which can be > found on this site: http://flask-monitoringdashboard.readthedocs.io/ > > You can find our project on Github: https://github.com/flask-dashb > oard/Flask-MonitoringDashboard or on PyPi: https://pypi.org/project/Flask > -MonitoringDashboard/ > > For a different perspective you can also read our VISSOFT 2018 paper: > https://www.rug.nl/research/portal/files/48742386/vissoft.pdf > > We would like to know what you think of our Dashboard, and whether it > would make for a useful extension for Flask? > > > With possible augmentation, we would to improve our Monitoring Dashboard > and eventually be registered as a Flask Extension in the Extensions > Registry. We have already fulfilled the requirements listed on: > http://flask.pocoo.org/docs/0.12/extensiondev/#approved-extensions > > > Best Regards, > > Patrick Vogel > > Thijs Klooster > > Mircea F. Lungu > > Vasilios Andrikopoulos > > > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From skip.montanaro at gmail.com Tue Mar 13 11:09:54 2018 From: skip.montanaro at gmail.com (Skip Montanaro) Date: Tue, 13 Mar 2018 10:09:54 -0500 Subject: [Flask] Profile/Coverage of Flask bits behind uWSGI? Message-ID: I have a Flask app sitting behind uWSGI which I'd like to profile, but it's not clear to me where I hook into things. I found this page referencing werkzeug.contrib.profiler: http://werkzeug.pocoo.org/docs/0.14/contrib/profiler/ but my uWSGI usage is so simple that I don't explicitly create a WSGI application object (nor have I so far figured out how). I've got a Flask instance, Is there some easy way to hook into cProfile or coverage at the Flask level and just ignore uWSGI altogether? Thx, Skip Montanaro From williamjmorenor at gmail.com Tue Mar 13 12:21:34 2018 From: williamjmorenor at gmail.com (William Moreno) Date: Tue, 13 Mar 2018 10:21:34 -0600 Subject: [Flask] A good text editor to work with Flask? Message-ID: Hello all, since Flask is a clean framework to work any text editor can help to work with it, but I am curios is there is outthere some IDE or Text Editor that works fine with Flask and Jinja2 templates. The PyCharm IDE support Flask only in the paid version and for the moment and do not want to pay the license Fee because I am using Flask more like a hobby and still learning the framework. Looks like sublime text have plugings for Flask and Jinja2: Jinja2: https://packagecontrol.io/packages/Jinja2 Flask: https://packagecontrol.io/packages/Flask%20Completions But do you know any other option? Regards William Moreno Reyes http://about.me/williamjmorenor -------------- next part -------------- An HTML attachment was scrubbed... URL: From mazzei.stephen.a at gmail.com Tue Mar 13 12:26:14 2018 From: mazzei.stephen.a at gmail.com (Stephen Mazzei) Date: Tue, 13 Mar 2018 12:26:14 -0400 Subject: [Flask] A good text editor to work with Flask? In-Reply-To: References: Message-ID: William, I personally use Microsoft Visual Studio Code, has extensions for a ton of different languages, constantly being improved, and handles GIT very well. 1 person on my team at work found it, and since the rest of us have all jumped on the band wagon for it. I tried the pycharm (had a school license) and found that to cause more headaches for learning. But any open editor would work On Tue, Mar 13, 2018 at 12:21 PM, William Moreno wrote: > Hello all, since Flask is a clean framework to work any text editor can > help to work with it, but I am curios is there is outthere some IDE or Text > Editor that works fine with Flask and Jinja2 templates. > > The PyCharm IDE support Flask only in the paid version and for the moment > and do not want to pay the license Fee because I am using Flask more like a > hobby and still learning the framework. > > Looks like sublime text have plugings for Flask and Jinja2: > > Jinja2: https://packagecontrol.io/packages/Jinja2 > Flask: https://packagecontrol.io/packages/Flask%20Completions > > But do you know any other option? > > Regards > > > William Moreno Reyes > http://about.me/williamjmorenor > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From phan at rooking.co.jp Tue Mar 13 21:54:24 2018 From: phan at rooking.co.jp (Phuong Phan) Date: Wed, 14 Mar 2018 10:54:24 +0900 Subject: [Flask] A good text editor to work with Flask? In-Reply-To: References: Message-ID: Well, try Atom, you will like it. --- ????????? Phuong Phan ???? ???? E: phan at rooking.co.jp T: 03-5725-3122 U: http://www.rooking.co.jp ?153-0061 ?????????2-8-22???TD??3F --- On Wed, Mar 14, 2018 at 1:26 AM, Stephen Mazzei wrote: > William, > > I personally use Microsoft Visual Studio Code, has extensions for a ton of > different languages, constantly being improved, and handles GIT very well. > 1 person on my team at work found it, and since the rest of us have all > jumped on the band wagon for it. > > I tried the pycharm (had a school license) and found that to cause more > headaches for learning. > > But any open editor would work > > On Tue, Mar 13, 2018 at 12:21 PM, William Moreno < > williamjmorenor at gmail.com> wrote: > >> Hello all, since Flask is a clean framework to work any text editor can >> help to work with it, but I am curios is there is outthere some IDE or Text >> Editor that works fine with Flask and Jinja2 templates. >> >> The PyCharm IDE support Flask only in the paid version and for the moment >> and do not want to pay the license Fee because I am using Flask more like a >> hobby and still learning the framework. >> >> Looks like sublime text have plugings for Flask and Jinja2: >> >> Jinja2: https://packagecontrol.io/packages/Jinja2 >> Flask: https://packagecontrol.io/packages/Flask%20Completions >> >> But do you know any other option? >> >> Regards >> >> >> William Moreno Reyes >> http://about.me/williamjmorenor >> >> _______________________________________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/mailman/listinfo/flask >> >> > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff at jeffwidman.com Wed Mar 14 00:03:56 2018 From: jeff at jeffwidman.com (Jeff Widman) Date: Tue, 13 Mar 2018 21:03:56 -0700 Subject: [Flask] A good text editor to work with Flask? In-Reply-To: References: Message-ID: I tried atom for a few years, but it becomes super slow on very large git repos. One repo I work on is over 5gb and atom tries to reindex whenever the window is redrawn so I would literally be waiting minutes. I wanted to love atom, I helped maintain some extensions for it so had some blood sweat and tears into it, but I finally gave up and switched to microsoft's visual studio code and have found it more polished in many respects. If you do not work with super large repos this may not affect you. On Mar 13, 2018 6:55 PM, "Phuong Phan" wrote: > Well, try Atom, you will like it. > > --- > ????????? > Phuong Phan ???? ???? > E: phan at rooking.co.jp > T: 03-5725-3122 > U: http://www.rooking.co.jp > ?153-0061 > ?????????2-8-22???TD??3F > --- > > On Wed, Mar 14, 2018 at 1:26 AM, Stephen Mazzei < > mazzei.stephen.a at gmail.com> wrote: > >> William, >> >> I personally use Microsoft Visual Studio Code, has extensions for a ton >> of different languages, constantly being improved, and handles GIT very >> well. 1 person on my team at work found it, and since the rest of us have >> all jumped on the band wagon for it. >> >> I tried the pycharm (had a school license) and found that to cause more >> headaches for learning. >> >> But any open editor would work >> >> On Tue, Mar 13, 2018 at 12:21 PM, William Moreno < >> williamjmorenor at gmail.com> wrote: >> >>> Hello all, since Flask is a clean framework to work any text editor can >>> help to work with it, but I am curios is there is outthere some IDE or Text >>> Editor that works fine with Flask and Jinja2 templates. >>> >>> The PyCharm IDE support Flask only in the paid version and for the >>> moment and do not want to pay the license Fee because I am using Flask more >>> like a hobby and still learning the framework. >>> >>> Looks like sublime text have plugings for Flask and Jinja2: >>> >>> Jinja2: https://packagecontrol.io/packages/Jinja2 >>> Flask: https://packagecontrol.io/packages/Flask%20Completions >>> >>> But do you know any other option? >>> >>> Regards >>> >>> >>> William Moreno Reyes >>> http://about.me/williamjmorenor >>> >>> _______________________________________________ >>> Flask mailing list >>> Flask at python.org >>> https://mail.python.org/mailman/listinfo/flask >>> >>> >> >> _______________________________________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/mailman/listinfo/flask >> >> > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From linnchord at gmail.com Thu Mar 15 04:23:06 2018 From: linnchord at gmail.com (linnchord gao) Date: Thu, 15 Mar 2018 04:23:06 -0400 Subject: [Flask] A good text editor to work with Flask? In-Reply-To: References: Message-ID: Visual Code or Pycharm, nothing else. ? 2018?3?14? ? 12:04:38, Jeff Widman (jeff at jeffwidman.com) ??: I tried atom for a few years, but it becomes super slow on very large git repos. One repo I work on is over 5gb and atom tries to reindex whenever the window is redrawn so I would literally be waiting minutes. I wanted to love atom, I helped maintain some extensions for it so had some blood sweat and tears into it, but I finally gave up and switched to microsoft's visual studio code and have found it more polished in many respects. If you do not work with super large repos this may not affect you. On Mar 13, 2018 6:55 PM, "Phuong Phan" wrote: > Well, try Atom, you will like it. > > --- > ????????? > Phuong Phan ???? ???? > E: phan at rooking.co.jp > T: 03-5725-3122 > U: http://www.rooking.co.jp > ?153-0061 > ?????????2-8-22???TD??3F > --- > > On Wed, Mar 14, 2018 at 1:26 AM, Stephen Mazzei < > mazzei.stephen.a at gmail.com> wrote: > >> William, >> >> I personally use Microsoft Visual Studio Code, has extensions for a ton >> of different languages, constantly being improved, and handles GIT very >> well. 1 person on my team at work found it, and since the rest of us have >> all jumped on the band wagon for it. >> >> I tried the pycharm (had a school license) and found that to cause more >> headaches for learning. >> >> But any open editor would work >> >> On Tue, Mar 13, 2018 at 12:21 PM, William Moreno < >> williamjmorenor at gmail.com> wrote: >> >>> Hello all, since Flask is a clean framework to work any text editor can >>> help to work with it, but I am curios is there is outthere some IDE or Text >>> Editor that works fine with Flask and Jinja2 templates. >>> >>> The PyCharm IDE support Flask only in the paid version and for the >>> moment and do not want to pay the license Fee because I am using Flask more >>> like a hobby and still learning the framework. >>> >>> Looks like sublime text have plugings for Flask and Jinja2: >>> >>> Jinja2: https://packagecontrol.io/packages/Jinja2 >>> Flask: https://packagecontrol.io/packages/Flask%20Completions >>> >>> But do you know any other option? >>> >>> Regards >>> >>> >>> William Moreno Reyes >>> http://about.me/williamjmorenor >>> >>> _______________________________________________ >>> Flask mailing list >>> Flask at python.org >>> https://mail.python.org/mailman/listinfo/flask >>> >>> >> >> _______________________________________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/mailman/listinfo/flask >> >> > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > > _______________________________________________ Flask mailing list Flask at python.org https://mail.python.org/mailman/listinfo/flask -------------- next part -------------- An HTML attachment was scrubbed... URL: From joy.bhatdeep at yahoo.in Thu Mar 15 05:57:07 2018 From: joy.bhatdeep at yahoo.in (joydeep bhattacharjee) Date: Thu, 15 Mar 2018 09:57:07 +0000 (UTC) Subject: [Flask] A good text editor to work with Flask? In-Reply-To: References: Message-ID: <1846760744.1038671.1521107827048@mail.yahoo.com> VIM VIM VIM VIM VIM On Thursday, 15 March, 2018, 1:53:20 PM IST, linnchord gao wrote: Visual Code or Pycharm, nothing else. ? 2018?3?14? ? 12:04:38, Jeff Widman (jeff at jeffwidman.com) ??: I tried atom for a few years, but it becomes super slow on very large git repos. One repo I work on is over 5gb and atom tries to reindex whenever the window is redrawn so I would literally be waiting minutes. I wanted to love atom, I helped maintain some extensions for it so had some blood sweat and tears into it, but I finally gave up and switched to microsoft's visual studio code and have found it more polished in many respects. If you do not work with super large repos this may not affect you. On Mar 13, 2018 6:55 PM, "Phuong Phan" wrote: Well, try Atom, you will like it. ---?????????Phuong Phan ?????????E: phan at rooking.co.jpT: 03-5725-3122U: http://www.rooking.co.jp?153-0061?????????2-8-22???TD??3F--- On Wed, Mar 14, 2018 at 1:26 AM, StephenMazzei wrote: William, I personally useMicrosoft Visual Studio Code, has extensions for a ton of differentlanguages, constantly being improved, and handles GIT very well. 1person on my team at work found it, and since the rest of us haveall jumped on the band wagon for it. I tried thepycharm (had a school license) and found that to cause moreheadaches for learning. But any openeditor would work On Tue, Mar 13, 2018 at 12:21PM, William Moreno wrote: Hello all, since Flask is a clean framework to work any texteditor can help to work with it, but I am curios is there isoutthere some IDE or Text Editor that works fine with Flask andJinja2 templates. The PyCharm IDE support Flask only in the paid version and forthe moment and do not want to pay the license Fee because I amusing Flask more like a hobby and still learning theframework. Looks like sublime text have plugings for Flask andJinja2: Jinja2:?https://packagecontrol .io/packages/Jinja2Flask:?https://packagecontrol. io/packages/Flask%20Completion s But do you know any other option? Regards William Moreno Reyes http://about.me/williamjmoreno r ______________________________ _________________ Flask mailing list Flask at python.org https://mail.python.org/mailma n/listinfo/flask ______________________________ _________________ Flask mailing list Flask at python.org https://mail.python.org/mailma n/listinfo/flask ______________________________ _________________ Flask mailing list Flask at python.org https://mail.python.org/ mailman/listinfo/flask _______________________________________________ Flask mailing list Flask at python.org https://mail.python.org/mailman/listinfo/flask _______________________________________________ Flask mailing list Flask at python.org https://mail.python.org/mailman/listinfo/flask -------------- next part -------------- An HTML attachment was scrubbed... URL: From jrevah at gmail.com Thu Mar 15 06:51:56 2018 From: jrevah at gmail.com (Jonathan Revah) Date: Thu, 15 Mar 2018 06:51:56 -0400 Subject: [Flask] A good text editor to work with Flask? In-Reply-To: <1846760744.1038671.1521107827048@mail.yahoo.com> References: <1846760744.1038671.1521107827048@mail.yahoo.com> Message-ID: pycharm w/ vim bindings? On Thu, Mar 15, 2018 at 5:57 AM, joydeep bhattacharjee via Flask < flask at python.org> wrote: > VIM VIM VIM VIM VIM > > > On Thursday, 15 March, 2018, 1:53:20 PM IST, linnchord gao < > linnchord at gmail.com> wrote: > > > Visual Code or Pycharm, nothing else. > > > ? 2018?3?14? ? 12:04:38, Jeff Widman (jeff at jeffwidman.com) ??: > > I tried atom for a few years, but it becomes super slow on very large git > repos. One repo I work on is over 5gb and atom tries to reindex whenever > the window is redrawn so I would literally be waiting minutes. I wanted to > love atom, I helped maintain some extensions for it so had some blood sweat > and tears into it, but I finally gave up and switched to microsoft's > visual studio code and have found it more polished in many respects. If you > do not work with super large repos this may not affect you. > > On Mar 13, 2018 6:55 PM, "Phuong Phan" wrote: > > Well, try Atom, you will like it. > > --- > ????????? > Phuong Phan ???? ???? > E: phan at rooking.co.jp > T: 03-5725-3122 > U: http://www.rooking.co.jp > ?153-0061 > ?????????2-8-22???TD??3F > --- > > On Wed, Mar 14, 2018 at 1:26 AM, Stephen Mazzei < > mazzei.stephen.a at gmail.com> wrote: > > William, > > I personally use Microsoft Visual Studio Code, has extensions for a ton of > different languages, constantly being improved, and handles GIT very well. > 1 person on my team at work found it, and since the rest of us have all > jumped on the band wagon for it. > > I tried the pycharm (had a school license) and found that to cause more > headaches for learning. > > But any open editor would work > > On Tue, Mar 13, 2018 at 12:21 PM, William Moreno < > williamjmorenor at gmail.com> wrote: > > Hello all, since Flask is a clean framework to work any text editor can > help to work with it, but I am curios is there is outthere some IDE or Text > Editor that works fine with Flask and Jinja2 templates. > > The PyCharm IDE support Flask only in the paid version and for the moment > and do not want to pay the license Fee because I am using Flask more like a > hobby and still learning the framework. > > Looks like sublime text have plugings for Flask and Jinja2: > > Jinja2: https://packagecontrol .io/packages/Jinja2 > > Flask: https://packagecontrol. io/packages/Flask%20Completion s > > > But do you know any other option? > > Regards > > > William Moreno Reyes > http://about.me/williamjmoreno r > > ______________________________ _________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailma n/listinfo/flask > > > > > ______________________________ _________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailma n/listinfo/flask > > > > > ______________________________ _________________ > Flask mailing list > Flask at python.org > https://mail.python.org/ mailman/listinfo/flask > > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From paradox2005 at gmail.com Thu Mar 15 07:34:18 2018 From: paradox2005 at gmail.com (Adil Hasan) Date: Thu, 15 Mar 2018 11:34:18 +0000 Subject: [Flask] A good text editor to work with Flask? In-Reply-To: References: <1846760744.1038671.1521107827048@mail.yahoo.com> Message-ID: <20180315113417.GX19134@raddish> Hello, Are you looking for a text editor or an integrated development environment (IDE), or you'er not sure? If you think about what you want the tool to do maybe that will help with your decision. Do you want the tool out of the box to be able to handle the build, test, deployment etc? If so then maybe you want an IDE. If you're happy to keep things separate and just want an editor for editing files that is 'python-aware' (ie handles indentation and can support look-ups of functions/methods) then perhaps something like EMACS or VIM could be useful along with some plugins. For me I'm old-school. I use vim along with something called a browser to look-up library functions and pylint or flake8. I use behave for managing unit tests and I have a script to link these together. You could create a hook in git or mercurial or whatever CMS you use to run these tools when you are about to commit code. Think about what you are most productive in. for me it's vim. It used to be emacs, but I needed to switch as machines I needed to work on didn't have emacs by default, but did have vi. I have tried Atom, Eclipse, Netbeans and have found they are too opinionated for me. I guess I am not using them right. I have found these applications to be resource hungry (noticed my machine cpu load increase which was puzzling), so I switched to vim with plugins and separate tools for different tasks glued together with scripts. hth adil On Thu, Mar 15, 2018 at 06:51:56AM -0400, Jonathan Revah wrote: > pycharm w/ vim bindings? > > On Thu, Mar 15, 2018 at 5:57 AM, joydeep bhattacharjee via Flask < > flask at python.org> wrote: > > > VIM VIM VIM VIM VIM > > > > > > On Thursday, 15 March, 2018, 1:53:20 PM IST, linnchord gao < > > linnchord at gmail.com> wrote: > > > > > > Visual Code or Pycharm, nothing else. > > > > > > ? 2018?3?14? ? 12:04:38, Jeff Widman (jeff at jeffwidman.com) ??: > > > > I tried atom for a few years, but it becomes super slow on very large git > > repos. One repo I work on is over 5gb and atom tries to reindex whenever > > the window is redrawn so I would literally be waiting minutes. I wanted to > > love atom, I helped maintain some extensions for it so had some blood sweat > > and tears into it, but I finally gave up and switched to microsoft's > > visual studio code and have found it more polished in many respects. If you > > do not work with super large repos this may not affect you. > > > > On Mar 13, 2018 6:55 PM, "Phuong Phan" wrote: > > > > Well, try Atom, you will like it. > > > > --- > > ????????? > > Phuong Phan ???? ???? > > E: phan at rooking.co.jp > > T: 03-5725-3122 > > U: http://www.rooking.co.jp > > ?153-0061 > > ?????????2-8-22???TD??3F > > --- > > > > On Wed, Mar 14, 2018 at 1:26 AM, Stephen Mazzei < > > mazzei.stephen.a at gmail.com> wrote: > > > > William, > > > > I personally use Microsoft Visual Studio Code, has extensions for a ton of > > different languages, constantly being improved, and handles GIT very well. > > 1 person on my team at work found it, and since the rest of us have all > > jumped on the band wagon for it. > > > > I tried the pycharm (had a school license) and found that to cause more > > headaches for learning. > > > > But any open editor would work > > > > On Tue, Mar 13, 2018 at 12:21 PM, William Moreno < > > williamjmorenor at gmail.com> wrote: > > > > Hello all, since Flask is a clean framework to work any text editor can > > help to work with it, but I am curios is there is outthere some IDE or Text > > Editor that works fine with Flask and Jinja2 templates. > > > > The PyCharm IDE support Flask only in the paid version and for the moment > > and do not want to pay the license Fee because I am using Flask more like a > > hobby and still learning the framework. > > > > Looks like sublime text have plugings for Flask and Jinja2: > > > > Jinja2: https://packagecontrol .io/packages/Jinja2 > > > > Flask: https://packagecontrol. io/packages/Flask%20Completion s > > > > > > But do you know any other option? > > > > Regards > > > > > > William Moreno Reyes > > http://about.me/williamjmoreno r > > > > ______________________________ _________________ > > Flask mailing list > > Flask at python.org > > https://mail.python.org/mailma n/listinfo/flask > > > > > > > > > > ______________________________ _________________ > > Flask mailing list > > Flask at python.org > > https://mail.python.org/mailma n/listinfo/flask > > > > > > > > > > ______________________________ _________________ > > Flask mailing list > > Flask at python.org > > https://mail.python.org/ mailman/listinfo/flask > > > > > > _______________________________________________ > > Flask mailing list > > Flask at python.org > > https://mail.python.org/mailman/listinfo/flask > > _______________________________________________ > > Flask mailing list > > Flask at python.org > > https://mail.python.org/mailman/listinfo/flask > > > > _______________________________________________ > > Flask mailing list > > Flask at python.org > > https://mail.python.org/mailman/listinfo/flask > > > > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask From thomas.prebble at gmail.com Thu Mar 15 08:27:54 2018 From: thomas.prebble at gmail.com (Thomas Prebble) Date: Thu, 15 Mar 2018 12:27:54 +0000 Subject: [Flask] A good text editor to work with Flask? In-Reply-To: References: <1846760744.1038671.1521107827048@mail.yahoo.com> Message-ID: A PyCharm personal subscription sets you back 89USD for the first year and you can cancel after that and still use it (sans updates). If you've got an older version you may get a small discount. It's not a bad deal for what you're getting. I have yet to find another tool that replicates the overall experience and integrates as nicely as it does with the other tools I use. I suppose you could get somewhere close with Atom/VSC with the right plugins but the time investment didn't seem worth it. On Thu, 15 Mar 2018, 19:52 Jonathan Revah, wrote: > pycharm w/ vim bindings? > > On Thu, Mar 15, 2018 at 5:57 AM, joydeep bhattacharjee via Flask < > flask at python.org> wrote: > >> VIM VIM VIM VIM VIM >> >> >> On Thursday, 15 March, 2018, 1:53:20 PM IST, linnchord gao < >> linnchord at gmail.com> wrote: >> >> >> Visual Code or Pycharm, nothing else. >> >> >> ? 2018?3?14? ? 12:04:38, Jeff Widman (jeff at jeffwidman.com) ??: >> >> I tried atom for a few years, but it becomes super slow on very large git >> repos. One repo I work on is over 5gb and atom tries to reindex whenever >> the window is redrawn so I would literally be waiting minutes. I wanted to >> love atom, I helped maintain some extensions for it so had some blood sweat >> and tears into it, but I finally gave up and switched to microsoft's >> visual studio code and have found it more polished in many respects. If you >> do not work with super large repos this may not affect you. >> >> On Mar 13, 2018 6:55 PM, "Phuong Phan" wrote: >> >> Well, try Atom, you will like it. >> >> --- >> ????????? >> Phuong Phan ???? ???? >> E: phan at rooking.co.jp >> T: 03-5725-3122 >> U: http://www.rooking.co.jp >> ?153-0061 >> ?????????2-8-22???TD??3F >> --- >> >> On Wed, Mar 14, 2018 at 1:26 AM, Stephen Mazzei < >> mazzei.stephen.a at gmail.com> wrote: >> >> William, >> >> I personally use Microsoft Visual Studio Code, has extensions for a ton >> of different languages, constantly being improved, and handles GIT very >> well. 1 person on my team at work found it, and since the rest of us have >> all jumped on the band wagon for it. >> >> I tried the pycharm (had a school license) and found that to cause more >> headaches for learning. >> >> But any open editor would work >> >> On Tue, Mar 13, 2018 at 12:21 PM, William Moreno < >> williamjmorenor at gmail.com> wrote: >> >> Hello all, since Flask is a clean framework to work any text editor can >> help to work with it, but I am curios is there is outthere some IDE or Text >> Editor that works fine with Flask and Jinja2 templates. >> >> The PyCharm IDE support Flask only in the paid version and for the moment >> and do not want to pay the license Fee because I am using Flask more like a >> hobby and still learning the framework. >> >> Looks like sublime text have plugings for Flask and Jinja2: >> >> Jinja2: https://packagecontrol .io/packages/Jinja2 >> >> Flask: https://packagecontrol. io/packages/Flask%20Completion s >> >> >> But do you know any other option? >> >> Regards >> >> >> William Moreno Reyes >> http://about.me/williamjmoreno r >> >> ______________________________ _________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/mailma n/listinfo/flask >> >> >> >> >> ______________________________ _________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/mailma n/listinfo/flask >> >> >> >> >> ______________________________ _________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/ mailman/listinfo/flask >> >> >> _______________________________________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/mailman/listinfo/flask >> _______________________________________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/mailman/listinfo/flask >> >> _______________________________________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/mailman/listinfo/flask >> >> > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > -------------- next part -------------- An HTML attachment was scrubbed... URL: From romano.muller at gmail.com Thu Mar 15 08:37:00 2018 From: romano.muller at gmail.com (Bruno Romano Muller) Date: Thu, 15 Mar 2018 09:37:00 -0300 Subject: [Flask] A good text editor to work with Flask? In-Reply-To: <20180315113417.GX19134@raddish> References: <1846760744.1038671.1521107827048@mail.yahoo.com> <20180315113417.GX19134@raddish> Message-ID: Hi, I use professional pycharm , and it works very well, I had to buy it, but it is one of my favorite IDE. Some of great feature pycharm has, - Works great with git or github, I havent used mercurial, subversion, cvs plugins, but they are native. - Remote debug works really nice, including deploy and SSH access. - When you are debuging pycharm (at least professional) has inspect variable, change between threads, see stack trace, evaluation, you can have a python console attached to a debug, and test some codes. - It is really fast and smooth, it has never freezed for me. - Editing code: Autocomplete and code navigation work really great. - Pycharm also has some plugins for jinja, and it helps a lot, navigating between files, python function to html code and so on. - it also has support for SQL, CSS, html and JS. I work with some data science project too, and Pycharm helps a lot with it. 2018-03-15 8:34 GMT-03:00 Adil Hasan : > Hello, > > Are you looking for a text editor or an integrated development > environment (IDE), or you'er not sure? > > If you think about what you want the tool to do maybe that will help > with your decision. Do you want the tool out of the box to be able > to handle the build, test, deployment etc? If so then maybe you want > an IDE. > > If you're happy to keep things separate and just want an editor for > editing files that is 'python-aware' (ie handles indentation and can > support look-ups of functions/methods) then perhaps something like > EMACS or VIM could be useful along with some plugins. > > For me I'm old-school. I use vim along with something called a browser > to look-up library functions and pylint or flake8. I use behave for > managing unit tests and I have a script to link these together. > You could create a hook in git or mercurial or whatever CMS you use to > run these tools when you are about to commit code. > > Think about what you are most productive in. for me it's vim. It used > to be emacs, but I needed to switch as machines I needed to work on > didn't have emacs by default, but did have vi. > > I have tried Atom, Eclipse, Netbeans and have found they are too > opinionated for me. I guess > I am not using them right. I have found these applications to be > resource hungry (noticed my machine cpu load increase which was > puzzling), so I switched to vim with plugins and separate tools for > different tasks glued together with scripts. > > hth > adil > > > On Thu, Mar 15, 2018 at 06:51:56AM -0400, Jonathan Revah wrote: > > pycharm w/ vim bindings? > > > > On Thu, Mar 15, 2018 at 5:57 AM, joydeep bhattacharjee via Flask < > > flask at python.org> wrote: > > > > > VIM VIM VIM VIM VIM > > > > > > > > > On Thursday, 15 March, 2018, 1:53:20 PM IST, linnchord gao < > > > linnchord at gmail.com> wrote: > > > > > > > > > Visual Code or Pycharm, nothing else. > > > > > > > > > ? 2018?3?14? ? 12:04:38, Jeff Widman (jeff at jeffwidman.com) ??: > > > > > > I tried atom for a few years, but it becomes super slow on very large > git > > > repos. One repo I work on is over 5gb and atom tries to reindex > whenever > > > the window is redrawn so I would literally be waiting minutes. I > wanted to > > > love atom, I helped maintain some extensions for it so had some blood > sweat > > > and tears into it, but I finally gave up and switched to microsoft's > > > visual studio code and have found it more polished in many respects. > If you > > > do not work with super large repos this may not affect you. > > > > > > On Mar 13, 2018 6:55 PM, "Phuong Phan" wrote: > > > > > > Well, try Atom, you will like it. > > > > > > --- > > > ????????? > > > Phuong Phan ???? ???? > > > E: phan at rooking.co.jp > > > T: 03-5725-3122 > > > U: http://www.rooking.co.jp > > > ?153-0061 > > > ?????????2-8-22???TD??3F > > > --- > > > > > > On Wed, Mar 14, 2018 at 1:26 AM, Stephen Mazzei < > > > mazzei.stephen.a at gmail.com> wrote: > > > > > > William, > > > > > > I personally use Microsoft Visual Studio Code, has extensions for a > ton of > > > different languages, constantly being improved, and handles GIT very > well. > > > 1 person on my team at work found it, and since the rest of us have all > > > jumped on the band wagon for it. > > > > > > I tried the pycharm (had a school license) and found that to cause more > > > headaches for learning. > > > > > > But any open editor would work > > > > > > On Tue, Mar 13, 2018 at 12:21 PM, William Moreno < > > > williamjmorenor at gmail.com> wrote: > > > > > > Hello all, since Flask is a clean framework to work any text editor can > > > help to work with it, but I am curios is there is outthere some IDE or > Text > > > Editor that works fine with Flask and Jinja2 templates. > > > > > > The PyCharm IDE support Flask only in the paid version and for the > moment > > > and do not want to pay the license Fee because I am using Flask more > like a > > > hobby and still learning the framework. > > > > > > Looks like sublime text have plugings for Flask and Jinja2: > > > > > > Jinja2: https://packagecontrol .io/packages/Jinja2 > > > > > > Flask: https://packagecontrol. io/packages/Flask%20Completion s > > > > > > > > > But do you know any other option? > > > > > > Regards > > > > > > > > > William Moreno Reyes > > > http://about.me/williamjmoreno r > > > > > > ______________________________ _________________ > > > Flask mailing list > > > Flask at python.org > > > https://mail.python.org/mailma n/listinfo/flask > > > > > > > > > > > > > > > ______________________________ _________________ > > > Flask mailing list > > > Flask at python.org > > > https://mail.python.org/mailma n/listinfo/flask > > > > > > > > > > > > > > > ______________________________ _________________ > > > Flask mailing list > > > Flask at python.org > > > https://mail.python.org/ mailman/listinfo/flask > > > > > > > > > _______________________________________________ > > > Flask mailing list > > > Flask at python.org > > > https://mail.python.org/mailman/listinfo/flask > > > _______________________________________________ > > > Flask mailing list > > > Flask at python.org > > > https://mail.python.org/mailman/listinfo/flask > > > > > > _______________________________________________ > > > Flask mailing list > > > Flask at python.org > > > https://mail.python.org/mailman/listinfo/flask > > > > > > > > > _______________________________________________ > > Flask mailing list > > Flask at python.org > > https://mail.python.org/mailman/listinfo/flask > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashfaqsolangi at gmail.com Thu Mar 15 08:38:26 2018 From: ashfaqsolangi at gmail.com (Ashfaq Ahmed) Date: Thu, 15 Mar 2018 16:38:26 +0400 Subject: [Flask] A good text editor to work with Flask? In-Reply-To: References: <1846760744.1038671.1521107827048@mail.yahoo.com> <20180315113417.GX19134@raddish> Message-ID: PyCharm is the best one, and Atom is also good one if you want just lite one editor. On Thu, Mar 15, 2018 at 4:37 PM, Bruno Romano Muller < romano.muller at gmail.com> wrote: > Hi, > > I use professional pycharm , and it works very well, I had to buy it, but > it is one of my favorite IDE. > > Some of great feature pycharm has, > - Works great with git or github, I havent used mercurial, subversion, cvs > plugins, but they are native. > - Remote debug works really nice, including deploy and SSH access. > - When you are debuging pycharm (at least professional) has inspect > variable, change between threads, see stack trace, evaluation, you can have > a python console attached to a debug, and test some codes. > - It is really fast and smooth, it has never freezed for me. > - Editing code: Autocomplete and code navigation work really great. > - Pycharm also has some plugins for jinja, and it helps a lot, navigating > between files, python function to html code and so on. > - it also has support for SQL, CSS, html and JS. > > I work with some data science project too, and Pycharm helps a lot with it. > > > > > 2018-03-15 8:34 GMT-03:00 Adil Hasan : > >> Hello, >> >> Are you looking for a text editor or an integrated development >> environment (IDE), or you'er not sure? >> >> If you think about what you want the tool to do maybe that will help >> with your decision. Do you want the tool out of the box to be able >> to handle the build, test, deployment etc? If so then maybe you want >> an IDE. >> >> If you're happy to keep things separate and just want an editor for >> editing files that is 'python-aware' (ie handles indentation and can >> support look-ups of functions/methods) then perhaps something like >> EMACS or VIM could be useful along with some plugins. >> >> For me I'm old-school. I use vim along with something called a browser >> to look-up library functions and pylint or flake8. I use behave for >> managing unit tests and I have a script to link these together. >> You could create a hook in git or mercurial or whatever CMS you use to >> run these tools when you are about to commit code. >> >> Think about what you are most productive in. for me it's vim. It used >> to be emacs, but I needed to switch as machines I needed to work on >> didn't have emacs by default, but did have vi. >> >> I have tried Atom, Eclipse, Netbeans and have found they are too >> opinionated for me. I guess >> I am not using them right. I have found these applications to be >> resource hungry (noticed my machine cpu load increase which was >> puzzling), so I switched to vim with plugins and separate tools for >> different tasks glued together with scripts. >> >> hth >> adil >> >> >> >> On Thu, Mar 15, 2018 at 06:51:56AM -0400, Jonathan Revah wrote: >> > pycharm w/ vim bindings? >> > >> > On Thu, Mar 15, 2018 at 5:57 AM, joydeep bhattacharjee via Flask < >> > flask at python.org> wrote: >> > >> > > VIM VIM VIM VIM VIM >> > > >> > > >> > > On Thursday, 15 March, 2018, 1:53:20 PM IST, linnchord gao < >> > > linnchord at gmail.com> wrote: >> > > >> > > >> > > Visual Code or Pycharm, nothing else. >> > > >> > > >> > > ? 2018?3?14? ? 12:04:38, Jeff Widman (jeff at jeffwidman.com) ??: >> > > >> > > I tried atom for a few years, but it becomes super slow on very large >> git >> > > repos. One repo I work on is over 5gb and atom tries to reindex >> whenever >> > > the window is redrawn so I would literally be waiting minutes. I >> wanted to >> > > love atom, I helped maintain some extensions for it so had some blood >> sweat >> > > and tears into it, but I finally gave up and switched to microsoft's >> > > visual studio code and have found it more polished in many respects. >> If you >> > > do not work with super large repos this may not affect you. >> > > >> > > On Mar 13, 2018 6:55 PM, "Phuong Phan" wrote: >> > > >> > > Well, try Atom, you will like it. >> > > >> > > --- >> > > ????????? >> > > Phuong Phan ???? ???? >> > > E: phan at rooking.co.jp >> > > T: 03-5725-3122 >> > > U: http://www.rooking.co.jp >> > > ?153-0061 >> > > ?????????2-8-22???TD??3F >> > > --- >> > > >> > > On Wed, Mar 14, 2018 at 1:26 AM, Stephen Mazzei < >> > > mazzei.stephen.a at gmail.com> wrote: >> > > >> > > William, >> > > >> > > I personally use Microsoft Visual Studio Code, has extensions for a >> ton of >> > > different languages, constantly being improved, and handles GIT very >> well. >> > > 1 person on my team at work found it, and since the rest of us have >> all >> > > jumped on the band wagon for it. >> > > >> > > I tried the pycharm (had a school license) and found that to cause >> more >> > > headaches for learning. >> > > >> > > But any open editor would work >> > > >> > > On Tue, Mar 13, 2018 at 12:21 PM, William Moreno < >> > > williamjmorenor at gmail.com> wrote: >> > > >> > > Hello all, since Flask is a clean framework to work any text editor >> can >> > > help to work with it, but I am curios is there is outthere some IDE >> or Text >> > > Editor that works fine with Flask and Jinja2 templates. >> > > >> > > The PyCharm IDE support Flask only in the paid version and for the >> moment >> > > and do not want to pay the license Fee because I am using Flask more >> like a >> > > hobby and still learning the framework. >> > > >> > > Looks like sublime text have plugings for Flask and Jinja2: >> > > >> > > Jinja2: https://packagecontrol .io/packages/Jinja2 >> > > >> > > Flask: https://packagecontrol. io/packages/Flask%20Completion s >> > > >> > > >> > > But do you know any other option? >> > > >> > > Regards >> > > >> > > >> > > William Moreno Reyes >> > > http://about.me/williamjmoreno r >> > > >> > > ______________________________ _________________ >> > > Flask mailing list >> > > Flask at python.org >> > > https://mail.python.org/mailma n/listinfo/flask >> > > >> > > >> > > >> > > >> > > ______________________________ _________________ >> > > Flask mailing list >> > > Flask at python.org >> > > https://mail.python.org/mailma n/listinfo/flask >> > > >> > > >> > > >> > > >> > > ______________________________ _________________ >> > > Flask mailing list >> > > Flask at python.org >> > > https://mail.python.org/ mailman/listinfo/flask >> > > >> > > >> > > _______________________________________________ >> > > Flask mailing list >> > > Flask at python.org >> > > https://mail.python.org/mailman/listinfo/flask >> > > _______________________________________________ >> > > Flask mailing list >> > > Flask at python.org >> > > https://mail.python.org/mailman/listinfo/flask >> > > >> > > _______________________________________________ >> > > Flask mailing list >> > > Flask at python.org >> > > https://mail.python.org/mailman/listinfo/flask >> > > >> > > >> >> > _______________________________________________ >> > Flask mailing list >> > Flask at python.org >> > https://mail.python.org/mailman/listinfo/flask >> >> _______________________________________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/mailman/listinfo/flask >> > > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > > -- Regards Ashfaq Ahmed Senior Software Engineer -------------- next part -------------- An HTML attachment was scrubbed... URL: From wil at pixar.com Thu Mar 15 18:57:12 2018 From: wil at pixar.com (Wil Phan) Date: Thu, 15 Mar 2018 15:57:12 -0700 Subject: [Flask] HTML content gets cut off Message-ID: Hello everyone, I'm trying to run Flask with Apache CGI on Windows but it won't load all the HTML content. It misses the last few-to-several lines. Apache CGI alone (no Flask involved) has no problems. Testing Flask using its internal web server and the same Python script works fine too. The HTML output is pretty small, just about one screenful. When I try to output just a tiny bit of HTML it still gets cut off. The CSS is cut off too. I tried stripping almost all the HTML and code out of the template to a bare minimum but the results were the same. Sending HTML directly from the Python script (without using the template) has the same results. I'm running Windows 10, Apache 2.4.29, Python 2.7.13, Flask 0.12.2. There are no Apache errors. The Flask web server has no errors either when I'm using that to test, but that's expected since all the HTML is sent to the browser in this case. I'm attaching a stripped down version of the scripts, cgi, template, and css files (which I tested to have the same results with HTML getting cut off). Does anyone have any ideas on this? Thanks in advanced for taking a look, wil PS. I'm new to Flask so my apologies if there's a better place to post this. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test.zip Type: application/x-zip-compressed Size: 2513 bytes Desc: not available URL: From mazzei.stephen.a at gmail.com Thu Mar 15 19:26:24 2018 From: mazzei.stephen.a at gmail.com (Stephen Mazzei) Date: Thu, 15 Mar 2018 19:26:24 -0400 Subject: [Flask] HTML content gets cut off In-Reply-To: References: Message-ID: Are you setting your data as a session variable then passing it? On Mar 15, 2018 6:58 PM, "Wil Phan" wrote: > Hello everyone, > > I'm trying to run Flask with Apache CGI on Windows but it won't load all > the HTML content. It misses the last few-to-several lines. Apache CGI > alone (no Flask involved) has no problems. Testing Flask using its > internal web server and the same Python script works fine too. > > The HTML output is pretty small, just about one screenful. When I try to > output just a tiny bit of HTML it still gets cut off. The CSS is cut off > too. I tried stripping almost all the HTML and code out of the template to > a bare minimum but the results were the same. Sending HTML directly from > the Python script (without using the template) has the same results. > > I'm running Windows 10, Apache 2.4.29, Python 2.7.13, Flask 0.12.2. There > are no Apache errors. The Flask web server has no errors either when I'm > using that to test, but that's expected since all the HTML is sent to the > browser in this case. I'm attaching a stripped down version of the > scripts, cgi, template, and css files (which I tested to have the same > results with HTML getting cut off). > > Does anyone have any ideas on this? > > Thanks in advanced for taking a look, > wil > > > PS. I'm new to Flask so my apologies if there's a better place to post > this. > > > > > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wil at pixar.com Thu Mar 15 19:39:34 2018 From: wil at pixar.com (Wil Phan) Date: Thu, 15 Mar 2018 16:39:34 -0700 Subject: [Flask] HTML content gets cut off In-Reply-To: References: Message-ID: I don't believe so, but I'm not quite sure what you mean. The HTML is grabbed by the "render_template" function and the rest is handled by CGI/Apache/Flask. On Thu, Mar 15, 2018 at 4:26 PM, Stephen Mazzei wrote: > Are you setting your data as a session variable then passing it? > > On Mar 15, 2018 6:58 PM, "Wil Phan" wrote: > >> Hello everyone, >> >> I'm trying to run Flask with Apache CGI on Windows but it won't load all >> the HTML content. It misses the last few-to-several lines. Apache CGI >> alone (no Flask involved) has no problems. Testing Flask using its >> internal web server and the same Python script works fine too. >> >> The HTML output is pretty small, just about one screenful. When I try to >> output just a tiny bit of HTML it still gets cut off. The CSS is cut off >> too. I tried stripping almost all the HTML and code out of the template to >> a bare minimum but the results were the same. Sending HTML directly from >> the Python script (without using the template) has the same results. >> >> I'm running Windows 10, Apache 2.4.29, Python 2.7.13, Flask 0.12.2. >> There are no Apache errors. The Flask web server has no errors either when >> I'm using that to test, but that's expected since all the HTML is sent to >> the browser in this case. I'm attaching a stripped down version of the >> scripts, cgi, template, and css files (which I tested to have the same >> results with HTML getting cut off). >> >> Does anyone have any ideas on this? >> >> Thanks in advanced for taking a look, >> wil >> >> >> PS. I'm new to Flask so my apologies if there's a better place to post >> this. >> >> >> >> >> >> _______________________________________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/mailman/listinfo/flask >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From mazzei.stephen.a at gmail.com Thu Mar 15 19:42:04 2018 From: mazzei.stephen.a at gmail.com (Stephen Mazzei) Date: Thu, 15 Mar 2018 19:42:04 -0400 Subject: [Flask] HTML content gets cut off In-Reply-To: References: Message-ID: Can you post your code if its not to long? On Mar 15, 2018 7:40 PM, "Wil Phan" wrote: > I don't believe so, but I'm not quite sure what you mean. The HTML is > grabbed by the "render_template" function and the rest is handled by > CGI/Apache/Flask. > > On Thu, Mar 15, 2018 at 4:26 PM, Stephen Mazzei < > mazzei.stephen.a at gmail.com> wrote: > >> Are you setting your data as a session variable then passing it? >> >> On Mar 15, 2018 6:58 PM, "Wil Phan" wrote: >> >>> Hello everyone, >>> >>> I'm trying to run Flask with Apache CGI on Windows but it won't load all >>> the HTML content. It misses the last few-to-several lines. Apache CGI >>> alone (no Flask involved) has no problems. Testing Flask using its >>> internal web server and the same Python script works fine too. >>> >>> The HTML output is pretty small, just about one screenful. When I try >>> to output just a tiny bit of HTML it still gets cut off. The CSS is cut >>> off too. I tried stripping almost all the HTML and code out of the >>> template to a bare minimum but the results were the same. Sending HTML >>> directly from the Python script (without using the template) has the same >>> results. >>> >>> I'm running Windows 10, Apache 2.4.29, Python 2.7.13, Flask 0.12.2. >>> There are no Apache errors. The Flask web server has no errors either when >>> I'm using that to test, but that's expected since all the HTML is sent to >>> the browser in this case. I'm attaching a stripped down version of the >>> scripts, cgi, template, and css files (which I tested to have the same >>> results with HTML getting cut off). >>> >>> Does anyone have any ideas on this? >>> >>> Thanks in advanced for taking a look, >>> wil >>> >>> >>> PS. I'm new to Flask so my apologies if there's a better place to post >>> this. >>> >>> >>> >>> >>> >>> _______________________________________________ >>> Flask mailing list >>> Flask at python.org >>> https://mail.python.org/mailman/listinfo/flask >>> >>> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wil at pixar.com Thu Mar 15 20:35:37 2018 From: wil at pixar.com (Wil Phan) Date: Thu, 15 Mar 2018 17:35:37 -0700 Subject: [Flask] HTML content gets cut off In-Reply-To: References: Message-ID: I attached a package of files in my original email. Did that no go through? Here it is again. On Thu, Mar 15, 2018 at 4:42 PM, Stephen Mazzei wrote: > Can you post your code if its not to long? > > On Mar 15, 2018 7:40 PM, "Wil Phan" wrote: > >> I don't believe so, but I'm not quite sure what you mean. The HTML is >> grabbed by the "render_template" function and the rest is handled by >> CGI/Apache/Flask. >> >> On Thu, Mar 15, 2018 at 4:26 PM, Stephen Mazzei < >> mazzei.stephen.a at gmail.com> wrote: >> >>> Are you setting your data as a session variable then passing it? >>> >>> On Mar 15, 2018 6:58 PM, "Wil Phan" wrote: >>> >>>> Hello everyone, >>>> >>>> I'm trying to run Flask with Apache CGI on Windows but it won't load >>>> all the HTML content. It misses the last few-to-several lines. Apache CGI >>>> alone (no Flask involved) has no problems. Testing Flask using its >>>> internal web server and the same Python script works fine too. >>>> >>>> The HTML output is pretty small, just about one screenful. When I try >>>> to output just a tiny bit of HTML it still gets cut off. The CSS is cut >>>> off too. I tried stripping almost all the HTML and code out of the >>>> template to a bare minimum but the results were the same. Sending HTML >>>> directly from the Python script (without using the template) has the same >>>> results. >>>> >>>> I'm running Windows 10, Apache 2.4.29, Python 2.7.13, Flask 0.12.2. >>>> There are no Apache errors. The Flask web server has no errors either when >>>> I'm using that to test, but that's expected since all the HTML is sent to >>>> the browser in this case. I'm attaching a stripped down version of the >>>> scripts, cgi, template, and css files (which I tested to have the same >>>> results with HTML getting cut off). >>>> >>>> Does anyone have any ideas on this? >>>> >>>> Thanks in advanced for taking a look, >>>> wil >>>> >>>> >>>> PS. I'm new to Flask so my apologies if there's a better place to post >>>> this. >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> Flask mailing list >>>> Flask at python.org >>>> https://mail.python.org/mailman/listinfo/flask >>>> >>>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test.zip Type: application/x-zip-compressed Size: 2513 bytes Desc: not available URL: From lenikmutungi at gmail.com Fri Mar 16 13:30:15 2018 From: lenikmutungi at gmail.com (Leni Kadali Mutungi) Date: Fri, 16 Mar 2018 20:30:15 +0300 Subject: [Flask] A good text editor to work with Flask? In-Reply-To: <20180315113417.GX19134@raddish> References: <1846760744.1038671.1521107827048@mail.yahoo.com> <20180315113417.GX19134@raddish> Message-ID: <40a0646b-597f-6271-4840-7879a87278c3@gmail.com> Hi Adil Could you share more details about your configurations and how you've set things up? Because I agree that most times you'd find that a computer has vi installed and it would be great to work on any machine. Also VSCode is great but it takes some time to load. On 03/15/2018 02:34 PM, Adil Hasan wrote: > Hello, > > Are you looking for a text editor or an integrated development > environment (IDE), or you'er not sure? > > If you think about what you want the tool to do maybe that will help > with your decision. Do you want the tool out of the box to be able > to handle the build, test, deployment etc? If so then maybe you want > an IDE. > > If you're happy to keep things separate and just want an editor for > editing files that is 'python-aware' (ie handles indentation and can > support look-ups of functions/methods) then perhaps something like > EMACS or VIM could be useful along with some plugins. > > For me I'm old-school. I use vim along with something called a browser > to look-up library functions and pylint or flake8. I use behave for > managing unit tests and I have a script to link these together. > You could create a hook in git or mercurial or whatever CMS you use to > run these tools when you are about to commit code. > > Think about what you are most productive in. for me it's vim. It used > to be emacs, but I needed to switch as machines I needed to work on > didn't have emacs by default, but did have vi. > > I have tried Atom, Eclipse, Netbeans and have found they are too > opinionated for me. I guess > I am not using them right. I have found these applications to be > resource hungry (noticed my machine cpu load increase which was > puzzling), so I switched to vim with plugins and separate tools for > different tasks glued together with scripts. > > hth > adil > > > On Thu, Mar 15, 2018 at 06:51:56AM -0400, Jonathan Revah wrote: >> pycharm w/ vim bindings? >> >> On Thu, Mar 15, 2018 at 5:57 AM, joydeep bhattacharjee via Flask < >> flask at python.org> wrote: >> >>> VIM VIM VIM VIM VIM >>> >>> >>> On Thursday, 15 March, 2018, 1:53:20 PM IST, linnchord gao < >>> linnchord at gmail.com> wrote: >>> >>> >>> Visual Code or Pycharm, nothing else. >>> >>> >>> ? 2018?3?14? ? 12:04:38, Jeff Widman (jeff at jeffwidman.com) ??: >>> >>> I tried atom for a few years, but it becomes super slow on very large git >>> repos. One repo I work on is over 5gb and atom tries to reindex whenever >>> the window is redrawn so I would literally be waiting minutes. I wanted to >>> love atom, I helped maintain some extensions for it so had some blood sweat >>> and tears into it, but I finally gave up and switched to microsoft's >>> visual studio code and have found it more polished in many respects. If you >>> do not work with super large repos this may not affect you. >>> >>> On Mar 13, 2018 6:55 PM, "Phuong Phan" wrote: >>> >>> Well, try Atom, you will like it. >>> >>> --- >>> ????????? >>> Phuong Phan ???? ???? >>> E: phan at rooking.co.jp >>> T: 03-5725-3122 >>> U: http://www.rooking.co.jp >>> ?153-0061 >>> ?????????2-8-22???TD??3F >>> --- >>> >>> On Wed, Mar 14, 2018 at 1:26 AM, Stephen Mazzei < >>> mazzei.stephen.a at gmail.com> wrote: >>> >>> William, >>> >>> I personally use Microsoft Visual Studio Code, has extensions for a ton of >>> different languages, constantly being improved, and handles GIT very well. >>> 1 person on my team at work found it, and since the rest of us have all >>> jumped on the band wagon for it. >>> >>> I tried the pycharm (had a school license) and found that to cause more >>> headaches for learning. >>> >>> But any open editor would work >>> >>> On Tue, Mar 13, 2018 at 12:21 PM, William Moreno < >>> williamjmorenor at gmail.com> wrote: >>> >>> Hello all, since Flask is a clean framework to work any text editor can >>> help to work with it, but I am curios is there is outthere some IDE or Text >>> Editor that works fine with Flask and Jinja2 templates. >>> >>> The PyCharm IDE support Flask only in the paid version and for the moment >>> and do not want to pay the license Fee because I am using Flask more like a >>> hobby and still learning the framework. >>> >>> Looks like sublime text have plugings for Flask and Jinja2: >>> >>> Jinja2: https://packagecontrol .io/packages/Jinja2 >>> >>> Flask: https://packagecontrol. io/packages/Flask%20Completion s >>> >>> >>> But do you know any other option? >>> >>> Regards >>> >>> >>> William Moreno Reyes >>> http://about.me/williamjmoreno r >>> >>> ______________________________ _________________ >>> Flask mailing list >>> Flask at python.org >>> https://mail.python.org/mailma n/listinfo/flask >>> >>> >>> >>> >>> ______________________________ _________________ >>> Flask mailing list >>> Flask at python.org >>> https://mail.python.org/mailma n/listinfo/flask >>> >>> >>> >>> >>> ______________________________ _________________ >>> Flask mailing list >>> Flask at python.org >>> https://mail.python.org/ mailman/listinfo/flask >>> >>> >>> _______________________________________________ >>> Flask mailing list >>> Flask at python.org >>> https://mail.python.org/mailman/listinfo/flask >>> _______________________________________________ >>> Flask mailing list >>> Flask at python.org >>> https://mail.python.org/mailman/listinfo/flask >>> >>> _______________________________________________ >>> Flask mailing list >>> Flask at python.org >>> https://mail.python.org/mailman/listinfo/flask >>> >>> >> _______________________________________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/mailman/listinfo/flask > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask -- -- Warm Regards, Leni Kadali Mutungi From sidwoodstock at gmail.com Fri Mar 16 17:12:36 2018 From: sidwoodstock at gmail.com (sidwoodstock .) Date: Fri, 16 Mar 2018 14:12:36 -0700 Subject: [Flask] Flask Digest, Vol 33, Issue 15 Message-ID: Code still doesn't seem to be coming through. Just as a wild guess--Have you tried other browsers? I've seen all sorts of odd bugs with win10's edge browser. -Scott Woodstock On Fri, Mar 16, 2018 at 9:00 AM, wrote: > Send Flask mailing list submissions to > flask at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.python.org/mailman/listinfo/flask > or, via email, send a message with subject or body 'help' to > flask-request at python.org > > You can reach the person managing the list at > flask-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Flask digest..." > > > Today's Topics: > > 1. Re: HTML content gets cut off (Stephen Mazzei) > 2. Re: HTML content gets cut off (Wil Phan) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 15 Mar 2018 19:42:04 -0400 > From: Stephen Mazzei > To: Wil Phan > Cc: flask at python.org > Subject: Re: [Flask] HTML content gets cut off > Message-ID: > mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Can you post your code if its not to long? > > On Mar 15, 2018 7:40 PM, "Wil Phan" wrote: > > > I don't believe so, but I'm not quite sure what you mean. The HTML is > > grabbed by the "render_template" function and the rest is handled by > > CGI/Apache/Flask. > > > > On Thu, Mar 15, 2018 at 4:26 PM, Stephen Mazzei < > > mazzei.stephen.a at gmail.com> wrote: > > > >> Are you setting your data as a session variable then passing it? > >> > >> On Mar 15, 2018 6:58 PM, "Wil Phan" wrote: > >> > >>> Hello everyone, > >>> > >>> I'm trying to run Flask with Apache CGI on Windows but it won't load > all > >>> the HTML content. It misses the last few-to-several lines. Apache CGI > >>> alone (no Flask involved) has no problems. Testing Flask using its > >>> internal web server and the same Python script works fine too. > >>> > >>> The HTML output is pretty small, just about one screenful. When I try > >>> to output just a tiny bit of HTML it still gets cut off. The CSS is > cut > >>> off too. I tried stripping almost all the HTML and code out of the > >>> template to a bare minimum but the results were the same. Sending HTML > >>> directly from the Python script (without using the template) has the > same > >>> results. > >>> > >>> I'm running Windows 10, Apache 2.4.29, Python 2.7.13, Flask 0.12.2. > >>> There are no Apache errors. The Flask web server has no errors either > when > >>> I'm using that to test, but that's expected since all the HTML is sent > to > >>> the browser in this case. I'm attaching a stripped down version of the > >>> scripts, cgi, template, and css files (which I tested to have the same > >>> results with HTML getting cut off). > >>> > >>> Does anyone have any ideas on this? > >>> > >>> Thanks in advanced for taking a look, > >>> wil > >>> > >>> > >>> PS. I'm new to Flask so my apologies if there's a better place to post > >>> this. > >>> > >>> > >>> > >>> > >>> > >>> _______________________________________________ > >>> Flask mailing list > >>> Flask at python.org > >>> https://mail.python.org/mailman/listinfo/flask > >>> > >>> > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: 20180315/c0c3c87a/attachment-0001.html> > > ------------------------------ > > Message: 2 > Date: Thu, 15 Mar 2018 17:35:37 -0700 > From: Wil Phan > To: Stephen Mazzei > Cc: flask at python.org > Subject: Re: [Flask] HTML content gets cut off > Message-ID: > DTsWfsew at mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > I attached a package of files in my original email. Did that no go > through? > > Here it is again. > > > > On Thu, Mar 15, 2018 at 4:42 PM, Stephen Mazzei < > mazzei.stephen.a at gmail.com> > wrote: > > > Can you post your code if its not to long? > > > > On Mar 15, 2018 7:40 PM, "Wil Phan" wrote: > > > >> I don't believe so, but I'm not quite sure what you mean. The HTML is > >> grabbed by the "render_template" function and the rest is handled by > >> CGI/Apache/Flask. > >> > >> On Thu, Mar 15, 2018 at 4:26 PM, Stephen Mazzei < > >> mazzei.stephen.a at gmail.com> wrote: > >> > >>> Are you setting your data as a session variable then passing it? > >>> > >>> On Mar 15, 2018 6:58 PM, "Wil Phan" wrote: > >>> > >>>> Hello everyone, > >>>> > >>>> I'm trying to run Flask with Apache CGI on Windows but it won't load > >>>> all the HTML content. It misses the last few-to-several lines. > Apache CGI > >>>> alone (no Flask involved) has no problems. Testing Flask using its > >>>> internal web server and the same Python script works fine too. > >>>> > >>>> The HTML output is pretty small, just about one screenful. When I try > >>>> to output just a tiny bit of HTML it still gets cut off. The CSS is > cut > >>>> off too. I tried stripping almost all the HTML and code out of the > >>>> template to a bare minimum but the results were the same. Sending > HTML > >>>> directly from the Python script (without using the template) has the > same > >>>> results. > >>>> > >>>> I'm running Windows 10, Apache 2.4.29, Python 2.7.13, Flask 0.12.2. > >>>> There are no Apache errors. The Flask web server has no errors > either when > >>>> I'm using that to test, but that's expected since all the HTML is > sent to > >>>> the browser in this case. I'm attaching a stripped down version of > the > >>>> scripts, cgi, template, and css files (which I tested to have the same > >>>> results with HTML getting cut off). > >>>> > >>>> Does anyone have any ideas on this? > >>>> > >>>> Thanks in advanced for taking a look, > >>>> wil > >>>> > >>>> > >>>> PS. I'm new to Flask so my apologies if there's a better place to > post > >>>> this. > >>>> > >>>> > >>>> > >>>> > >>>> > >>>> _______________________________________________ > >>>> Flask mailing list > >>>> Flask at python.org > >>>> https://mail.python.org/mailman/listinfo/flask > >>>> > >>>> > >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: 20180315/46c638a0/attachment-0001.html> > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: test.zip > Type: application/x-zip-compressed > Size: 2513 bytes > Desc: not available > URL: 20180315/46c638a0/attachment-0001.bin> > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > > > ------------------------------ > > End of Flask Digest, Vol 33, Issue 15 > ************************************* > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wil at pixar.com Fri Mar 16 17:26:32 2018 From: wil at pixar.com (Wil Phan) Date: Fri, 16 Mar 2018 14:26:32 -0700 Subject: [Flask] Flask Digest, Vol 33, Issue 15 In-Reply-To: References: Message-ID: Weird. Okay, here's a Dropbox link to the "test.zip" package: https://www.dropbox.com/s/4ruc3pj29ruu4jv/test.zip?dl=0 I have tried Firefox and Chrome. I don't touch the Microsoft browsers, despite running on Windows. :D On Fri, Mar 16, 2018 at 2:12 PM, sidwoodstock . wrote: > Code still doesn't seem to be coming through. > > Just as a wild guess--Have you tried other browsers? I've seen all sorts > of odd bugs with win10's edge browser. > > -Scott Woodstock > > On Fri, Mar 16, 2018 at 9:00 AM, wrote: > >> Send Flask mailing list submissions to >> flask at python.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> https://mail.python.org/mailman/listinfo/flask >> or, via email, send a message with subject or body 'help' to >> flask-request at python.org >> >> You can reach the person managing the list at >> flask-owner at python.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of Flask digest..." >> >> >> Today's Topics: >> >> 1. Re: HTML content gets cut off (Stephen Mazzei) >> 2. Re: HTML content gets cut off (Wil Phan) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Thu, 15 Mar 2018 19:42:04 -0400 >> From: Stephen Mazzei >> To: Wil Phan >> Cc: flask at python.org >> Subject: Re: [Flask] HTML content gets cut off >> Message-ID: >> > gmail.com> >> Content-Type: text/plain; charset="utf-8" >> >> Can you post your code if its not to long? >> >> On Mar 15, 2018 7:40 PM, "Wil Phan" wrote: >> >> > I don't believe so, but I'm not quite sure what you mean. The HTML is >> > grabbed by the "render_template" function and the rest is handled by >> > CGI/Apache/Flask. >> > >> > On Thu, Mar 15, 2018 at 4:26 PM, Stephen Mazzei < >> > mazzei.stephen.a at gmail.com> wrote: >> > >> >> Are you setting your data as a session variable then passing it? >> >> >> >> On Mar 15, 2018 6:58 PM, "Wil Phan" wrote: >> >> >> >>> Hello everyone, >> >>> >> >>> I'm trying to run Flask with Apache CGI on Windows but it won't load >> all >> >>> the HTML content. It misses the last few-to-several lines. Apache >> CGI >> >>> alone (no Flask involved) has no problems. Testing Flask using its >> >>> internal web server and the same Python script works fine too. >> >>> >> >>> The HTML output is pretty small, just about one screenful. When I try >> >>> to output just a tiny bit of HTML it still gets cut off. The CSS is >> cut >> >>> off too. I tried stripping almost all the HTML and code out of the >> >>> template to a bare minimum but the results were the same. Sending >> HTML >> >>> directly from the Python script (without using the template) has the >> same >> >>> results. >> >>> >> >>> I'm running Windows 10, Apache 2.4.29, Python 2.7.13, Flask 0.12.2. >> >>> There are no Apache errors. The Flask web server has no errors >> either when >> >>> I'm using that to test, but that's expected since all the HTML is >> sent to >> >>> the browser in this case. I'm attaching a stripped down version of >> the >> >>> scripts, cgi, template, and css files (which I tested to have the same >> >>> results with HTML getting cut off). >> >>> >> >>> Does anyone have any ideas on this? >> >>> >> >>> Thanks in advanced for taking a look, >> >>> wil >> >>> >> >>> >> >>> PS. I'm new to Flask so my apologies if there's a better place to >> post >> >>> this. >> >>> >> >>> >> >>> >> >>> >> >>> >> >>> _______________________________________________ >> >>> Flask mailing list >> >>> Flask at python.org >> >>> https://mail.python.org/mailman/listinfo/flask >> >>> >> >>> >> > >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: > /c0c3c87a/attachment-0001.html> >> >> ------------------------------ >> >> Message: 2 >> Date: Thu, 15 Mar 2018 17:35:37 -0700 >> From: Wil Phan >> To: Stephen Mazzei >> Cc: flask at python.org >> Subject: Re: [Flask] HTML content gets cut off >> Message-ID: >> > gmail.com> >> Content-Type: text/plain; charset="utf-8" >> >> I attached a package of files in my original email. Did that no go >> through? >> >> Here it is again. >> >> >> >> On Thu, Mar 15, 2018 at 4:42 PM, Stephen Mazzei < >> mazzei.stephen.a at gmail.com> >> wrote: >> >> > Can you post your code if its not to long? >> > >> > On Mar 15, 2018 7:40 PM, "Wil Phan" wrote: >> > >> >> I don't believe so, but I'm not quite sure what you mean. The HTML is >> >> grabbed by the "render_template" function and the rest is handled by >> >> CGI/Apache/Flask. >> >> >> >> On Thu, Mar 15, 2018 at 4:26 PM, Stephen Mazzei < >> >> mazzei.stephen.a at gmail.com> wrote: >> >> >> >>> Are you setting your data as a session variable then passing it? >> >>> >> >>> On Mar 15, 2018 6:58 PM, "Wil Phan" wrote: >> >>> >> >>>> Hello everyone, >> >>>> >> >>>> I'm trying to run Flask with Apache CGI on Windows but it won't load >> >>>> all the HTML content. It misses the last few-to-several lines. >> Apache CGI >> >>>> alone (no Flask involved) has no problems. Testing Flask using its >> >>>> internal web server and the same Python script works fine too. >> >>>> >> >>>> The HTML output is pretty small, just about one screenful. When I >> try >> >>>> to output just a tiny bit of HTML it still gets cut off. The CSS is >> cut >> >>>> off too. I tried stripping almost all the HTML and code out of the >> >>>> template to a bare minimum but the results were the same. Sending >> HTML >> >>>> directly from the Python script (without using the template) has the >> same >> >>>> results. >> >>>> >> >>>> I'm running Windows 10, Apache 2.4.29, Python 2.7.13, Flask 0.12.2. >> >>>> There are no Apache errors. The Flask web server has no errors >> either when >> >>>> I'm using that to test, but that's expected since all the HTML is >> sent to >> >>>> the browser in this case. I'm attaching a stripped down version of >> the >> >>>> scripts, cgi, template, and css files (which I tested to have the >> same >> >>>> results with HTML getting cut off). >> >>>> >> >>>> Does anyone have any ideas on this? >> >>>> >> >>>> Thanks in advanced for taking a look, >> >>>> wil >> >>>> >> >>>> >> >>>> PS. I'm new to Flask so my apologies if there's a better place to >> post >> >>>> this. >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> >> >>>> _______________________________________________ >> >>>> Flask mailing list >> >>>> Flask at python.org >> >>>> https://mail.python.org/mailman/listinfo/flask >> >>>> >> >>>> >> >> >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: > /46c638a0/attachment-0001.html> >> -------------- next part -------------- >> A non-text attachment was scrubbed... >> Name: test.zip >> Type: application/x-zip-compressed >> Size: 2513 bytes >> Desc: not available >> URL: > /46c638a0/attachment-0001.bin> >> >> ------------------------------ >> >> Subject: Digest Footer >> >> _______________________________________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/mailman/listinfo/flask >> >> >> ------------------------------ >> >> End of Flask Digest, Vol 33, Issue 15 >> ************************************* >> > > > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wil at pixar.com Fri Mar 16 17:28:31 2018 From: wil at pixar.com (Wil Phan) Date: Fri, 16 Mar 2018 14:28:31 -0700 Subject: [Flask] Flask Digest, Vol 33, Issue 15 In-Reply-To: References: Message-ID: To be clear, the results were the same on both browsers. I've had other webdev colleagues take a look on their Macs and the results were the same as well. Also, in case it helps, the stack of software are all 64bit. Thanks again everyone. And sorry about my zip file not coming through. On Fri, Mar 16, 2018 at 2:26 PM, Wil Phan wrote: > Weird. Okay, here's a Dropbox link to the "test.zip" package: > https://www.dropbox.com/s/4ruc3pj29ruu4jv/test.zip?dl=0 > > I have tried Firefox and Chrome. I don't touch the Microsoft browsers, > despite running on Windows. :D > > On Fri, Mar 16, 2018 at 2:12 PM, sidwoodstock . > wrote: > >> Code still doesn't seem to be coming through. >> >> Just as a wild guess--Have you tried other browsers? I've seen all sorts >> of odd bugs with win10's edge browser. >> >> -Scott Woodstock >> >> On Fri, Mar 16, 2018 at 9:00 AM, wrote: >> >>> Send Flask mailing list submissions to >>> flask at python.org >>> >>> To subscribe or unsubscribe via the World Wide Web, visit >>> https://mail.python.org/mailman/listinfo/flask >>> or, via email, send a message with subject or body 'help' to >>> flask-request at python.org >>> >>> You can reach the person managing the list at >>> flask-owner at python.org >>> >>> When replying, please edit your Subject line so it is more specific >>> than "Re: Contents of Flask digest..." >>> >>> >>> Today's Topics: >>> >>> 1. Re: HTML content gets cut off (Stephen Mazzei) >>> 2. Re: HTML content gets cut off (Wil Phan) >>> >>> >>> ---------------------------------------------------------------------- >>> >>> Message: 1 >>> Date: Thu, 15 Mar 2018 19:42:04 -0400 >>> From: Stephen Mazzei >>> To: Wil Phan >>> Cc: flask at python.org >>> Subject: Re: [Flask] HTML content gets cut off >>> Message-ID: >>> >> ail.com> >>> Content-Type: text/plain; charset="utf-8" >>> >>> Can you post your code if its not to long? >>> >>> On Mar 15, 2018 7:40 PM, "Wil Phan" wrote: >>> >>> > I don't believe so, but I'm not quite sure what you mean. The HTML is >>> > grabbed by the "render_template" function and the rest is handled by >>> > CGI/Apache/Flask. >>> > >>> > On Thu, Mar 15, 2018 at 4:26 PM, Stephen Mazzei < >>> > mazzei.stephen.a at gmail.com> wrote: >>> > >>> >> Are you setting your data as a session variable then passing it? >>> >> >>> >> On Mar 15, 2018 6:58 PM, "Wil Phan" wrote: >>> >> >>> >>> Hello everyone, >>> >>> >>> >>> I'm trying to run Flask with Apache CGI on Windows but it won't load >>> all >>> >>> the HTML content. It misses the last few-to-several lines. Apache >>> CGI >>> >>> alone (no Flask involved) has no problems. Testing Flask using its >>> >>> internal web server and the same Python script works fine too. >>> >>> >>> >>> The HTML output is pretty small, just about one screenful. When I >>> try >>> >>> to output just a tiny bit of HTML it still gets cut off. The CSS is >>> cut >>> >>> off too. I tried stripping almost all the HTML and code out of the >>> >>> template to a bare minimum but the results were the same. Sending >>> HTML >>> >>> directly from the Python script (without using the template) has the >>> same >>> >>> results. >>> >>> >>> >>> I'm running Windows 10, Apache 2.4.29, Python 2.7.13, Flask 0.12.2. >>> >>> There are no Apache errors. The Flask web server has no errors >>> either when >>> >>> I'm using that to test, but that's expected since all the HTML is >>> sent to >>> >>> the browser in this case. I'm attaching a stripped down version of >>> the >>> >>> scripts, cgi, template, and css files (which I tested to have the >>> same >>> >>> results with HTML getting cut off). >>> >>> >>> >>> Does anyone have any ideas on this? >>> >>> >>> >>> Thanks in advanced for taking a look, >>> >>> wil >>> >>> >>> >>> >>> >>> PS. I'm new to Flask so my apologies if there's a better place to >>> post >>> >>> this. >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> >>> Flask mailing list >>> >>> Flask at python.org >>> >>> https://mail.python.org/mailman/listinfo/flask >>> >>> >>> >>> >>> > >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: >> /c0c3c87a/attachment-0001.html> >>> >>> ------------------------------ >>> >>> Message: 2 >>> Date: Thu, 15 Mar 2018 17:35:37 -0700 >>> From: Wil Phan >>> To: Stephen Mazzei >>> Cc: flask at python.org >>> Subject: Re: [Flask] HTML content gets cut off >>> Message-ID: >>> >> ail.com> >>> Content-Type: text/plain; charset="utf-8" >>> >>> I attached a package of files in my original email. Did that no go >>> through? >>> >>> Here it is again. >>> >>> >>> >>> On Thu, Mar 15, 2018 at 4:42 PM, Stephen Mazzei < >>> mazzei.stephen.a at gmail.com> >>> wrote: >>> >>> > Can you post your code if its not to long? >>> > >>> > On Mar 15, 2018 7:40 PM, "Wil Phan" wrote: >>> > >>> >> I don't believe so, but I'm not quite sure what you mean. The HTML is >>> >> grabbed by the "render_template" function and the rest is handled by >>> >> CGI/Apache/Flask. >>> >> >>> >> On Thu, Mar 15, 2018 at 4:26 PM, Stephen Mazzei < >>> >> mazzei.stephen.a at gmail.com> wrote: >>> >> >>> >>> Are you setting your data as a session variable then passing it? >>> >>> >>> >>> On Mar 15, 2018 6:58 PM, "Wil Phan" wrote: >>> >>> >>> >>>> Hello everyone, >>> >>>> >>> >>>> I'm trying to run Flask with Apache CGI on Windows but it won't load >>> >>>> all the HTML content. It misses the last few-to-several lines. >>> Apache CGI >>> >>>> alone (no Flask involved) has no problems. Testing Flask using its >>> >>>> internal web server and the same Python script works fine too. >>> >>>> >>> >>>> The HTML output is pretty small, just about one screenful. When I >>> try >>> >>>> to output just a tiny bit of HTML it still gets cut off. The CSS >>> is cut >>> >>>> off too. I tried stripping almost all the HTML and code out of the >>> >>>> template to a bare minimum but the results were the same. Sending >>> HTML >>> >>>> directly from the Python script (without using the template) has >>> the same >>> >>>> results. >>> >>>> >>> >>>> I'm running Windows 10, Apache 2.4.29, Python 2.7.13, Flask 0.12.2. >>> >>>> There are no Apache errors. The Flask web server has no errors >>> either when >>> >>>> I'm using that to test, but that's expected since all the HTML is >>> sent to >>> >>>> the browser in this case. I'm attaching a stripped down version of >>> the >>> >>>> scripts, cgi, template, and css files (which I tested to have the >>> same >>> >>>> results with HTML getting cut off). >>> >>>> >>> >>>> Does anyone have any ideas on this? >>> >>>> >>> >>>> Thanks in advanced for taking a look, >>> >>>> wil >>> >>>> >>> >>>> >>> >>>> PS. I'm new to Flask so my apologies if there's a better place to >>> post >>> >>>> this. >>> >>>> >>> >>>> >>> >>>> >>> >>>> >>> >>>> >>> >>>> _______________________________________________ >>> >>>> Flask mailing list >>> >>>> Flask at python.org >>> >>>> https://mail.python.org/mailman/listinfo/flask >>> >>>> >>> >>>> >>> >> >>> -------------- next part -------------- >>> An HTML attachment was scrubbed... >>> URL: >> /46c638a0/attachment-0001.html> >>> -------------- next part -------------- >>> A non-text attachment was scrubbed... >>> Name: test.zip >>> Type: application/x-zip-compressed >>> Size: 2513 bytes >>> Desc: not available >>> URL: >> /46c638a0/attachment-0001.bin> >>> >>> ------------------------------ >>> >>> Subject: Digest Footer >>> >>> _______________________________________________ >>> Flask mailing list >>> Flask at python.org >>> https://mail.python.org/mailman/listinfo/flask >>> >>> >>> ------------------------------ >>> >>> End of Flask Digest, Vol 33, Issue 15 >>> ************************************* >>> >> >> >> _______________________________________________ >> Flask mailing list >> Flask at python.org >> https://mail.python.org/mailman/listinfo/flask >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lauretas at mail.com Sun Mar 18 13:33:01 2018 From: lauretas at mail.com (Laura Morales) Date: Sun, 18 Mar 2018 18:33:01 +0100 Subject: [Flask] Blueprints templates Message-ID: The documentation [1] says to use this structure for blueprint templates: yourpackage/ blueprints/ admin/ templates/ admin/ index.html __init__.py but it looks like a hack to me. Is there any flag that I can toggle, such that "/index.html" will automatically reference a blueprint without the need to create the additional folder? For example "admin/index.html" will locate the file "yourpackage/blueprints/admin/templates/index.html" [1] http://flask.pocoo.org/docs/0.12/blueprints/#templates From lauretas at mail.com Sun Mar 18 14:29:47 2018 From: lauretas at mail.com (Laura Morales) Date: Sun, 18 Mar 2018 19:29:47 +0100 Subject: [Flask] Blueprints templates In-Reply-To: <39025600-036A-43C4-807B-8D8CA89B588F@mac.com> References: <39025600-036A-43C4-807B-8D8CA89B588F@mac.com> Message-ID: Yes I'd like to divide my websites into 2 modules (blueprints), developed by two separate groups. So, each blueprint will contain its own templates, views, static assets etc. Right now I use "module-1/templates/module-1/template.html" but it looks a bit hackish. I was hoping there was a way to remove the need of the inner "module-1" folder, and have Flask instead automatically recognize that "module-1/template.html" is actually "template.html" inside "module-1/templates/". > the blueprint using templates_folder attribute. > By using this parameter, you point to the blueprint?s template directory > once, and the associated views will look in that directory. Does this solve the problem with different blueprints having a template with the same name? ? ? Sent:?Sunday, March 18, 2018 at 7:07 PM From:?"Jerry Mccreary" To:?"Laura Morales" Cc:?flask at python.org Subject:?Re: [Flask] Blueprints templates I?m not sure if this answers your question: ? The structure you reference is for project and maintenance organization, keeping blueprint assets together. Blueprints can also go in the main templates folder at root of project. ? Ex: yourpackage/ blueprints/ admin/ __init__.py models.py views.py ? templates/ ?(main templates folder) admin/ index.html blueprint2/ index.html? blueprint3/ index.html ? The subfolders are used because blueprints may have templates named the same. For example, if all the templates were in a single directory, they would need to be name without conflict. ? yourpackage/ blueprints/ etc. ? templates/ (main templates folder) admin_index.html blueprint1_index.html blueprint2_index.html blueprint3_index.html ? Also, when defining the a blueprint, the corresponding template can be defined when declaring the blueprint using templates_folder attribute. By using this parameter, you point to the blueprint?s template directory once, and the associated views will look in that directory. From jerry.mccreary at mac.com Sun Mar 18 14:44:06 2018 From: jerry.mccreary at mac.com (Jerry Mccreary) Date: Sun, 18 Mar 2018 14:44:06 -0400 Subject: [Flask] Blueprints templates In-Reply-To: References: <39025600-036A-43C4-807B-8D8CA89B588F@mac.com> Message-ID: <5BAB2907-B4CE-49D4-A82F-6C11C4F113ED@mac.com> I don?t think it is a hack, as much as it is how the operating system/python works. The Flask project has a main ?templates? folder. The convenience of blueprints it that the blueprint folder can have the same structure as the main templates folder. When a view is rendered with `render_template()`, it will first look in the blueprint?s template folder for the specified template, if doesn?t find it, then it looks in the main template folder. (If I?m wrong, someone please correct me). This is similar scenario of how python packages are referenced in a project. Your Flask app will first look in the project folder for a reference module, then, if not finding it, will look in the installed packages. Flask is not going to assume that a blueprint?s templates are in folder that happens to have the same name as the blueprint. (I?m not sure if that would be desirable to have as an automatic assumption) See where I referenced setting the template_folder parameter here: http://flask.pocoo.org/docs/0.12/blueprints/#my-first-blueprint > On Mar 18, 2018, at 2:29 PM, Laura Morales wrote: > > Yes I'd like to divide my websites into 2 modules (blueprints), developed by two separate groups. So, each blueprint will contain its own templates, views, static assets etc. > Right now I use "module-1/templates/module-1/template.html" but it looks a bit hackish. I was hoping there was a way to remove the need of the inner "module-1" folder, and have Flask instead automatically recognize that "module-1/template.html" is actually "template.html" inside "module-1/templates/". > >> the blueprint using templates_folder attribute. >> By using this parameter, you point to the blueprint?s template directory >> once, and the associated views will look in that directory. > > Does this solve the problem with different blueprints having a template with the same name? > > > > Sent: Sunday, March 18, 2018 at 7:07 PM > From: "Jerry Mccreary" > To: "Laura Morales" > Cc: flask at python.org > Subject: Re: [Flask] Blueprints templates > > I?m not sure if this answers your question: > > The structure you reference is for project and maintenance organization, keeping blueprint assets together. > Blueprints can also go in the main templates folder at root of project. > > Ex: > yourpackage/ > blueprints/ > admin/ > __init__.py > models.py > views.py > > templates/ (main templates folder) > admin/ > index.html > blueprint2/ > index.html > blueprint3/ > index.html > > > The subfolders are used because blueprints may have templates named the same. > For example, if all the templates were in a single directory, they would need to be name without conflict. > > yourpackage/ > blueprints/ > etc. > > templates/ (main templates folder) > admin_index.html > blueprint1_index.html > blueprint2_index.html > blueprint3_index.html > > Also, when defining the a blueprint, the corresponding template can be defined when declaring the blueprint using templates_folder attribute. > By using this parameter, you point to the blueprint?s template directory once, and the associated views will look in that directory. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jerry.mccreary at mac.com Sun Mar 18 14:07:53 2018 From: jerry.mccreary at mac.com (Jerry Mccreary) Date: Sun, 18 Mar 2018 14:07:53 -0400 Subject: [Flask] Blueprints templates In-Reply-To: References: Message-ID: <39025600-036A-43C4-807B-8D8CA89B588F@mac.com> I?m not sure if this answers your question: The structure you reference is for project and maintenance organization, keeping blueprint assets together. Blueprints can also go in the main templates folder at root of project. Ex: yourpackage/ blueprints/ admin/ __init__.py models.py views.py templates/ (main templates folder) admin/ index.html blueprint2/ index.html blueprint3/ index.html The subfolders are used because blueprints may have templates named the same. For example, if all the templates were in a single directory, they would need to be name without conflict. yourpackage/ blueprints/ etc. templates/ (main templates folder) admin_index.html blueprint1_index.html blueprint2_index.html blueprint3_index.html Also, when defining the a blueprint, the corresponding template can be defined when declaring the blueprint using templates_folder attribute. By using this parameter, you point to the blueprint?s template directory once, and the associated views will look in that directory. -- > On Mar 18, 2018, at 1:33 PM, Laura Morales wrote: > > The documentation [1] says to use this structure for blueprint templates: > > > yourpackage/ > blueprints/ > admin/ > templates/ > admin/ > index.html > __init__.py > > > but it looks like a hack to me. Is there any flag that I can toggle, such that "/index.html" will automatically reference a blueprint without the need to create the additional folder? For example "admin/index.html" will locate the file "yourpackage/blueprints/admin/templates/index.html" > > > [1] http://flask.pocoo.org/docs/0.12/blueprints/#templates > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask -------------- next part -------------- An HTML attachment was scrubbed... URL: From lauretas at mail.com Sun Mar 18 15:15:33 2018 From: lauretas at mail.com (Laura Morales) Date: Sun, 18 Mar 2018 20:15:33 +0100 Subject: [Flask] Blueprints templates In-Reply-To: <5BAB2907-B4CE-49D4-A82F-6C11C4F113ED@mac.com> References: <39025600-036A-43C4-807B-8D8CA89B588F@mac.com> <5BAB2907-B4CE-49D4-A82F-6C11C4F113ED@mac.com> Message-ID: > The Flask project has a main ?templates? folder. The convenience of > blueprints it that the blueprint folder can have the same structure > as the main templates folder. ?When a view is rendered with > `render_template()`, it will first look in the blueprint?s template > folder for the specified template, if doesn?t find it, then it looks > in the main template folder. I think the documentation says the opposite. First it looks in the main templates folder, and if it doesn't find it then it looks inside the blueprints folders (from the first registered up to the last one). That's why they suggest to add this extra folder in your blueprints templates directory. And that's why I think it would be nice if Flask could automatically understand what blueprint I'm talking about without creating the extra folder. From lauretas at mail.com Sun Mar 18 15:54:37 2018 From: lauretas at mail.com (Laura Morales) Date: Sun, 18 Mar 2018 20:54:37 +0100 Subject: [Flask] Blueprints templates In-Reply-To: <5BAB2907-B4CE-49D4-A82F-6C11C4F113ED@mac.com> References: <39025600-036A-43C4-807B-8D8CA89B588F@mac.com> <5BAB2907-B4CE-49D4-A82F-6C11C4F113ED@mac.com> Message-ID: I've found this old issue that's basically the same thing https://github.com/pallets/flask/issues/266 I think it would be useful to have an option to trigger this behavior. ? ? Sent:?Sunday, March 18, 2018 at 7:44 PM From:?"Jerry Mccreary" To:?"Laura Morales" Cc:?flask at python.org Subject:?Re: [Flask] Blueprints templates I don?t think it is a hack, as much as it is how the operating system/python works. ? The Flask project has a main ?templates? folder. The convenience of blueprints it that the blueprint folder can have the same structure as the main templates folder. ?When a view is rendered with `render_template()`, it will first look in the blueprint?s template folder for the specified template, if doesn?t find it, then it looks in the main template folder. (If I?m wrong, someone please correct me). ? This is similar scenario of how python packages are referenced in a project. Your Flask app will first look in the project folder for a reference module, then, if not finding it, will look in the installed packages. ? Flask is not going to assume that a blueprint?s templates are in folder that happens to have the same name as the blueprint. (I?m not sure if that would be desirable to have as an automatic assumption) ? See where I referenced setting the template_folder parameter here: http://flask.pocoo.org/docs/0.12/blueprints/#my-first-blueprint? ?? On Mar 18, 2018, at 2:29 PM, Laura Morales wrote:? Yes I'd like to divide my websites into 2 modules (blueprints), developed by two separate groups. So, each blueprint will contain its own templates, views, static assets etc. Right now I use "module-1/templates/module-1/template.html" but it looks a bit hackish. I was hoping there was a way to remove the need of the inner "module-1" folder, and have Flask instead automatically recognize that "module-1/template.html" is actually "template.html" inside "module-1/templates/". ?the blueprint using templates_folder attribute. By using this parameter, you point to the blueprint?s template directory once, and the associated views will look in that directory. Does this solve the problem with different blueprints having a template with the same name? ? ? Sent:?Sunday, March 18, 2018 at 7:07 PM From:?"Jerry Mccreary" To:?"Laura Morales" Cc:?flask at python.org[mailto:flask at python.org] Subject:?Re: [Flask] Blueprints templates I?m not sure if this answers your question: ? The structure you reference is for project and maintenance organization, keeping blueprint assets together. Blueprints can also go in the main templates folder at root of project. ? Ex: yourpackage/ blueprints/ admin/ __init__.py models.py views.py ? templates/ ?(main templates folder) admin/ index.html blueprint2/ index.html? blueprint3/ index.html ? The subfolders are used because blueprints may have templates named the same. For example, if all the templates were in a single directory, they would need to be name without conflict. ? yourpackage/ blueprints/ etc. ? templates/ (main templates folder) admin_index.html blueprint1_index.html blueprint2_index.html blueprint3_index.html ? Also, when defining the a blueprint, the corresponding template can be defined when declaring the blueprint using templates_folder attribute. By using this parameter, you point to the blueprint?s template directory once, and the associated views will look in that directory. From ybzhang2015 at gmail.com Tue Mar 20 13:14:02 2018 From: ybzhang2015 at gmail.com (Yabin Zhang) Date: Wed, 21 Mar 2018 01:14:02 +0800 Subject: [Flask] Subscribe Mail In-Reply-To: References: Message-ID: <1521565436.local-153c1d74-435c-v1.1.5-5834c99f@getmailspring.com> Sent from Mailspring (https://getmailspring.com/), the best free email app for work On Mar 20 2018, at 12:00 am, flask-request at python.org wrote: > > Send Flask mailing list submissions to > flask at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.python.org/mailman/listinfo/flask > or, via email, send a message with subject or body 'help' to > flask-request at python.org > > You can reach the person managing the list at > flask-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Flask digest..." > > > Today's Topics: > 1. Re: Blueprints templates (Laura Morales) > 2. Re: Blueprints templates (Laura Morales) > > > ---------------------------------------------------------------------- > Message: 1 > Date: Sun, 18 Mar 2018 20:15:33 +0100 > From: "Laura Morales" > To: "Jerry Mccreary" > Cc: flask at python.org > Subject: Re: [Flask] Blueprints templates > Message-ID: > > > Content-Type: text/plain; charset=UTF-8 > > The Flask project has a main ?templates? folder. The convenience of > > blueprints it that the blueprint folder can have the same structure > > as the main templates folder. ?When a view is rendered with > > `render_template()`, it will first look in the blueprint?s template > > folder for the specified template, if doesn?t find it, then it looks > > in the main template folder. > > > I think the documentation says the opposite. First it looks in the main templates folder, and if it doesn't find it then it looks inside the blueprints folders (from the first registered up to the last one). That's why they suggest to add this extra folder in your blueprints templates directory. And that's why I think it would be nice if Flask could automatically understand what blueprint I'm talking about without creating the extra folder. > > ------------------------------ > Message: 2 > Date: Sun, 18 Mar 2018 20:54:37 +0100 > From: "Laura Morales" > To: "Jerry Mccreary" > Cc: flask at python.org > Subject: Re: [Flask] Blueprints templates > Message-ID: > > > Content-Type: text/plain; charset=UTF-8 > I've found this old issue that's basically the same thing https://github.com/pallets/flask/issues/266 > I think it would be useful to have an option to trigger this behavior. > ? > ? > > Sent:?Sunday, March 18, 2018 at 7:44 PM > From:?"Jerry Mccreary" > To:?"Laura Morales" > Cc:?flask at python.org > Subject:?Re: [Flask] Blueprints templates > > I don?t think it is a hack, as much as it is how the operating system/python works. > ? > The Flask project has a main ?templates? folder. The convenience of blueprints it that the blueprint folder > can have the same structure as the main templates folder. ?When a view is rendered with `render_template()`, > it will first look in the blueprint?s template folder for the specified template, if doesn?t find it, then it looks in the main template folder. > (If I?m wrong, someone please correct me). > ? > This is similar scenario of how python packages are referenced in a project. Your Flask app will first look in the project folder for a reference module, > then, if not finding it, will look in the installed packages. > ? > Flask is not going to assume that a blueprint?s templates are in folder that happens to have the same name as the blueprint. > (I?m not sure if that would be desirable to have as an automatic assumption) > ? > See where I referenced setting the template_folder parameter here: http://flask.pocoo.org/docs/0.12/blueprints/#my-first-blueprint? > > ?? > On Mar 18, 2018, at 2:29 PM, Laura Morales wrote:? > Yes I'd like to divide my websites into 2 modules (blueprints), developed by two separate groups. So, each blueprint will contain its own templates, views, static assets etc. > Right now I use "module-1/templates/module-1/template.html" but it looks a bit hackish. I was hoping there was a way to remove the need of the inner "module-1" folder, and have Flask instead automatically recognize that "module-1/template.html" is actually "template.html" inside "module-1/templates/". > ?the blueprint using templates_folder attribute. > By using this parameter, you point to the blueprint?s template directory > once, and the associated views will look in that directory. > Does this solve the problem with different blueprints having a template with the same name? > ? > ? > > Sent:?Sunday, March 18, 2018 at 7:07 PM > From:?"Jerry Mccreary" > To:?"Laura Morales" > Cc:?flask at python.org[mailto:flask at python.org] > Subject:?Re: [Flask] Blueprints templates > > I?m not sure if this answers your question: > ? > The structure you reference is for project and maintenance organization, keeping blueprint assets together. > Blueprints can also go in the main templates folder at root of project. > ? > Ex: > yourpackage/ > blueprints/ > admin/ > __init__.py > models.py > views.py > ? > templates/ ?(main templates folder) > admin/ > index.html > blueprint2/ > index.html? > blueprint3/ > index.html > > ? > The subfolders are used because blueprints may have templates named the same. > For example, if all the templates were in a single directory, they would need to be name without conflict. > ? > yourpackage/ > blueprints/ > etc. > ? > templates/ (main templates folder) > admin_index.html > blueprint1_index.html > blueprint2_index.html > blueprint3_index.html > ? > Also, when defining the a blueprint, the corresponding template can be defined when declaring the blueprint using templates_folder attribute. > By using this parameter, you point to the blueprint?s template directory once, and the associated views will look in that directory. > > > ------------------------------ > Subject: Digest Footer > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > > > ------------------------------ > End of Flask Digest, Vol 33, Issue 19 > ************************************* > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bukhradze.b at gmail.com Wed Mar 21 14:01:35 2018 From: bukhradze.b at gmail.com (Beqa Bukhradze) Date: Wed, 21 Mar 2018 22:01:35 +0400 Subject: [Flask] Flask 2 language site with custom translations Message-ID: Hello, I am using flask translation from mongodb database with simple collection and changing language with session and also translated content with models if session language == en I will display items in English so the problem is that how not to use session storage for changing language and how to use url_prefix without babel and other additional items how to have www.mysite.com/en and www.mysite.com/ka ? can anyone help me get this done ? I have seen documentation but it has not got much info to work without Babel Babel has not got Georgian language also it is better to translate only that content which is relevant to me thanks Beka -------------- next part -------------- An HTML attachment was scrubbed... URL: From wil at pixar.com Wed Mar 21 19:32:23 2018 From: wil at pixar.com (Wil Phan) Date: Wed, 21 Mar 2018 16:32:23 -0700 Subject: [Flask] Flask Digest, Vol 33, Issue 15 In-Reply-To: References: Message-ID: I just tried the same scripts on Apache 2.4.6, RHEL 7.2, Python 2.7.5, Flask 0.12.2 and it is problem-free. If anyone has any ideas on things to try, I'd love to hear it. Otherwise, I'll just submit a bug for this issue (assuming I can). On Fri, Mar 16, 2018 at 2:28 PM, Wil Phan wrote: > To be clear, the results were the same on both browsers. I've had other > webdev colleagues take a look on their Macs and the results were the same > as well. Also, in case it helps, the stack of software are all 64bit. > > Thanks again everyone. And sorry about my zip file not coming through. > > On Fri, Mar 16, 2018 at 2:26 PM, Wil Phan wrote: > >> Weird. Okay, here's a Dropbox link to the "test.zip" package: >> https://www.dropbox.com/s/4ruc3pj29ruu4jv/test.zip?dl=0 >> >> I have tried Firefox and Chrome. I don't touch the Microsoft browsers, >> despite running on Windows. :D >> >> On Fri, Mar 16, 2018 at 2:12 PM, sidwoodstock . >> wrote: >> >>> Code still doesn't seem to be coming through. >>> >>> Just as a wild guess--Have you tried other browsers? I've seen all sorts >>> of odd bugs with win10's edge browser. >>> >>> -Scott Woodstock >>> >>> On Fri, Mar 16, 2018 at 9:00 AM, wrote: >>> >>>> Send Flask mailing list submissions to >>>> flask at python.org >>>> >>>> To subscribe or unsubscribe via the World Wide Web, visit >>>> https://mail.python.org/mailman/listinfo/flask >>>> or, via email, send a message with subject or body 'help' to >>>> flask-request at python.org >>>> >>>> You can reach the person managing the list at >>>> flask-owner at python.org >>>> >>>> When replying, please edit your Subject line so it is more specific >>>> than "Re: Contents of Flask digest..." >>>> >>>> >>>> Today's Topics: >>>> >>>> 1. Re: HTML content gets cut off (Stephen Mazzei) >>>> 2. Re: HTML content gets cut off (Wil Phan) >>>> >>>> >>>> ---------------------------------------------------------------------- >>>> >>>> Message: 1 >>>> Date: Thu, 15 Mar 2018 19:42:04 -0400 >>>> From: Stephen Mazzei >>>> To: Wil Phan >>>> Cc: flask at python.org >>>> Subject: Re: [Flask] HTML content gets cut off >>>> Message-ID: >>>> >>> ail.com> >>>> Content-Type: text/plain; charset="utf-8" >>>> >>>> Can you post your code if its not to long? >>>> >>>> On Mar 15, 2018 7:40 PM, "Wil Phan" wrote: >>>> >>>> > I don't believe so, but I'm not quite sure what you mean. The HTML is >>>> > grabbed by the "render_template" function and the rest is handled by >>>> > CGI/Apache/Flask. >>>> > >>>> > On Thu, Mar 15, 2018 at 4:26 PM, Stephen Mazzei < >>>> > mazzei.stephen.a at gmail.com> wrote: >>>> > >>>> >> Are you setting your data as a session variable then passing it? >>>> >> >>>> >> On Mar 15, 2018 6:58 PM, "Wil Phan" wrote: >>>> >> >>>> >>> Hello everyone, >>>> >>> >>>> >>> I'm trying to run Flask with Apache CGI on Windows but it won't >>>> load all >>>> >>> the HTML content. It misses the last few-to-several lines. Apache >>>> CGI >>>> >>> alone (no Flask involved) has no problems. Testing Flask using its >>>> >>> internal web server and the same Python script works fine too. >>>> >>> >>>> >>> The HTML output is pretty small, just about one screenful. When I >>>> try >>>> >>> to output just a tiny bit of HTML it still gets cut off. The CSS >>>> is cut >>>> >>> off too. I tried stripping almost all the HTML and code out of the >>>> >>> template to a bare minimum but the results were the same. Sending >>>> HTML >>>> >>> directly from the Python script (without using the template) has >>>> the same >>>> >>> results. >>>> >>> >>>> >>> I'm running Windows 10, Apache 2.4.29, Python 2.7.13, Flask 0.12.2. >>>> >>> There are no Apache errors. The Flask web server has no errors >>>> either when >>>> >>> I'm using that to test, but that's expected since all the HTML is >>>> sent to >>>> >>> the browser in this case. I'm attaching a stripped down version of >>>> the >>>> >>> scripts, cgi, template, and css files (which I tested to have the >>>> same >>>> >>> results with HTML getting cut off). >>>> >>> >>>> >>> Does anyone have any ideas on this? >>>> >>> >>>> >>> Thanks in advanced for taking a look, >>>> >>> wil >>>> >>> >>>> >>> >>>> >>> PS. I'm new to Flask so my apologies if there's a better place to >>>> post >>>> >>> this. >>>> >>> >>>> >>> >>>> >>> >>>> >>> >>>> >>> >>>> >>> _______________________________________________ >>>> >>> Flask mailing list >>>> >>> Flask at python.org >>>> >>> https://mail.python.org/mailman/listinfo/flask >>>> >>> >>>> >>> >>>> > >>>> -------------- next part -------------- >>>> An HTML attachment was scrubbed... >>>> URL: >>> /c0c3c87a/attachment-0001.html> >>>> >>>> ------------------------------ >>>> >>>> Message: 2 >>>> Date: Thu, 15 Mar 2018 17:35:37 -0700 >>>> From: Wil Phan >>>> To: Stephen Mazzei >>>> Cc: flask at python.org >>>> Subject: Re: [Flask] HTML content gets cut off >>>> Message-ID: >>>> >>> ail.com> >>>> Content-Type: text/plain; charset="utf-8" >>>> >>>> I attached a package of files in my original email. Did that no go >>>> through? >>>> >>>> Here it is again. >>>> >>>> >>>> >>>> On Thu, Mar 15, 2018 at 4:42 PM, Stephen Mazzei < >>>> mazzei.stephen.a at gmail.com> >>>> wrote: >>>> >>>> > Can you post your code if its not to long? >>>> > >>>> > On Mar 15, 2018 7:40 PM, "Wil Phan" wrote: >>>> > >>>> >> I don't believe so, but I'm not quite sure what you mean. The HTML >>>> is >>>> >> grabbed by the "render_template" function and the rest is handled by >>>> >> CGI/Apache/Flask. >>>> >> >>>> >> On Thu, Mar 15, 2018 at 4:26 PM, Stephen Mazzei < >>>> >> mazzei.stephen.a at gmail.com> wrote: >>>> >> >>>> >>> Are you setting your data as a session variable then passing it? >>>> >>> >>>> >>> On Mar 15, 2018 6:58 PM, "Wil Phan" wrote: >>>> >>> >>>> >>>> Hello everyone, >>>> >>>> >>>> >>>> I'm trying to run Flask with Apache CGI on Windows but it won't >>>> load >>>> >>>> all the HTML content. It misses the last few-to-several lines. >>>> Apache CGI >>>> >>>> alone (no Flask involved) has no problems. Testing Flask using its >>>> >>>> internal web server and the same Python script works fine too. >>>> >>>> >>>> >>>> The HTML output is pretty small, just about one screenful. When I >>>> try >>>> >>>> to output just a tiny bit of HTML it still gets cut off. The CSS >>>> is cut >>>> >>>> off too. I tried stripping almost all the HTML and code out of the >>>> >>>> template to a bare minimum but the results were the same. Sending >>>> HTML >>>> >>>> directly from the Python script (without using the template) has >>>> the same >>>> >>>> results. >>>> >>>> >>>> >>>> I'm running Windows 10, Apache 2.4.29, Python 2.7.13, Flask 0.12.2. >>>> >>>> There are no Apache errors. The Flask web server has no errors >>>> either when >>>> >>>> I'm using that to test, but that's expected since all the HTML is >>>> sent to >>>> >>>> the browser in this case. I'm attaching a stripped down version >>>> of the >>>> >>>> scripts, cgi, template, and css files (which I tested to have the >>>> same >>>> >>>> results with HTML getting cut off). >>>> >>>> >>>> >>>> Does anyone have any ideas on this? >>>> >>>> >>>> >>>> Thanks in advanced for taking a look, >>>> >>>> wil >>>> >>>> >>>> >>>> >>>> >>>> PS. I'm new to Flask so my apologies if there's a better place to >>>> post >>>> >>>> this. >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> >>>> Flask mailing list >>>> >>>> Flask at python.org >>>> >>>> https://mail.python.org/mailman/listinfo/flask >>>> >>>> >>>> >>>> >>>> >> >>>> -------------- next part -------------- >>>> An HTML attachment was scrubbed... >>>> URL: >>> /46c638a0/attachment-0001.html> >>>> -------------- next part -------------- >>>> A non-text attachment was scrubbed... >>>> Name: test.zip >>>> Type: application/x-zip-compressed >>>> Size: 2513 bytes >>>> Desc: not available >>>> URL: >>> /46c638a0/attachment-0001.bin> >>>> >>>> ------------------------------ >>>> >>>> Subject: Digest Footer >>>> >>>> _______________________________________________ >>>> Flask mailing list >>>> Flask at python.org >>>> https://mail.python.org/mailman/listinfo/flask >>>> >>>> >>>> ------------------------------ >>>> >>>> End of Flask Digest, Vol 33, Issue 15 >>>> ************************************* >>>> >>> >>> >>> _______________________________________________ >>> Flask mailing list >>> Flask at python.org >>> https://mail.python.org/mailman/listinfo/flask >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aco at miza.org Wed Mar 21 20:45:53 2018 From: aco at miza.org (Aco Strkalj) Date: Wed, 21 Mar 2018 19:45:53 -0500 Subject: [Flask] Cheat/reference sheet Message-ID: Is there a robust cheat/reference sheet for flask? If so I?d very much appreciate it if you could share it. From skip.montanaro at gmail.com Fri Mar 23 09:13:51 2018 From: skip.montanaro at gmail.com (Skip Montanaro) Date: Fri, 23 Mar 2018 08:13:51 -0500 Subject: [Flask] Consume Kafka topic in a Flask app? Message-ID: I'm used to event-driven systems where you enter a main event loop after registering a handler for another source of i/o, say gtk/gobject and its gobject.io_add(). The underlying select() or poll() call effectively does the multiplexing. How does this work when you don't have an obviously visible event loop (or in this case an obvious handle on the underlying sockets)? In my case, I'd like to have a Flask app which listens to one or more Kafka topics, computes some summary statistics, then provides them on demand. I'm sure there's a way to do it, I just haven't stumbled on it. I would kinda like to avoid placing one or the other of the major pieces in a subthread, but if that's the best way, then that's the direction I'll turn. Thx, Skip Montanaro From felixramirezreyes at gmail.com Fri Mar 23 12:49:02 2018 From: felixramirezreyes at gmail.com (Felix Ramirez) Date: Fri, 23 Mar 2018 12:49:02 -0400 Subject: [Flask] print without user intervention (automatically) Message-ID: Hi! How i print a page content automatically i render a html page without a user have not to do a click. I new in flask and python, and need some guide about. Thanks anticipated -- *Felix Ramirez.* -------------- next part -------------- An HTML attachment was scrubbed... URL: From gergely at polonkai.eu Sat Mar 24 09:03:25 2018 From: gergely at polonkai.eu (Gergely Polonkai) Date: Sat, 24 Mar 2018 13:03:25 +0000 Subject: [Flask] print without user intervention (automatically) In-Reply-To: References: Message-ID: Hello, If you mean the user presses a button on the page, and something immediately comes out of his printer, then you can?t. Printing must go through the browser?s printing mechanism, so the user can set up the printing process like landscape or portrait mode, colour or monochrome, etc. If you don?t mind all the above, you should consult some JavaScript manuals, as this is definitely not happening on the server side (where Flask operates). I recall some function like window.print() or something. Best, Gergely On Fri, Mar 23, 2018, 17:49 Felix Ramirez wrote: > Hi! > > How i print a page content automatically i render a html page without a > user have not to do a click. > > I new in flask and python, and need some guide about. > Thanks anticipated > > -- > *Felix Ramirez.* > _______________________________________________ > Flask mailing list > Flask at python.org > https://mail.python.org/mailman/listinfo/flask > -------------- next part -------------- An HTML attachment was scrubbed... URL: From post at rheijstek.nl Wed Mar 28 12:43:06 2018 From: post at rheijstek.nl (R. Heijstek) Date: Wed, 28 Mar 2018 18:43:06 +0200 Subject: [Flask] A headless PI3 with a Python3-Flask-program don't communicate through WiFi with a browser Message-ID: <1522255386167.82034.5586@webmail12> Dear all, There is a problem with a Python 3 program with Flask. I want to run this program on a Raspberry PI3 and control the PI3 only via a WiFi connection with a browser. BUT. Communication via the WIFI connection only works when there is a HDMI monitor AND / OR Ethernet is connected with the PI3!? Summarizing: PI3 connected with an HDMI monitor >> WiFi and browser communication works. Pi3 connected with Ethernet connected >> WiFi and browser communication works. (Of course) the PI3 connected with both an HDMI monitor and with Ethernet => Wifi and browser communication works. HOWEVER, the PI3 without HDMI monitor and without Ethernet >> The WiFi connection works no longer. The browser reports: "This site is not accessible". The (same) IP address of the PI3 is still present on the network. See the Python-flask program example.py import os from flask import Flask, render_template, request app = Flask(__name__) helptxt = "Information window" def b_all(): global file_int print ("b_all") helptxt = "Button " + str(file_int) templatetekst = {"help_txt" : helptxt} return render_template('main.html', **templatetekst) @app.route("/") def main(): print("(main)") templatetekst = {"help_txt" : helptxt} return render_template('main.html', **templatetekst) @app.route("/Button/0/") def b0(): global file_int file_int = 0 return b_all() @app.route("/Button/1/") def b1(): global file_int file_int = 1 return b_all() @app.route("/Button/2/") def b2(): global file_int file_int = 2 return b_all() @app.route("/Button/3/") def b3(): global file_int file_int = 3 return b_all() if __name__ == "__main__": app.run(host='0.0.0.0', port=80, debug=False, threaded=True, use_evalex=False) The HTML-file that belongs to the Flask-program example.py is main.html Flask wants this program to be located in the map "templates". 0 1 2 3 ---- {{ help_txt }} To start this program on the PI3 without a monitor, I have extended rc.local (between the lines: "fi" and "exit 0") with the line: sudo python /home/pi/Desktop/example/example.py & rc.local can be changed with the LXTerminal and the command line: sudo nano /etc/rc.local. I have tried every logical possibility I can imagine, but did not found a solution. Thanks in advance. R. Heijstek -------------- next part -------------- An HTML attachment was scrubbed... URL: