Can't download a youtube video in Heroku Production (with youtube-dl) probably a path problem
Hi everyone, so, I have this little flask app in production, everything is fine, except the download of an audio song through the youtube-dl lib.
In local everything works as intended, the download, the path and so on. But in production, I just can't download a single thing, so I thinked about that and readed my heroku logs, and I think the problem is the following ;
When I hit the download button, the file is downloaded ON my Heroku server (in my app/ fodler)
instead of the "client" computer, and I don't really know how to fix that, I've searched through google, reddit, stackoverflow etc and nothing about that.
For testing
purposes, I've found a similiar and minimalist app on github (it's not mine, [here is the link](https://github.com/swhh/python_youtube_project)) and the same problem occur, the exact error message is :
2017-01-04T14:05:19.080112+00:00 app[web.1]: Exception on / [POST]
2017-01-04T14:05:19.080122+00:00 app[web.1]: Traceback (most recent call last):
2017-01-04T14:05:19.080124+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/flask/app.py", line 1817, in wsgi_app
2017-01-04T14:05:19.080125+00:00 app[web.1]: response = self.full_dispatch_request()
2017-01-04T14:05:19.080127+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/flask/app.py", line 1477, in full_dispatch_request
2017-01-04T14:05:19.080128+00:00 app[web.1]: rv = self.handle_user_exception(e)
2017-01-04T14:05:19.080128+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/flask/app.py", line 1381, in handle_user_exception
2017-01-04T14:05:19.080129+00:00 app[web.1]: reraise(exc_type, exc_value, tb)
2017-01-04T14:05:19.080130+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
2017-01-04T14:05:19.080131+00:00 app[web.1]: raise value
2017-01-04T14:05:19.080132+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/flask/app.py", line 1475, in full_dispatch_request
2017-01-04T14:05:19.080132+00:00 app[web.1]: rv = self.dispatch_request()
2017-01-04T14:05:19.080133+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/flask/app.py", line 1461, in dispatch_request
2017-01-04T14:05:19.080135+00:00 app[web.1]: return self.view_functions[rule.endpoint](**req.view_args)
2017-01-04T14:05:19.080135+00:00 app[web.1]: File "/app/app.py", line 76, in hello
2017-01-04T14:05:19.080136+00:00 app[web.1]: with TemporaryDirectory('videos') as temp_dir:
2017-01-04T14:05:19.080137+00:00 app[web.1]: File "/app/app.py", line 25, in __enter__
2017-01-04T14:05:19.080137+00:00 app[web.1]: self.name = tempfile.mkdtemp(dir=self.directory)
2017-01-04T14:05:19.080138+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/tempfile.py", line 368, in mkdtemp
2017-01-04T14:05:19.080139+00:00 app[web.1]: _os.mkdir(file, 0o700)
2017-01-04T14:05:19.080143+00:00 app[web.1]: FileNotFoundError: [Errno 2] No such file or directory: 'videos/tmp6_i_oy_z'
So if anyone have an idea about that..I'm kind of lost, I don't find any fix and it's my first time pushing something in production.
Maybe I have to give an IP address to my path for downloading the file on the client address ?
On a side note ; Is it possible to apt get update on Heroku ? I know it's possible to apt-get install through buildpacks, but can I update some packages ?
And sorry for my english. Thanks a lot for your time.
/r/flask
https://redd.it/5m09mk
Hi everyone, so, I have this little flask app in production, everything is fine, except the download of an audio song through the youtube-dl lib.
In local everything works as intended, the download, the path and so on. But in production, I just can't download a single thing, so I thinked about that and readed my heroku logs, and I think the problem is the following ;
When I hit the download button, the file is downloaded ON my Heroku server (in my app/ fodler)
instead of the "client" computer, and I don't really know how to fix that, I've searched through google, reddit, stackoverflow etc and nothing about that.
For testing
purposes, I've found a similiar and minimalist app on github (it's not mine, [here is the link](https://github.com/swhh/python_youtube_project)) and the same problem occur, the exact error message is :
2017-01-04T14:05:19.080112+00:00 app[web.1]: Exception on / [POST]
2017-01-04T14:05:19.080122+00:00 app[web.1]: Traceback (most recent call last):
2017-01-04T14:05:19.080124+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/flask/app.py", line 1817, in wsgi_app
2017-01-04T14:05:19.080125+00:00 app[web.1]: response = self.full_dispatch_request()
2017-01-04T14:05:19.080127+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/flask/app.py", line 1477, in full_dispatch_request
2017-01-04T14:05:19.080128+00:00 app[web.1]: rv = self.handle_user_exception(e)
2017-01-04T14:05:19.080128+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/flask/app.py", line 1381, in handle_user_exception
2017-01-04T14:05:19.080129+00:00 app[web.1]: reraise(exc_type, exc_value, tb)
2017-01-04T14:05:19.080130+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/flask/_compat.py", line 33, in reraise
2017-01-04T14:05:19.080131+00:00 app[web.1]: raise value
2017-01-04T14:05:19.080132+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/flask/app.py", line 1475, in full_dispatch_request
2017-01-04T14:05:19.080132+00:00 app[web.1]: rv = self.dispatch_request()
2017-01-04T14:05:19.080133+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/site-packages/flask/app.py", line 1461, in dispatch_request
2017-01-04T14:05:19.080135+00:00 app[web.1]: return self.view_functions[rule.endpoint](**req.view_args)
2017-01-04T14:05:19.080135+00:00 app[web.1]: File "/app/app.py", line 76, in hello
2017-01-04T14:05:19.080136+00:00 app[web.1]: with TemporaryDirectory('videos') as temp_dir:
2017-01-04T14:05:19.080137+00:00 app[web.1]: File "/app/app.py", line 25, in __enter__
2017-01-04T14:05:19.080137+00:00 app[web.1]: self.name = tempfile.mkdtemp(dir=self.directory)
2017-01-04T14:05:19.080138+00:00 app[web.1]: File "/app/.heroku/python/lib/python3.5/tempfile.py", line 368, in mkdtemp
2017-01-04T14:05:19.080139+00:00 app[web.1]: _os.mkdir(file, 0o700)
2017-01-04T14:05:19.080143+00:00 app[web.1]: FileNotFoundError: [Errno 2] No such file or directory: 'videos/tmp6_i_oy_z'
So if anyone have an idea about that..I'm kind of lost, I don't find any fix and it's my first time pushing something in production.
Maybe I have to give an IP address to my path for downloading the file on the client address ?
On a side note ; Is it possible to apt get update on Heroku ? I know it's possible to apt-get install through buildpacks, but can I update some packages ?
And sorry for my english. Thanks a lot for your time.
/r/flask
https://redd.it/5m09mk
GitHub
swhh/python_youtube_project
Basic Flask app hosted on Heroku to download small youtube videos - swhh/python_youtube_project
Grumpy: Go running Python!
https://opensource.googleblog.com/2017/01/grumpy-go-running-python.html
/r/Python
https://redd.it/5m0irq
https://opensource.googleblog.com/2017/01/grumpy-go-running-python.html
/r/Python
https://redd.it/5m0irq
I built a job board/aggregator only for remote Python jobs
Hi guys,
I just launched https://www.RemotePython.com a few days ago (built in Python of course, with Django). I started the project as I'm a freelance Python developer and only work remotely, and thought it would be nice if there's a site that only lists remote Python jobs as that would save people time from having to check/subscribe to multiple sites.
Right now, I'm doing the job postings manually. I have a list of sites that I check daily. I make sure that the job actually involves Python before posting it as sometimes you'll see postings like "we're a Java shop, but we'd also consider candidates who have experience in Python, etc.", and they get tagged as "python" because it appeared in the text.
I hope some of you will find the site useful and any feedback is appreciated!
/r/Python
https://redd.it/5m3hoy
Hi guys,
I just launched https://www.RemotePython.com a few days ago (built in Python of course, with Django). I started the project as I'm a freelance Python developer and only work remotely, and thought it would be nice if there's a site that only lists remote Python jobs as that would save people time from having to check/subscribe to multiple sites.
Right now, I'm doing the job postings manually. I have a list of sites that I check daily. I make sure that the job actually involves Python before posting it as sometimes you'll see postings like "we're a Java shop, but we'd also consider candidates who have experience in Python, etc.", and they get tagged as "python" because it appeared in the text.
I hope some of you will find the site useful and any feedback is appreciated!
/r/Python
https://redd.it/5m3hoy
Remote Python
Find remote Python jobs and developers.
Job board and aggregator for remote Python jobs and only remote Python jobs. Also a place to find remote Python developers. Sign up today to post jobs, create and publish your own profile, save job postings and add notes to them, and receive messages from…
Using Django as a layer between programs and database (a.k.a help a newbie please)
Hello,
At my new job in a small company my employer wants me to create a Django API interface between a manager program (C#) and a MySQL database. Previously the manager communicated directly with the database, and the authentication was only handled by the manager (not that safe). My employer demands that the API uses Django's built-in models and views as much as possible and communication is done via HTTPS.
I have build a few models and for them a few FBVs, so that when I send POST/GET requests I get new data in the database or receive information in JSON form to the manager. User credentials are sent along with the requests with base64 encoding and validated in the views, so that each user handles only their own data.
I have several kind of wide questions/problems I haven't found advice for online, so here goes:
**1. How should I organize my views?** It seems I'm going to need a lot of views to achieve the same functionality as before, so how should I organize them? I will need inserts/updates, lists etc. for a great many models. I haven't seen many examples of people using views this way (not looking at the website at this point).
**2. Any useful tools?** Are there any tools that are useful in doing this, basically making queries indirectly through Django? From what I have found online, I don't want to use raw SQL queries for safety reasons.
**3. Benefits/drawbacks of Django?** Any reasons why Django is even good/bad for what I'm trying to do? I understand that later on when there is a need for a browser based web application this is very useful, but for now I'm just trying to wrap my head around this task.
I'm sorry that my questions are vague, I haven't necessarily thought everything through all the way, as I'm quite new to this type of programming and especially database/code design. Any help you can offer would be very much appreciated!
/r/django
https://redd.it/5lzowf
Hello,
At my new job in a small company my employer wants me to create a Django API interface between a manager program (C#) and a MySQL database. Previously the manager communicated directly with the database, and the authentication was only handled by the manager (not that safe). My employer demands that the API uses Django's built-in models and views as much as possible and communication is done via HTTPS.
I have build a few models and for them a few FBVs, so that when I send POST/GET requests I get new data in the database or receive information in JSON form to the manager. User credentials are sent along with the requests with base64 encoding and validated in the views, so that each user handles only their own data.
I have several kind of wide questions/problems I haven't found advice for online, so here goes:
**1. How should I organize my views?** It seems I'm going to need a lot of views to achieve the same functionality as before, so how should I organize them? I will need inserts/updates, lists etc. for a great many models. I haven't seen many examples of people using views this way (not looking at the website at this point).
**2. Any useful tools?** Are there any tools that are useful in doing this, basically making queries indirectly through Django? From what I have found online, I don't want to use raw SQL queries for safety reasons.
**3. Benefits/drawbacks of Django?** Any reasons why Django is even good/bad for what I'm trying to do? I understand that later on when there is a need for a browser based web application this is very useful, but for now I'm just trying to wrap my head around this task.
I'm sorry that my questions are vague, I haven't necessarily thought everything through all the way, as I'm quite new to this type of programming and especially database/code design. Any help you can offer would be very much appreciated!
/r/django
https://redd.it/5lzowf
reddit
Using Django as a layer between programs and database... • /r/django
Hello, At my new job in a small company my employer wants me to create a Django API interface between a manager program (C#) and a MySQL...
I've been watching the PyCon 2016 talks and doing "Cliff's Notes" so you don't have to watch all 45 minutes. I'm also taking requests for others!
http://mrh.io/category/talk-notes/pycon/
/r/Python
https://redd.it/5lzk6o
http://mrh.io/category/talk-notes/pycon/
/r/Python
https://redd.it/5lzk6o
MRH.io
PyCon Talk Notes Archive :: The Cliff's Notes of Tech Talks
Pycon is the unofficially-official gathering of the Python community, and these are our "Cliff's Notes" of some of the best talks. Enjoy!
Why I refused a job offer to teach corporate programming workshops
http://www.jacksimpson.co/2017/01/04/corporate-programming-training-overpromises/
/r/Python
https://redd.it/5lyadf
http://www.jacksimpson.co/2017/01/04/corporate-programming-training-overpromises/
/r/Python
https://redd.it/5lyadf
Jack Simpson
Why I refused a job offer to teach corporate programming workshops
A couple of months ago I was approached by an organisation that provided programming training to staff at companies. They asked me if I was interested in becoming a trainer for them based on my exp…
How do I increment the instance variable for an employee object when an object of a different class is created?
Hi all, I am working on a web-app which to be used by employees to issue "kudos points", which are arbitarily awarded points with an award reason, an award date, and information about who awarded them and who was awarded a point.
I have in my app/models.py two classes, the first being employees:
class Kiemp(models.Model):
emp_id = models.IntegerField()
emp_first = models.CharField(max_length = 100)
emp_last = models.CharField(max_length = 100)
emp_admin = models.CharField(max_length = 1)
emp_kpoints = models.IntegerField(default = 0)
def __str__(self):
fullname = self.emp_first + " " + self.emp_last
return fullname
And my Kudos point class:
class Kudospoint(models.Model):
awarded_to = models.ForeignKey(Kiemp, related_name = 'awarded_to')
awarded_by = models.ForeignKey(Kiemp, related_name = 'awarded_by')
awarded_reason = models.CharField(max_length = 500)
awarded_date = models.DateTimeField(auto_now = False, auto_now_add = True)
def __str__(self):
return "{} was awarded a kudos point by {} for: '{}' on date: {}".format(self.awarded_to, self.awarded_by, self.awarded_reason, self.awarded_date)
I would like it to be that whenever a Kudospoint object is created, the employee it is awarded to has their emp_kpoints incremented. I am not sure how to go about doing this using Django's ORM: should this logic be in the models file in the first place? How should I implement this?
/r/djangolearning
https://redd.it/5m5ddb
Hi all, I am working on a web-app which to be used by employees to issue "kudos points", which are arbitarily awarded points with an award reason, an award date, and information about who awarded them and who was awarded a point.
I have in my app/models.py two classes, the first being employees:
class Kiemp(models.Model):
emp_id = models.IntegerField()
emp_first = models.CharField(max_length = 100)
emp_last = models.CharField(max_length = 100)
emp_admin = models.CharField(max_length = 1)
emp_kpoints = models.IntegerField(default = 0)
def __str__(self):
fullname = self.emp_first + " " + self.emp_last
return fullname
And my Kudos point class:
class Kudospoint(models.Model):
awarded_to = models.ForeignKey(Kiemp, related_name = 'awarded_to')
awarded_by = models.ForeignKey(Kiemp, related_name = 'awarded_by')
awarded_reason = models.CharField(max_length = 500)
awarded_date = models.DateTimeField(auto_now = False, auto_now_add = True)
def __str__(self):
return "{} was awarded a kudos point by {} for: '{}' on date: {}".format(self.awarded_to, self.awarded_by, self.awarded_reason, self.awarded_date)
I would like it to be that whenever a Kudospoint object is created, the employee it is awarded to has their emp_kpoints incremented. I am not sure how to go about doing this using Django's ORM: should this logic be in the models file in the first place? How should I implement this?
/r/djangolearning
https://redd.it/5m5ddb
reddit
How do I increment the instance variable for... • /r/djangolearning
Hi all, I am working on a web-app which to be used by employees to issue "kudos points", which are arbitarily awarded points with an award reason,...
[Flask-Diamond] a batteries-included Python Flask framework
http://flask-diamond.org/
/r/Python
https://redd.it/5m6y4f
http://flask-diamond.org/
/r/Python
https://redd.it/5m6y4f
reddit
[Flask-Diamond] a batteries-included Python Flask... • /r/Python
4 points and 1 comments so far on reddit
[Ask Flask] Adding a news section to an existing website?
Hi,
I've been working on a website for a school club and I chose to use flask as the framework.
So far everything looks very good and I'm learning a lot. However, I'm stuck on how to implement a "news" section where I can easily add/remove articles from the page. Sorta like a blog section.
I've looked at flask frozen and I really like the idea of statically generating the website but can't seem to find a good reference/tutorial on how to implement it. I also looked into lektor but it doesn't seem to support python 3, which is what I've been using.
I'm looking for any advice/help/tutorials if anyone has an idea of how I can approach this, thanks!
/r/flask
https://redd.it/5lj1js
Hi,
I've been working on a website for a school club and I chose to use flask as the framework.
So far everything looks very good and I'm learning a lot. However, I'm stuck on how to implement a "news" section where I can easily add/remove articles from the page. Sorta like a blog section.
I've looked at flask frozen and I really like the idea of statically generating the website but can't seem to find a good reference/tutorial on how to implement it. I also looked into lektor but it doesn't seem to support python 3, which is what I've been using.
I'm looking for any advice/help/tutorials if anyone has an idea of how I can approach this, thanks!
/r/flask
https://redd.it/5lj1js
reddit
[Ask Flask] Adding a news section to an existing website? • /r/flask
Hi, I've been working on a website for a school club and I chose to use flask as the framework. So far everything looks very good and I'm...
Poesy - Corpus-based Poetry Generation
https://github.com/anfederico/Poesy
/r/Python
https://redd.it/5m6ud2
https://github.com/anfederico/Poesy
/r/Python
https://redd.it/5m6ud2
GitHub
anfederico/Poesy
Poetry generation via natural language markov models - anfederico/Poesy
PyCharm working on ssh agent remote interpreter support for next release.
https://twitter.com/DmitryTrofimov/status/816998293897179136
/r/Python
https://redd.it/5m830f
https://twitter.com/DmitryTrofimov/status/816998293897179136
/r/Python
https://redd.it/5m830f
Twitter
Dmitry Trofimov
@BecomeInfinite Hi, yes we are planning to work on it for the next release. Vote to be notified about progress: https://t.co/WXhN55wIaP
[AF] My app is slow (9.9s to respond to query). What am I doing wrong?
I'm currently running a Flask app in Docker. It's slow- calls to my `/overview`
endpoint take ~9s (9925ms). I've run [profiling](http://imgur.com/a/9WCfu) and I'm pretty
stumped on how to proceed.
The code for my application is on Github as a
[gist](https://gist.github.com/finbarrtimbers/3426f7b29bc6d7f6d10d20bd4b15d48a).
Based on the profiling, it seems like there are three main bottlenecks:
1. The 2x calls to `_socket.getaddrinfo` (52.93%)
2. the 1134 calls to `method read of _ssl_SSLSocket` (16.46%)
3. the 2x queries (13.87%)
I assume that the queries (#3) are slow because my SQL is slow, so I'll work on
speeding that up separately. For #2, I assume I need to figure out how to call
the read method fewer times, so I also know how to proceed there.
However, what seems to be really killing me are the two
calls to `_socket.getaddrinfo`. How can I speed those up?
I've tried to Google this, but the [answers](http://stackoverflow.com/questions/17239840/find-bottleneck-of-flask-application)
that I've seen are all based on the assumption that the problem is transient,
and so changing your DNS settings will fix it.
Finally, I've been trying to set up a test case that will make this more
obvious to solve with cProfile (e.g. I want to be able to profile the function
call directly to isolate my problem, as done in the linked answer). However,
I can't find a way to log the arguments of all function calls so that I can
replicate them exactly. Is there a way to do this? I would like to log the
exact arguments passed to `socket.getaddrinfo` so I can isolate that and work
with it directly.
I would appreciate any advice on how to fix this, or any advice on my code in
general. Even a pointer to a book or article I could read would be super
helpful. Thanks in advance.
/r/flask
https://redd.it/5m8naz
I'm currently running a Flask app in Docker. It's slow- calls to my `/overview`
endpoint take ~9s (9925ms). I've run [profiling](http://imgur.com/a/9WCfu) and I'm pretty
stumped on how to proceed.
The code for my application is on Github as a
[gist](https://gist.github.com/finbarrtimbers/3426f7b29bc6d7f6d10d20bd4b15d48a).
Based on the profiling, it seems like there are three main bottlenecks:
1. The 2x calls to `_socket.getaddrinfo` (52.93%)
2. the 1134 calls to `method read of _ssl_SSLSocket` (16.46%)
3. the 2x queries (13.87%)
I assume that the queries (#3) are slow because my SQL is slow, so I'll work on
speeding that up separately. For #2, I assume I need to figure out how to call
the read method fewer times, so I also know how to proceed there.
However, what seems to be really killing me are the two
calls to `_socket.getaddrinfo`. How can I speed those up?
I've tried to Google this, but the [answers](http://stackoverflow.com/questions/17239840/find-bottleneck-of-flask-application)
that I've seen are all based on the assumption that the problem is transient,
and so changing your DNS settings will fix it.
Finally, I've been trying to set up a test case that will make this more
obvious to solve with cProfile (e.g. I want to be able to profile the function
call directly to isolate my problem, as done in the linked answer). However,
I can't find a way to log the arguments of all function calls so that I can
replicate them exactly. Is there a way to do this? I would like to log the
exact arguments passed to `socket.getaddrinfo` so I can isolate that and work
with it directly.
I would appreciate any advice on how to fix this, or any advice on my code in
general. Even a pointer to a book or article I could read would be super
helpful. Thanks in advance.
/r/flask
https://redd.it/5m8naz
Imgur
Imgur: The most awesome images on the Internet
Imgur: The most awesome images on the Internet.
The Reality of Developer Burnout
https://www.kennethreitz.org/essays/the-reality-of-developer-burnout
/r/Python
https://redd.it/5m8ezj
https://www.kennethreitz.org/essays/the-reality-of-developer-burnout
/r/Python
https://redd.it/5m8ezj
Ken Reitz
Essays Ken Reitz
Burnout is, unfortunately, a very real phenomenon in software development — especially when creating and maintaining open source projects with large numbers of users. I've experienced it, and I wanted to share my personal experience with the subject. It…
[P] TensorKart: self-driving MarioKart with TensorFlow
http://kevinhughes.ca/blog/tensor-kart?utm_source=SitePoint&utm_medium=email&utm_campaign=Versioning
/r/MachineLearning
https://redd.it/5m7zsa
http://kevinhughes.ca/blog/tensor-kart?utm_source=SitePoint&utm_medium=email&utm_campaign=Versioning
/r/MachineLearning
https://redd.it/5m7zsa
www.kevinhughes.ca
TensorKart: self-driving MarioKart with TensorFlow
Kevin Hughes' blog
Bayesian Modeling practice problems/projects?
Hi, I have a fairly rudimentary understanding of statistics and I'd like to improve my bayesian reasoning beginning with modeling. Its not hard for me to find papers and tutorials on the subject, but I really miss the days where I could have a list of problems that I try to work through and check my answers in the back of a book.
I'm not sure if bayesian modeling lends itself to that sort of framework at all (when I say rudimentary understanding of stat I mean it), but if anyone can point me in the right direction I would appreciate it.
/r/pystats
https://redd.it/5m8eda
Hi, I have a fairly rudimentary understanding of statistics and I'd like to improve my bayesian reasoning beginning with modeling. Its not hard for me to find papers and tutorials on the subject, but I really miss the days where I could have a list of problems that I try to work through and check my answers in the back of a book.
I'm not sure if bayesian modeling lends itself to that sort of framework at all (when I say rudimentary understanding of stat I mean it), but if anyone can point me in the right direction I would appreciate it.
/r/pystats
https://redd.it/5m8eda
reddit
Bayesian Modeling practice problems/projects? • /r/pystats
Hi, I have a fairly rudimentary understanding of statistics and I'd like to improve my bayesian reasoning beginning with modeling. Its not hard...
Flask-WTF 0.14 released with WTForms 2 Form.Meta support, better CSRF errors, and more
I've just released Flask-WTF 0.14 to PyPI. [You can read the changelog here](http://flask-wtf.readthedocs.io/en/stable/changelog.html#version-0-14).
Install or upgrade using pip: `pip install -U flask-wtf`
- [PyPI](https://pypi.python.org/pypi/Flask-WTF)
- [GitHub](https://github.com/lepture/flask-wtf)
- [Docs](https://flask-wtf.readthedocs.io/en/stable/)
This release, along with 0.13, makes some major changes and deprecations. Some of the changes may break your code if you're using some of the less common parts directly. Be sure to read the changelog carefully and test your code when you upgrade.
Major changes include:
- Switch from the deprecated WTForms `SecureForm` to the new `Form.Meta` system.
- Use itsdangerous to generate CSRF tokens.
- CSRF errors are more specifc and are logged as well as returned.
Please give it a try and provide feedback. I want to get the project down to 0 open issues and a 1.0 release soon. Any help in the form of bug reports and patches is appreciated!
/r/flask
https://redd.it/5madnr
I've just released Flask-WTF 0.14 to PyPI. [You can read the changelog here](http://flask-wtf.readthedocs.io/en/stable/changelog.html#version-0-14).
Install or upgrade using pip: `pip install -U flask-wtf`
- [PyPI](https://pypi.python.org/pypi/Flask-WTF)
- [GitHub](https://github.com/lepture/flask-wtf)
- [Docs](https://flask-wtf.readthedocs.io/en/stable/)
This release, along with 0.13, makes some major changes and deprecations. Some of the changes may break your code if you're using some of the less common parts directly. Be sure to read the changelog carefully and test your code when you upgrade.
Major changes include:
- Switch from the deprecated WTForms `SecureForm` to the new `Form.Meta` system.
- Use itsdangerous to generate CSRF tokens.
- CSRF errors are more specifc and are logged as well as returned.
Please give it a try and provide feedback. I want to get the project down to 0 open issues and a 1.0 release soon. Any help in the form of bug reports and patches is appreciated!
/r/flask
https://redd.it/5madnr
I used Python to help increase our month to month sales
https://jackstouffer.com/blog/target-predictable-customers.html
/r/Python
https://redd.it/5m87b6
https://jackstouffer.com/blog/target-predictable-customers.html
/r/Python
https://redd.it/5m87b6
Jackstouffer
Use Machine Learning To Increase The Sales From Your Predictable Customers
With machine learning, we can look at the buying patterns of our customers to target customers that can yeild more sales
I built a Django-powered job board/aggregator for remote Python jobs (x-post on /r/python)
Hi guys,
I just launched https://www.RemotePython.com a few days ago (built in Python of course, with Django). I started the project as I'm a freelance Python developer and only work remotely, and thought it would be nice if there's a site that only lists remote Python jobs as that would save people time from having to check/subscribe to multiple sites.
Right now, I'm doing the job postings manually. I have a list of sites that I check daily. I make sure that the job actually involves Python before posting it as sometimes you'll see postings like "we're a Java shop, but we'd also consider candidates who have experience in Python, etc.", and they get tagged as "python" because it appeared in the text.
I hope some of you will find the site useful and any feedback is appreciated!
P.S. For those curious about the tech stack:
- Python 3.5
- Django 1.10
- PostgreSQL 9.6
- Ubuntu 14.04
- Nginx
- Gunicorn
- Bootstrap 3
- jQuery
/r/django
https://redd.it/5mbji3
Hi guys,
I just launched https://www.RemotePython.com a few days ago (built in Python of course, with Django). I started the project as I'm a freelance Python developer and only work remotely, and thought it would be nice if there's a site that only lists remote Python jobs as that would save people time from having to check/subscribe to multiple sites.
Right now, I'm doing the job postings manually. I have a list of sites that I check daily. I make sure that the job actually involves Python before posting it as sometimes you'll see postings like "we're a Java shop, but we'd also consider candidates who have experience in Python, etc.", and they get tagged as "python" because it appeared in the text.
I hope some of you will find the site useful and any feedback is appreciated!
P.S. For those curious about the tech stack:
- Python 3.5
- Django 1.10
- PostgreSQL 9.6
- Ubuntu 14.04
- Nginx
- Gunicorn
- Bootstrap 3
- jQuery
/r/django
https://redd.it/5mbji3
Remote Python
Find remote Python jobs and developers.
Job board and aggregator for remote Python jobs and only remote Python jobs. Also a place to find remote Python developers. Sign up today to post jobs, create and publish your own profile, save job postings and add notes to them, and receive messages from…
Help needed to create app similar to IFTTT
I am trying to emulate the workflow of IFTTT on one of my work. The app will be consuming natural event data like Earthquake, Hurricane, etc. Users can subscribe on those events based on some rule like IFTTT e.g. User1 (U1) subscribes on Earthquake with magnitude >4 and User2 (U2) subscribes on magnitude >5. Based on this, if an earthquake with magnitude of 6 occurs, U1 and U2 should be notified. If it happens to be magnitude 4.5, only U1 should be notified. I am planning to do this in Django using MongoDB + PostgreSQL. My approach is something like this: Save rules for each user in MongoDB. Once an event occurs, find users who are subscribed on it and if the rule matches, fire a notification. Is there any better way to solve this problem? Any help is appreciated. Thanks.
/r/django
https://redd.it/5mc2qv
I am trying to emulate the workflow of IFTTT on one of my work. The app will be consuming natural event data like Earthquake, Hurricane, etc. Users can subscribe on those events based on some rule like IFTTT e.g. User1 (U1) subscribes on Earthquake with magnitude >4 and User2 (U2) subscribes on magnitude >5. Based on this, if an earthquake with magnitude of 6 occurs, U1 and U2 should be notified. If it happens to be magnitude 4.5, only U1 should be notified. I am planning to do this in Django using MongoDB + PostgreSQL. My approach is something like this: Save rules for each user in MongoDB. Once an event occurs, find users who are subscribed on it and if the rule matches, fire a notification. Is there any better way to solve this problem? Any help is appreciated. Thanks.
/r/django
https://redd.it/5mc2qv
reddit
Help needed to create app similar to IFTTT • /r/django
I am trying to emulate the workflow of IFTTT on one of my work. The app will be consuming natural event data like Earthquake, Hurricane, etc....
Visualize your trip with Flask and Mapbox
http://kazuar.github.io/visualize-trip-with-flask-and-mapbox/
/r/Python
https://redd.it/5mbblh
http://kazuar.github.io/visualize-trip-with-flask-and-mapbox/
/r/Python
https://redd.it/5mbblh
reddit
Visualize your trip with Flask and Mapbox • /r/Python
9 points and 0 comments so far on reddit