Jacob Kaplan-Moss wrote: > > On Apr 18, 2006, at 8:10 AM, Gábor Farkas wrote: >> everything seems to work fine, but i'm a little afraid of touching >> those >> tables (content-type and package). >> >> can anything "bad" happen if i add custom entries to them? > > Nothing "bad" per-se will happen; there are no real assumptions made > about the contents of those tables. However, you should think of > them as semi-private (like sys._getframe() or the Model._meta > attribute): we make no guarantees about the contents of those tables > or about the semantics of inserting into them. > thanks for the info...
is there perhaps a better way to put arbitrary info into the Recent_Actions list? or maybe i'll describe the scenario: the application is 99% django-admin. plus, we need a VERY simple filemanager so that the user can manage his files on the server. it's a very basic os.listdir => table-with-foreach style view. now, i have a model called DirectoryMapping: class DirectoryMapping(Model): name = SlugField(maxlength=100,unique=True) directory = CharField(maxlength=500) which are created in the admin interface. and then there's a view where i list all these mappings, and when the user picks one, i list him the content of the "directory" directory. here he can delete files and/or upload files. (for now let's ignore the fact that if the user could learn/user winscp, things would be simpler :-) now the question is, how to integrate these views the best way into the admin? for now i have a custom index.html, which simply contains a link to the list of directoryMappings. and when the user uploads/deletes files, i create the "yellow" status messages (request.user.add_message), and the LogEntry objects. are there any better approaches? gabor is there perhaps a better way? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---