All Questions
4 questions
5
votes
1
answer
12k
views
Using singletons in Python (Django)
I was suggested to define a singleton in Python in the following way:
class Controller:
pass
# ...
controller = Controller()
However, this way, controller cannot be replaced with a derived ...
2
votes
1
answer
559
views
How would a modern website like Reddit divide up its website into Django apps? [closed]
Django uses apps to divide projects into manageable and reusable chunks. All examples in tutorials use polls or articles in unrelatable circumstances. In a modern example like Reddit (or even Amazon ...
6
votes
4
answers
770
views
How to create different paths for users to take through the pages in my site?
I have a website where users are directed to go through a sequence of pages to perform a sequence of work tasks (transcribe a paragraph, answer a survey, interact with another user, etc). For short, ...
6
votes
1
answer
2k
views
Python, magic and objects that add attributes to its owner
Let me start with a disclaimer: I'm not the best programmer out there. I do however study I.T. and learnt a bit of Java and C.
I'm getting stuck into Python and Django + Mongoengine, I'm not going to ...