Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
What Django e-commerce application/package/framework do you recommend?

I am looking for a good application/package/framework to handle payments for websites that I want to build. I like to use frameworks that are very versatile and offer al lot of options, I am not afraid to go through a steep learning curve or something like that to learn to use the framework. What framework do you suggest to use? I am considering django-oscar but I don't really know anything about my options.

/r/django
https://redd.it/b94a3y
Online based Python groups?

Hi guys, I was wondering there were online like meetups or groups?

I live in Georgia and the most activity for python groups is in Atlanta and that’s about 45 minutes from where I am. I can’t find any local groups on Meetup.com. Any advice or other group meetup sites? Thank you.

/r/Python
https://redd.it/b97kce
A review of 5 Python Deep Learning Computer Vision Courses (WARNING LONG).

Hi guys,

So I'm working at a startup where as the 'Chief' Data Scientist (re: only person), I was tasked with learning computer vision for a new application we're developing.

My background is in Mathematics, I've used R extensively. I know some Python for a course I completed in College, but I'm not pro. Previously, most of my work involved performing Data Analytics, with some simple modelling.

The company paid for all courses mentioned below and I took roughly 3 months to complete almost all of them (still had most of my full time tasks to do, so I wasn't dedicated 100% to learning Computer Vision).

**The courses purchased and their price below:**

[https://www.udemy.com/computer-vision-a-z/](https://www.udemy.com/computer-vision-a-z/) \- $12.99 (Udemy sale)

[https://www.udemy.com/python-for-computer-vision-with-opencv-and-deep-learning/](https://www.udemy.com/python-for-computer-vision-with-opencv-and-deep-learning/) \- $12.99 (Udemy sale)

[https://www.udemy.com/master-deep-learning-computer-visiontm-cnn-ssd-yolo-gans/](https://www.udemy.com/master-deep-learning-computer-visiontm-cnn-ssd-yolo-gans/) \- $12.99 (Udemy sale)

[https://www.udemy.com/master-computer-vision-with-opencv-in-python/](https://www.udemy.com/master-computer-vision-with-opencv-in-python/) \- $12.99 (Udemy sale)

[https://www.pyimagesearch.com/deep-learning-computer-vision-python-book/](https://www.pyimagesearch.com/deep-learning-computer-vision-python-book/) \- $236 (20% off sale)

​

I'll give a short review of each, with it's pros and cons and summarize scores below in a table.

​

[Deep Learning and Computer Vision A-Z: OpenCV, SSD & GANs](https://www.udemy.com/computer-vision-a-z/) \- Created by [Hadelin de Ponteves](https://www.udemy.com/computer-vision-a-z/#instructor-1), [Kirill Eremenko](https://www.udemy.com/computer-vision-a-z/#instructor-2), [SuperDataScience Team](https://www.udemy.com/computer-vision-a-z/#instructor-3)

**Review** \- This course was good. However, I have no idea how it got such a high review on Udemy of 4.7/5. The course covers nice details of building a complex

/r/Python
https://redd.it/b97hdk
If you ever start feeling bad about yourself remember that I converted my Python code to C and it became 30x slower...

/r/Python
https://redd.it/b9701j
Programs that are against Terms of Service

Hello everyone,

I created a Python program with Selenium to automate my user activity on a website. However, in the Terms of Service of the website, it specifically states that automation is prohibited and they don't have a public API. I haven't invested any money in development nor have I spent very much time developing the program so I'm not heavily vested in this project, but it seems to me like just walking away is giving up too easily. I also don't want to get into any trouble, but the program is useful to me and could be useful to others if I decide to sell it in the future.

Has anyone ever been in this situation where a program you created was against a site's Terms of Service and if so, did you still use it or did you just move on to something else? Additionally, is Selenium easily detected by websites if I only run the script a few times a day? Any feedback would be greatly appreciated.

/r/Python
https://redd.it/b988x8
How to setup Jupyter behind a corporate proxy?

I just can't figure out how to get it to work. Every time I try to pull data from the web I get block by the proxy and even thou my admingave me all the password and credentials I just can't figure out how to configure Jupyter.

/r/JupyterNotebooks
https://redd.it/b8y5vi
Search functionality

Hello,

​

I am seeking an advice, ideas and best practices regarding to a search function implementation. I have a database of items that have names and descriptions and I also have a bar on the website that requests a search through the items.

​

Currently, I have it made with nltk currently, it simply tokenizes and matches against the contents of db entry (its not super accurate). I was wondering how you guys have implemented it, if you did.

​

Thanks

/r/flask
https://redd.it/b964g8
Can i learn Django 1.11 now?

I find there is lot less resources for django 2. Can i learn django 1.11 ?

/r/django
https://redd.it/b9b1h3
Edges of 3D surfaces produced using Mayavi seem "rough" or "jagged"

Hello, I'm currently trying to imitate the code done in Matlab which were used to produce these 3D surfaces (see here http://davidbrander.org/Images/index.html) on Python. I've decided to use Mayavi.

Before diving into the project, I've decided to learn Mayavi using the standard examples. Here's a well-known example of Boy's surface, which is also Mayavi's logo -- https://docs.enthought.com/mayavi/mayavi/auto/example_boy.html#example-boy.

Here's a screenshot of the surface generated by the code:

https://imgur.com/RecbUzT

Notice that the edges aren't smooth, unlike the really nice pictures by Brander. What should I do to fix this on Mayavi?

/r/Python
https://redd.it/b9dbq2
Admin list view: a FileField is displayed as a link going nowhere

I ran into this implementing my own app but I managed to reproduce it in the official Django tutorial's project (the Polls app). If I add a FileField to a model and add the field to `list_display` on the ModelAdmin implementation, the resulting list view will display a link for the FileField's value: [screenshot](https://i.postimg.cc/tRM3PXTY/image.png) as if were an object's change link. The link obviously doesn't work and returns a

> Question with ID "sample.srt" doesn't exist. Perhaps it was deleted?

error. Using `list_display_links = None` or `list_display_links = ['question_text']` didn't change this (in the latter case, it did provide a functional link on that column). I know I can work around it using

def file_name(self, obj):
return obj.file_obj.name
file_name.short_description = 'File'

list_display = ('question_text', 'pub_date', 'was_published_recently', 'file_name')

But what am I missing here? So far the implementation of the admin has been pretty straight-forward if you understand the various points to make the changes, but this puzzles me why this would even happen out-of-the-box if it's broken out-of-the-box...

[pastebin of admin.py](https://pastebin.com/ssc7EN7B)
[pastebin of models.py](https://pastebin.com/wMZwhUFC)

edit: almost forgot to mention: this is on 3.7 django 2.2.0.
What's

/r/django
https://redd.it/b9d2ek
Sometimes you have a Django template but you don't have the data yet to fill it in. ContextPlaceholder creates a mocked variable that contains whatever your template asks for.
https://gist.github.com/JordanReiter/82429200a0694a3140c7f186cd5bc926

/r/django
https://redd.it/b9edxf
I’m trying to create a real estate app and I’m stuck between having one app for buyer and seller or creating two separate apps.

Hello, I’m new to django. I’m trying to create a real estate application where a seller can post properties and a buyer can enquire about them. A seller will also have a separate dashboard where all his listings will be and enquiries on his listings.

Both buyer and selller have a lot of common fields, right now I have a separate seller app with seller model created. I’m working on the user app with django’S built in user module so I’m not making a user model.

Should I keep it this way or combine them into one app?

/r/django
https://redd.it/b9dur8
Session list only holds first two items?

Hello,

​

Currently I am working on a shopping cart for my eCommerce store.

To handle my "shopping cart" I decided to use sessions.

​

I have added simple code to do this.

On a post request where "add to cart" is clicked

​

if 'cart' in session:

session\['cart'\].append("a")

else:

session\['cart'\] = \["a"\]

​

is my code.

​

Unfortunately this only works for the first two iterations. That is, when I click add to cart, once it stores session\['cart'\] = "a"

then I click it again it results in session\['cart'\] = \["a", "a"\]

​

but when I do it a third or more times, I get

session\['cart'\] = \["a", "a"\]

​

Does anybody know why my session list can only hold two items in the list?

​

Thank you.

​

/r/flask
https://redd.it/b9hrua
Listen to this kid who is passionate about technology, self learned and ready to spread the knowledge. Please like, share, subscribe and provide constructive feedback.
https://youtu.be/CtZGpRcbR0o

/r/Python
https://redd.it/b9ku6a