Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » Admin Site: how to add apps with no db model? [RSS Feed]

#1 Dec. 22, 2010 00:47:33

a.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Admin Site: how to add apps with no db model?


Hi,
on my "homepage" app i have some helper classes//scripts that are
responsible for doing some specific "ADMIN" tasks:

for example:

- download rss files from a list of sources
- store the rss (downloaded infos) info in a table
- find some specific words and add on the "tags" table
- ...

right now i have a script that does that for me, but every time i need
run it, i have to run it by hand (via terminal).

There is a way to add it on the Admin Site like we do with the models?
i.e.: "admin.site.register(ModelClass)" or something like this ?

Thanks

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Dec. 22, 2010 17:29:33

c.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Admin Site: how to add apps with no db model?


Hello armandoperico,

Sounds like a job for cron, Celery, or any other number of task
schedulers.

Alternately you could create a url at your website that runs the
script. Of course putting in appropriate checks so that only you can
run it.

You could then probably customize the admin app index template <http://docs.djangoproject.com/en/dev/ref/contrib/admin/#templates-which-may-be-overridden-per-app-or-model> to show your link. The link doesn't have to be put there of course,
it really could go anywhere that makes sense.

On Dec 21, 4:47 pm, armandoperico <armandoper...@hotmail.com> wrote:

> on my "homepage" app i have some helper classes//scripts that are
> responsible for doing some specific "ADMIN" tasks:

> right now i have a script that does that for me, but every time i need
> run it, i have to run it by hand (via terminal).
>
> There is a way to add it on the Admin Site like we do with the models?
> i.e.: "admin.site.register(ModelClass)" or something like this ?

Toodle-looooooooo........
creecode

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » Admin Site: how to add apps with no db model? [RSS Feed]

Board footer

Moderator control

Enjoy the 16th of August
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support