Re: Django Python Understanding Classes with an example

2013-04-22 Thread Gabriel
Hey, it would be better if you told us what's happening when you run this code, what errors are you getting and all... But one thing I noticed on the last line: You don't need to send self to your read_file function, but you do need to specify that you're calling the function from your object, so:

Django Python Understanding Classes with an example

2013-04-22 Thread sparky
I'm just learning Python and Django. **Could someone tell me where I'm going wrong with below?** What I want to do is something like this csvobject = CSVViewer(file) rows = csvobject.get_row_count() This is what I have so far. Remember this is all new to me so I'm looking for a an ex