Comment by Christopher Su on Invalid url with url_for
@jonafato Cool! I've never used _external before, but it looks pretty useful! Not sure if it would always work as expected though (e.g. if you're using Flask to serve two different hostnames, _external...
View ArticleComment by Christopher Su on Which headers should I provide for...
What HTTP error code is being returned?
View ArticleComment by Christopher Su on Pip command not recognised by python3.2 on Windows
What command did you run there? Can you run echo %path% and post the output here?
View ArticleComment by Christopher Su on Error when installing scarpy on 10.12
Can you try running: pip install --upgrade scrapypip install --upgrade twistedpip install --upgrade pyopenssl
View ArticleComment by Christopher Su on Flask token generating
Did you pass in the basic auth credentials with your request?
View ArticleComment by Christopher Su on Getting long error trying to upgrade Django
Try running with sudo or in a virtual environment
View ArticleComment by Christopher Su on Parse XML from URL in Python, wrong format
@EdWood: Could you try xml.decode("utf-8", "ignore") and see if that gets you a usable result?
View ArticleAnswer by Christopher Su for Adding periodic tasks dynamically from flask app
When you tried running it from the terminal, you gave add_jobstore a string as the first parameter, instead of a job store. It expects a job store as the first parameter, see the documentation for more...
View ArticleAnswer by Christopher Su for Has anyone installed MySQLdb for Python on Cygwin?
First, install apt-cyg:lynx -source rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg`install apt-cyg /binNow, use apt-cyg to install mysql-devel:apt-cyg install libmysqlclient-devel
View ArticleAnswer by Christopher Su for Python 3 Convert IPV4Address to string
In your code snippet (relevant lines below), the str(x) line returns x as a string but does store this string in x. You need to do x = str(x) to store the string representation in x (or just use str(x)...
View ArticleAnswer by Christopher Su for javascript dependencies in python project
My question is: what is the best practice of dealing with such heterogenous dependencies in Python?In the case of Node dependencies, I would include a package.json file in the directory which specifies...
View ArticleAnswer by Christopher Su for Creating an RSS feed for Github Stars
The current answer here gives the stars as JSON rather than RSS. Here's how I get my GitHub stars through the IFTTT RSS service:Use the "New feed item matches" triggerEnter your GitHub user RSS...
View ArticleCan't resolve casbah as a sbt dependency
I'm getting the following error upon compile:[error] (*:update) sbt.ResolveException: unresolved dependency: org.mongodb#casbah_2.11;2.7.4-SNAPSHOT: not foundWith this build.sbt file:name :=...
View Article
More Pages to Explore .....