You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that Django allows apps to create custom command wouldn't it be an
option to run feedjack_update like:
./manage.py feedjack_update [OPTIONS]
It seems this shouldn't be too complicated by looking at the source of
runserver:
http://code.djangoproject.com/browser/django/trunk/django/core/management/comman
ds/runserver.py
More here:
http://docs.djangoproject.com/en/dev/howto/custom-management-commands/
Looking at the code of django-mailer for an example that is quite analogous
to what feedjack is trying to do:
http://github.com/jtauber/django-mailer/blob/master/mailer/management/commands/s
end_mail.py
Original issue reported on code.google.com by [email protected] on 12 Feb 2010 at 12:39
The text was updated successfully, but these errors were encountered:
I have created a clone and updated the code to reflect the changes. From my
limited
testing it seems to work. The code could use a refactoring whereby the bin
directory
is cleared out and everything is moved to the new command structure. I have now
decided to change as little as possible however.
roderikk: I've seen your implementation, but it duplicates a lot of code. I've
implemented an admin command too, available from my clone at
https://code.google.com/r/danielevarrazzo-feedjack/source/browse which imports
the object from the script (with a little refactoring to expose the options
parser) and uses the same code.
Patch is at
https://code.google.com/r/danielevarrazzo-feedjack/source/detail?r=bdf6a15431dd4
5f38aef07b04e2ff03947cbdf6e
Original issue reported on code.google.com by
[email protected]
on 12 Feb 2010 at 12:39The text was updated successfully, but these errors were encountered: