Recommend a way to add my own class into DjanGo

2012-10-17 Thread Django Newbie
Hey guys, I want to create a custom class with methods I will be able to access everywhere in my Views. For example a class that add numbers after declaring it somewhere in Django. *MyNumber = new GenNumberClass()* *MyNumber.setNumbers(1,2)* *result = MyNumber.getAddedResult()* Please point m

Re: Recommend a way to add my own class into DjanGo

2012-10-17 Thread Bill Freeman
This is a python question, not specifically a Django question. I suggest that you work through the following tutorial: http://docs.python.org/tutorial/index.html On Wed, Oct 17, 2012 at 8:16 AM, Django Newbie wrote: > Hey guys, > > I want to create a custom class with methods I will be able