Re: Packaging and development workflow for decoupled apps.

2011-03-11 Thread DaleB
I guess i wasn't clear enough. I am not so much concerned with when to use tags and when to use branches. I am still looking for a smooth development workflow. I created a libs-dir which i put on my python path an put my different apps in it. Okay, now i can refer to my apps from any project

Re: Packaging and development workflow for decoupled apps.

2011-03-11 Thread DaleB
Thank you for all your insights. > I think you are stuck in the monolithic point of view.  I'm also not sure if > you understand that django apps are python modules and the same rules apply.   > > The apps location within the PYTHONPATH is immaterial to a project, as long as > the project can

Packaging and development workflow for decoupled apps.

2011-03-10 Thread DaleB
Hi all, i could use some advice for a good packaging workflow. So far i used to put an "apps"-folder in my project root and i stored all individual apps in a sub-folder. This works, but i thought: "Okay, try to decouple things a bit more and try to create some 'real' reusable apps." So i

Re: Tracking changes of a model

2010-10-30 Thread DaleB
Hi Martin, i think this should give you the basic idea: http://stackoverflow.com/questions/1365963/diff-django-model-objects-with-manytomany-fields Greetings, Andreas On 30 Okt., 12:15, Martin Tiršel wrote: > Hello, > > I am using Django admin to create/update some

best way to build a form for m2m-related models (via intermediary table)?

2009-10-10 Thread DaleB
hi, i am looking for an advice concerning django's forms and formsets. i am creating a ticket system where the assignees and tickets are associated via an intermediary table/model. that's what the models basically looks like: class Ticket(models.Model): title =

Re: is it possible to limit the selectable content types/models for generic foreign keys?

2009-09-17 Thread DaleB
argh... just found this thread: http://groups.google.com/group/django-users/browse_thread/thread/e87ad97774d005a4/d4f7df8e0afd08cf?lnk=raot=1 sorry for the duplication. On Sep 17, 5:52 pm, DaleB <dal...@gmail.com> wrote: > ahoi, > > is it possible to limit the choices for a gene

is it possible to limit the selectable content types/models for generic foreign keys?

2009-09-17 Thread DaleB
ahoi, is it possible to limit the choices for a generic foreign key the way you can do it for regular foreign keys? im a building a task-application where i need the possibilty to attach tasks to objects from certain classes (user, computers, departments). on the other hand i have a lot of

Re: best way to format serialized data?

2009-07-28 Thread DaleB
Thanks for you answer Alex. I'll definitely give your suggestions a go. As i said, i am pretty new to ajax but i surely see your point. So far i found a solution along the lines of this example: http://www.nerdydork.com/django-djson-er-json.html I iterated over my data, put the reformatted data

best way to format serialized data?

2009-07-27 Thread DaleB
hi all, i am just experimenting with ajax following the liveblog-example from 'python web development with django' (http://withdjango.com/). everything works really good apart from the fact the i don't manage to format the serialized data, that is returned by the ajax call: jQuery.each(data,

Re: Switching the sort order in a table (template) - Can you retrieve variables from the extra_context in a view function?

2009-06-16 Thread DaleB
Ups... sorry. I just solved it myself. I overlooked the simple fact that i can use an if/else-construct based on the extra_context in my template So i don't have to access the context from a view at all. Sometimes things are too simple ;-) --~--~-~--~~~---~--~~

Switching the sort order in a table (template) - Can you retrieve variables from the extra_context in a view function?

2009-06-16 Thread DaleB
Hi all, i am looking for solution to sort a table in a template: Basically it's about switching between ascending and descending order. My idea was to store the current sort order in the template's extra_context (extra_context={'dir': sortdir,) and retrieve it from there the next time i call the

how to access and sort by data from intermediary tables in templates

2009-04-17 Thread DaleB
hi all, i have a (probably quite simple) problem concerning the use of intermediary tables. i am trying to create a list of users. users are members of different groups and within these groups they can have several positions/status (e.g. management, staff member, e.g.). my models look like

contrib.comments - sort admin-list by last comment / display add-form inline ?

2009-02-13 Thread DaleB
hi all, i have two questions concerning the comments module. is it possible to include an field in the admin change list that displays the last comment on a certain object and makes the list sortable by 'last commented on'? i think i read somewhere that you can't sort the admin list by foreign