Re: jQuery UI Stylesheet

2011-01-17 Thread Torbjorn
Does any of the link to the static files work? Can you point your browser to: {{ STATIC_URL }}jqueryui/css/style.css (exchange STATIC_URL of course)? Can you point it to {{ STATIC_URL }}jqueryui/css/ui-lightness/jquery- ui-1.8.8.custom.css {{ STATIC_URL }}jqueryui/js/jquery-1.4.4.min.js {{ STATIC_U

Re: Why INSERT instead of UPDATE?

2010-11-07 Thread Torbjorn
categories = property(_getCategories) and the form: class PartialCourseForm(ModelForm): class Meta: model = Course exclude = ('owner') Thanks /Torbjörn On 7 Nov, 16:34, Marc Aymerich wrote: > On Sun, Nov 7, 2010 at 4:21 PM, Torbjorn > > > > > >

Why INSERT instead of UPDATE?

2010-11-07 Thread Torbjorn
Hi, I want to update a record but somehow it becomes an INSERT instead. This is my code: def editcourse(request, course_id): course= Course.objects.get(id=course_id) if request.method == 'POST': form = PartialCourseForm(request.POST, instance=course) if form.is_valid():

Re: How do I use JQuery UI tabs with Django (or other tab-solution)?

2010-10-13 Thread Torbjorn
Thanks for the replies. Jonathan: No I'm not stuck to JQuery, I will consider dojango. Thanks David: I'm newbie at JavaScript (as we can see) and I only use JQuery UI for the tabs. Here is how I use it in my base.html Tabs

How do I use JQuery UI tabs with Django (or other tab-solution)?

2010-10-13 Thread Torbjorn
Hi, I would like to use the JQuery UI tabs in my Django app but how should I do that? I cannot figure it out with Django's template system. One problem is inheritance but maybe I should skip that? In my first shot I got the tabs nice looking, one template for each tab and I can navigate between th