Paypal, Django, Local Bank, Integration
I'm thinking about making a web system where people can send me money through their local bank account for buying an online item and I'll buy them that item using my paypal account. So this would be 2 step process. At first they will send me money through their local account and then I'll convert that money into paypal dollars and use those dollars to buy that item for them. I want to know is that possible and if it is, then from where should I start?
/r/djangolearning
https://redd.it/7etabj
I'm thinking about making a web system where people can send me money through their local bank account for buying an online item and I'll buy them that item using my paypal account. So this would be 2 step process. At first they will send me money through their local account and then I'll convert that money into paypal dollars and use those dollars to buy that item for them. I want to know is that possible and if it is, then from where should I start?
/r/djangolearning
https://redd.it/7etabj
reddit
Paypal, Django, Local Bank, Integration • r/djangolearning
I'm thinking about making a web system where people can send me money through their local bank account for buying an online item and I'll buy them...
Best API for scheduled tasks currently?
I need to set up automatic scheduled tasks. The tasks are pretty simple, like set `is_active_subscriber` to `False` when a user's subscription ends and auto-renewal is off.
I'm aware of cron, but I see that it hasn't been updated for a few years. For simple scheduled tasks, what API is the best option right now?
Thanks.
P.S. I'm building a MVP so I'll be expecting only a small amount of traffic when I first go live. So whatever method I end up using, it should be sufficiently scalable.
/r/django
https://redd.it/7fzled
I need to set up automatic scheduled tasks. The tasks are pretty simple, like set `is_active_subscriber` to `False` when a user's subscription ends and auto-renewal is off.
I'm aware of cron, but I see that it hasn't been updated for a few years. For simple scheduled tasks, what API is the best option right now?
Thanks.
P.S. I'm building a MVP so I'll be expecting only a small amount of traffic when I first go live. So whatever method I end up using, it should be sufficiently scalable.
/r/django
https://redd.it/7fzled
reddit
Best API for scheduled tasks currently? • r/django
I need to set up automatic scheduled tasks. The tasks are pretty simple, like set `is_active_subscriber` to `False` when a user's subscription...
I'm releasing a free code for the "Automate the Boring Stuff with Python" Udemy course
Use this link to sign up for the "Automate the Boring Stuff with Python" Udemy online course: https://www.udemy.com/automate/?couponCode=PY_ALL_THE_THINGS
It's free until the end of Friday, Dec 1, 2017. Afterwards it goes back to its normal $50 price. (Though you can use this link https://www.udemy.com/automate/?couponCode=FOR_LIKE_10_BUCKS to buy it for $10. And it's an open secret that if you browse Udemy in privacy mode, they'll show you the discount price to lure in a "new" customer. But course creators get a much larger cut when people use their referral codes.)
The course follows the book of the same name, which is available for free, in full, at https://automatetheboringstuff.com under a Creative Commons license. ([Which I encourage you to use to share your own creative works.](https://creativecommons.org/licenses/))
The course is 50 videos and made for people with no previous programming experience. The first 15 videos are free to view on YouTube: https://www.youtube.com/watch?v=1F_OgqRuSdI&list=PL0-84-yl1fUnRuXGFe_F7qSH1LEnn9LkW
And now I will go self-flagellate to atone for my part in legitimizing "cyber monday".
/r/Python
https://redd.it/7fxp46
Use this link to sign up for the "Automate the Boring Stuff with Python" Udemy online course: https://www.udemy.com/automate/?couponCode=PY_ALL_THE_THINGS
It's free until the end of Friday, Dec 1, 2017. Afterwards it goes back to its normal $50 price. (Though you can use this link https://www.udemy.com/automate/?couponCode=FOR_LIKE_10_BUCKS to buy it for $10. And it's an open secret that if you browse Udemy in privacy mode, they'll show you the discount price to lure in a "new" customer. But course creators get a much larger cut when people use their referral codes.)
The course follows the book of the same name, which is available for free, in full, at https://automatetheboringstuff.com under a Creative Commons license. ([Which I encourage you to use to share your own creative works.](https://creativecommons.org/licenses/))
The course is 50 videos and made for people with no previous programming experience. The first 15 videos are free to view on YouTube: https://www.youtube.com/watch?v=1F_OgqRuSdI&list=PL0-84-yl1fUnRuXGFe_F7qSH1LEnn9LkW
And now I will go self-flagellate to atone for my part in legitimizing "cyber monday".
/r/Python
https://redd.it/7fxp46
Udemy
Automate the Boring Stuff with Python Programming
A practical programming course for office workers, academics, and administrators who want to improve their productivity.
Free Python Games - Basic Python Games for Beginners
http://www.grantjenks.com/docs/freegames/
/r/Python
https://redd.it/7fzu88
http://www.grantjenks.com/docs/freegames/
/r/Python
https://redd.it/7fzu88
Using Python’s Pathlib Module - Practical Business Python
http://pbpython.com/pathlib-intro.html
/r/Python
https://redd.it/7fzvhj
http://pbpython.com/pathlib-intro.html
/r/Python
https://redd.it/7fzvhj
Pbpython
Using Python’s Pathlib Module
Using python's pathlib module.
pytest 3.3 released. built-in logging capture, new progress output and fixtures.
https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst
/r/Python
https://redd.it/7g349q
https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst
/r/Python
https://redd.it/7g349q
GitHub
pytest-dev/pytest
The pytest framework makes it easy to write small tests, yet scales to support complex functional testing - pytest-dev/pytest
Django URL Issue
I am building a blog. In the navigation menu, there are options for going through "Home" (which is index.html) and "Blog." "Home" is not working unless I place the index.html in the static folder and insert the following line in the code of navigation menu:
<a href="{% static "html/index.html" %}"
In short, when I click on "Home," the URL is being displayed as "http://127.0.0.1:8000/static/html/index.html" in the browser. But when I click on "Blog," the URL becomes "http://127.0.0.1:8000/blog/", which looks to be pretty standard. How can I change "http://127.0.0.1:8000/static/html/index.html" to simply "http://127.0.0.1:8000/index/".
I am a beginner. So, pardon if I make any silly mistake.
/r/djangolearning
https://redd.it/7g2f5h
I am building a blog. In the navigation menu, there are options for going through "Home" (which is index.html) and "Blog." "Home" is not working unless I place the index.html in the static folder and insert the following line in the code of navigation menu:
<a href="{% static "html/index.html" %}"
In short, when I click on "Home," the URL is being displayed as "http://127.0.0.1:8000/static/html/index.html" in the browser. But when I click on "Blog," the URL becomes "http://127.0.0.1:8000/blog/", which looks to be pretty standard. How can I change "http://127.0.0.1:8000/static/html/index.html" to simply "http://127.0.0.1:8000/index/".
I am a beginner. So, pardon if I make any silly mistake.
/r/djangolearning
https://redd.it/7g2f5h
reddit
Django URL Issue • r/djangolearning
I am building a blog. In the navigation menu, there are options for going through "Home" (which is index.html) and "Blog." "Home" is not working...
i wrote a script to make it easier to update my pythonAnywhere server whenever my code changes, help me make it better !
Hello !
Whenever I am happy with my code, I commit it to my Git repository, sync it up, and then use the following two files :
## update.bat
set login=brachamul
plink %login%@ssh.pythonanywhere.com -m update.txt
@echo "Work complete !"
This will open an SSH connection with pythonanywhere, and call my script from there.
## update.txt
echo
echo [Pulling from git]
git pull
echo
echo [Collecting static files]
workon MyEnv
python manage.py collectstatic --noinput
echo
echo [Migrating]
python manage.py migrate
echo
echo [Testing new setup]
python manage.py test
echo
echo [Reloading web app]
touch /var/www/www_mysite_com_wsgi.py
This will pull the new code from git, reload static files, migrate if migrations are needed, trigger the tests (but won't change anything if the tests are wrong, I don't know how to do that) and finally reload the app.
How can I improve on this code ? How do **you** do it ?
/r/djangolearning
https://redd.it/7elu71
Hello !
Whenever I am happy with my code, I commit it to my Git repository, sync it up, and then use the following two files :
## update.bat
set login=brachamul
plink %login%@ssh.pythonanywhere.com -m update.txt
@echo "Work complete !"
This will open an SSH connection with pythonanywhere, and call my script from there.
## update.txt
echo
echo [Pulling from git]
git pull
echo
echo [Collecting static files]
workon MyEnv
python manage.py collectstatic --noinput
echo
echo [Migrating]
python manage.py migrate
echo
echo [Testing new setup]
python manage.py test
echo
echo [Reloading web app]
touch /var/www/www_mysite_com_wsgi.py
This will pull the new code from git, reload static files, migrate if migrations are needed, trigger the tests (but won't change anything if the tests are wrong, I don't know how to do that) and finally reload the app.
How can I improve on this code ? How do **you** do it ?
/r/djangolearning
https://redd.it/7elu71
reddit
i wrote a script to make it easier to update my... • r/djangolearning
Hello ! Whenever I am happy with my code, I commit it to my Git repository, sync it up, and then use the following two files : ## update.bat ...
What's everyone working on this week?
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/7g4dnf
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your current project or your pet project; whatever you want to share.
/r/Python
https://redd.it/7g4dnf
reddit
What's everyone working on this week? • r/Python
Tell /r/python what you're working on this week! You can be bragging, grousing, sharing your passion, or explaining your pain. Talk about your...
How to automate Jupyter notebook slide generation. (get the most out of those slides!)
https://jellis18.github.io/post/2017-11-20-automating-jupyter-slides/
/r/IPython
https://redd.it/7g4n3a
https://jellis18.github.io/post/2017-11-20-automating-jupyter-slides/
/r/IPython
https://redd.it/7g4n3a
jellis18.github.io
Automating Jupyter Slides with Travis CI and gh-pages. |
Astrophysicist and Aspiring Data Scientist
Need some help upon the approach to solving a problem
So I followed the Django polls app from the django official tutorial and found this another [link on gists](https://gist.github.com/inglesp/8866459) which talks about extending that polls app with some extra features. I tried it, was able to do a few but not all.
For example, there's a index view in the polls app which displays the last 5 submitted questions, so the extending features talks about adding the date which was published along with the text which is easy because it's just another variable but it also asks to include total no of votes casted on all choice of the question, which also seemed doable at first, cuz it's just looking through the question.choice_set.all and summing up the votes of each choice, but then such calculation are not allowed or advised to handle in a template. So my doubt is how to handle those in a view and pass it into a template. Noob here. Kindly help me out.
I am not expecting the exact answer, just how to go about it any guidance on how to achieve the task.
/r/djangolearning
https://redd.it/7g67yj
So I followed the Django polls app from the django official tutorial and found this another [link on gists](https://gist.github.com/inglesp/8866459) which talks about extending that polls app with some extra features. I tried it, was able to do a few but not all.
For example, there's a index view in the polls app which displays the last 5 submitted questions, so the extending features talks about adding the date which was published along with the text which is easy because it's just another variable but it also asks to include total no of votes casted on all choice of the question, which also seemed doable at first, cuz it's just looking through the question.choice_set.all and summing up the votes of each choice, but then such calculation are not allowed or advised to handle in a template. So my doubt is how to handle those in a view and pass it into a template. Noob here. Kindly help me out.
I am not expecting the exact answer, just how to go about it any guidance on how to achieve the task.
/r/djangolearning
https://redd.it/7g67yj
Gist
Django tutorial exercises
How To Write Python In 3 Easy Steps! (X-post from r/programmerhumor)
https://youtu.be/Dts_yOZSpwU
/r/Python
https://redd.it/7g4acv
https://youtu.be/Dts_yOZSpwU
/r/Python
https://redd.it/7g4acv
YouTube
How To Write Python In 3 Easy Steps
Python is easy, as long as you have the right mindset. Subscribe for more startup and tech related humor! http://bit.ly/2zeODxX Want to learn how to become a...
[R] Extracting Automata from Recurrent Neural Networks Using Queries and Counterexamples
https://arxiv.org/abs/1711.09576
/r/MachineLearning
https://redd.it/7g48wf
https://arxiv.org/abs/1711.09576
/r/MachineLearning
https://redd.it/7g48wf
reddit
[R] Extracting Automata from Recurrent Neural... • r/MachineLearning
48 points and 1 comments so far on reddit
Using Python for Mobile Development: Kivy vs BeeWare
https://dbader.org/blog/python-mobile-development-kivy-vs-beeware#intro
/r/Python
https://redd.it/7g58mj
https://dbader.org/blog/python-mobile-development-kivy-vs-beeware#intro
/r/Python
https://redd.it/7g58mj
dbader.org
Using Python for Mobile Development: Kivy vs BeeWare – dbader.org
Mobile application development on Android and iOS wasn’t Python’s strong suit in the past—but things might be changing…
Automate the Boring Stuff with Python Programming is free on Udemy. Cyber Monday deal
[link](https://www.udemy.com/automate/?couponCode=PY_ALL_THE_THINGS)
/r/Python
https://redd.it/7g4zbb
[link](https://www.udemy.com/automate/?couponCode=PY_ALL_THE_THINGS)
/r/Python
https://redd.it/7g4zbb
Udemy
Automate the Boring Stuff with Python Programming
A practical programming course for office workers, academics, and administrators who want to improve their productivity.
Save/send an image with Django channel?
Guys, I have made a chat application with Django channels. I want to add image uploading in this chat app. Has anyone done this? can you please guide me, how can I do this?
Thanks
/r/django
https://redd.it/7g63es
Guys, I have made a chat application with Django channels. I want to add image uploading in this chat app. Has anyone done this? can you please guide me, how can I do this?
Thanks
/r/django
https://redd.it/7g63es
reddit
Save/send an image with Django channel? • r/django
Guys, I have made a chat application with Django channels. I want to add image uploading in this chat app. Has anyone done this? can you please...
from Python to Rust - A quick reference guide for the Pythonista in the process of becoming a Rustacean
https://github.com/rochacbruno/py2rs
/r/Python
https://redd.it/7g8mjm
https://github.com/rochacbruno/py2rs
/r/Python
https://redd.it/7g8mjm
GitHub
GitHub - rochacbruno/py2rs: A quick reference guide for the Pythonista in the process of becoming a Rustacean
A quick reference guide for the Pythonista in the process of becoming a Rustacean - rochacbruno/py2rs
Predicting Cryptocurrency Prices With Deep Learning
https://dashee87.github.io/deep%20learning/python/predicting-cryptocurrency-prices-with-deep-learning/
/r/pystats
https://redd.it/7g6012
https://dashee87.github.io/deep%20learning/python/predicting-cryptocurrency-prices-with-deep-learning/
/r/pystats
https://redd.it/7g6012
dashee87.github.io
Predicting Cryptocurrency Prices With Deep Learning
This post brings together cryptos and deep learning in a desperate attempt for Reddit popularity.
[R] [1711.10337] Are GANs Created Equal? A Large-Scale Study
https://arxiv.org/abs/1711.10337
/r/MachineLearning
https://redd.it/7g9n8q
https://arxiv.org/abs/1711.10337
/r/MachineLearning
https://redd.it/7g9n8q
reddit
[R] [1711.10337] Are GANs Created Equal? A... • r/MachineLearning
13 points and 6 comments so far on reddit
[D] Dress code at NIPS?
I am attending NIPS next week and this is my first time ever attending this conference (or any top-tier ML conference). I have been to a lot of medical, visualization, and lower tier ML conferences. I have a couple of questions:
1. At many of the medical and other conferences, you see most people in business casual (dress shirt with tie) or even with full suits. From what I understand, NIPS is nowhere near this case (which sounds awesome). What should I expect? Khakis with a casual button down? Or just jeans with a t-shirt? What about if speaking to companies at booths?
2. Piggy backing on the last part of the first question, I have seen that there will be a lot of companies at NIPS. As somebody finishing my PhD next year, what is the best course for exploratory talks with companies? And similar to the first question: are any of these conversations like a normal interview where proper dress code is expected?
I am excited to attend NIPS for the first time, and as is probably evident…I am trying to break away from the strict dress code expected at some other conferences.
(Reposted with Discussion tag.)
/r/MachineLearning
https://redd.it/7g7255
I am attending NIPS next week and this is my first time ever attending this conference (or any top-tier ML conference). I have been to a lot of medical, visualization, and lower tier ML conferences. I have a couple of questions:
1. At many of the medical and other conferences, you see most people in business casual (dress shirt with tie) or even with full suits. From what I understand, NIPS is nowhere near this case (which sounds awesome). What should I expect? Khakis with a casual button down? Or just jeans with a t-shirt? What about if speaking to companies at booths?
2. Piggy backing on the last part of the first question, I have seen that there will be a lot of companies at NIPS. As somebody finishing my PhD next year, what is the best course for exploratory talks with companies? And similar to the first question: are any of these conversations like a normal interview where proper dress code is expected?
I am excited to attend NIPS for the first time, and as is probably evident…I am trying to break away from the strict dress code expected at some other conferences.
(Reposted with Discussion tag.)
/r/MachineLearning
https://redd.it/7g7255
reddit
[D] Dress code at NIPS? • r/MachineLearning
I am attending NIPS next week and this is my first time ever attending this conference (or any top-tier ML conference). I have been to a lot of...