Miserlou / django-aws-billing

Django AWS Usage/Billing Package.
MIT License
14 stars 5 forks source link

Can't execute command process_aws_billing #1

Closed zerosoul13 closed 10 years ago

zerosoul13 commented 10 years ago

Hello,

I've downloaded this packaged, installed the application on INSTALLED_APPS but still this issue comes up:

$ python2.7 manage.py process_aws_billing Unknown command: 'process_aws_billing' Type 'manage.py help' for usage.

The application has been installed and verified. The module is working as expected on Django's shell.

$ python2.7 manage.py shell Python 2.7.5 (default, Jun 12 2013, 18:17:58) (InteractiveConsole)

from aws_billing import aws_billing

Any ideas?

zerosoul13 commented 10 years ago

Kinda made it work. Cloned this repo and moved the management folder over to the /aws_billing/ folder on Python's site-packages:

mv management/ /usr/local/lib/python2.7/site-packages/aws_billing/

but now this comes up:

python2.7 manage.py process_aws_billing
KeyError: 'Cost'
zerosoul13 commented 10 years ago

The column name 'Cost' does not exist on my bill format and that's why this isn't working for me. I've changed the name on the data['Cost'] to a name that matches (sort of) and did work.

Miserlou commented 10 years ago

Can you give me a sanitized version of your bill that I can look at? Which AWS services are you using?

Miserlou commented 10 years ago

Thanks for using D-A-B, btw, and for reporting this ticket! This is still a project under active development for my own purposes, looks like you're the first person other than me to go at it.

zerosoul13 commented 10 years ago

Not sure i can share the bill information from the report since is company information. I did a small hack that (i think) won't affect much the data reporting.

Miserlou commented 10 years ago

Cool. If you're working on this, would you mind working on it as a fork, so that I can merge your pull requests back into mainline?

zerosoul13 commented 10 years ago

I could work on a method that runs a test over the bill to verify the bill format matches against the expected format. Would you think that could be useful?

Miserlou commented 10 years ago

Tests would absolutely be useful! Also simply figuring out why the formats are different..

From my phone.. On Apr 1, 2014 9:09 PM, "ZeroSoul13" notifications@github.com wrote:

I could work on a method that runs a test over the bill to verify the bill format matches against the expected format. Would you think that could be useful?

Reply to this email directly or view it on GitHubhttps://github.com/Miserlou/django-aws-billing/issues/1#issuecomment-39287124 .

zerosoul13 commented 10 years ago

I'm very new to unit testing but i'll work a couple of them and see where this goes. As for the bill format, i will try to set all values to something random to protect the company data and share it so we can see what happened there. I'll get back to you tomorrow.

Miserlou commented 10 years ago

Awesome. Can you tell me what AWS services you're using?

We only use a few of the basic ones, maybe you're something I haven't tested against.

On Tue, Apr 1, 2014 at 9:23 PM, ZeroSoul13 notifications@github.com wrote:

I'm very new to unit testing but i'll work a couple of them and see where this goes. As for the bill format, i will try to set all values to something random to protect the company data and share it so we can see what happened there. I'll get back to you tomorrow.

Reply to this email directly or view it on GitHubhttps://github.com/Miserlou/django-aws-billing/issues/1#issuecomment-39287692 .

zerosoul13 commented 10 years ago

I'll get that info when i get back to the office. Is there any other way to contact you? writing all this on the issue ticket looks weird. LOL

Miserlou commented 10 years ago

Yeah man, I'm rich@openwatch.net

Thanks!