Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
1 answer
199 views

Python REST API and Mongo - Aggregation Pipeline/Stage classes

This has been my approach for "simplifying" MongoDB aggregation queries in a pythonic syntax - was my intent, at the very least: ...
Rfroes87's user avatar
  • 133
3 votes
1 answer
784 views

Django post function : split method is a good way?

I'm working on my Django project and I'm trying to develop this one with 'Class Based View' (CBV) method in order to keep the code maintainable. I have a class ...
Essex's user avatar
  • 293
5 votes
1 answer
1k views

Python Class to represent a Pokemon

I have been programming with Python on-and-off for about 2 years now, even now I still find that when I look at other applications I struggle to follow along with their classes/objects. Please help me ...
CHBresser's user avatar
1 vote
1 answer
66 views

Clear data-model layer in Django MVC

I have a Django model User ...
Denny's user avatar
  • 141
10 votes
1 answer
1k views

Python application to create Google Map image

I have written a Django app that would get some input and give you an image as output. The output image has 3 layers: Google Map image rosreestr (russian docs layer) data from geojson layer I hear ...
Denny's user avatar
  • 141
3 votes
2 answers
236 views

Object oriented architecture with an image processing code

This code is python 3X code (in django). It takes an instance of user entry, and process images: it creates a resized version of original image, 2 thumbs, saves all, and update instance fields to ...
Benj's user avatar
  • 63
3 votes
1 answer
112 views

Mapping different classes to the same database table

I have several very similar subclasses that I (think I) want to be stored in the same database table. Most of the fields are identical, with each subclass adding 1 or 2 custom fields. My code is using ...
Felipe's user avatar
  • 131
3 votes
2 answers
636 views

Is one view that handles two sibling models a good idea?

I am using Django multi-table inheritance: Video and Image are models derived from Media. ...
clime's user avatar
  • 241