Re: Bootstrap Tabs not working with Forloop rendered content

2017-04-15 Thread Richard Jackson
I've actually found a workaround, but if anyone has any thoughts on this I'd be interested to hear them! Rich On 15 April 2017 at 21:14, Richard Jackson <rjackso...@gmail.com> wrote: > Hi everyone, > > Having a Bootstrap/jQuery with Django issue so hope that someone might be

Bootstrap Tabs not working with Forloop rendered content

2017-04-15 Thread Richard Jackson
Hi everyone, Having a Bootstrap/jQuery with Django issue so hope that someone might be able to help. I'm rendering a part of my page to make a Bootstrap 'tab' (docs: link here ) - however the content under the first heading isn't

Returning unique values from a foreign key in a ListView

2017-03-31 Thread Richard Jackson
Hi everyone, *Goal* - I have a ListView built around ModelA. - ModelA has a foreign key to ModelB. - I want to return a list with all unique entries of a required field (i.e. 'foo') from ModelB. *Context* I have a table of clients (ModelA) and a table of jobs I do (ModelB), connected via

Re: Benefit of 'return Foo.objects.all()' in a ListView

2017-02-27 Thread Richard Jackson
c is right, you'd normally use the regroup tag. But let's say you > wanted to do this, then get_queryset isn't the right method. > > It should return a queryset, and one only. > > > > On Saturday 25 February 2017 03:42:11 Richard Jackson wrote: > > > > > class M

Re: Benefit of 'return Foo.objects.all()' in a ListView

2017-02-25 Thread Richard Jackson
, February 25, 2017 at 9:32:32 AM UTC, Melvyn Sopacua wrote: > > Hi Richard, > > On Friday 24 February 2017 15:51:15 Richard Jackson wrote: > > > What is the advantage of including the get_queryset(self) function in > > a ListView? When I've run it with a very basic model

Re: Benefit of 'return Foo.objects.all()' in a ListView

2017-02-25 Thread Richard Jackson
Grand, thank you for clarifying! On Saturday, February 25, 2017 at 9:32:32 AM UTC, Melvyn Sopacua wrote: > > Hi Richard, > > On Friday 24 February 2017 15:51:15 Richard Jackson wrote: > > > What is the advantage of including the get_queryset(self) function in > >

Benefit of 'return Foo.objects.all()' in a ListView

2017-02-24 Thread Richard Jackson
Hi there, I'm starting to learn about Django views and wanted to ground my understanding. What is the advantage of including the get_queryset(self) function in a ListView? When I've run it with a very basic model ('Foo') there doesn't appear to be any difference with/without it - this could

Re: Models/Foreign Keys best practice

2017-02-24 Thread Richard Jackson
('End Date', default=timezone.now) Thanks again! Rich On Wednesday, February 22, 2017 at 6:38:26 PM UTC, Richard Jackson wrote: > > Hi Melvyn - great reply, thank you so much for taking the time to help! > I've got to head out now but will reply tomorrow - just wanted to leave an >

Re: Models/Foreign Keys best practice

2017-02-22 Thread Richard Jackson
gt; good questions and your initial data model defines your application > challenges. It is by far the most important step in application design, so > it's important to get it "as right as possible". > > > > On Wednesday 22 February 2017 06:25:24 Richard Jackson wrote:

Models/Foreign Keys best practice

2017-02-22 Thread Richard Jackson
Hi all, I'm putting together my first app, closely modelled on the Django tutorial, and wanted some advice regarding when to split the various models into different foreign keys. The app lists performances, who's performing, what my role is with them (i.e. conductor, pianist etc.), the venue

Re: Django Debug Toolbar installation

2017-01-29 Thread Richard Jackson
django-debug-toolbar > > On 1/28/17, Richard Jackson <rjack...@gmail.com > wrote: > > Hi everyone, > > > > I've recently installed the Django Debug Toolbar for local use; I've > just > > pushed the code online and am greeted with the below error: > &

Django Debug Toolbar installation

2017-01-28 Thread Richard Jackson
Hi everyone, I've recently installed the Django Debug Toolbar for local use; I've just pushed the code online and am greeted with the below error: [81.95.157.172] out: Traceback (most recent call last): [81.95.157.172] out: File "", line 1, in [81.95.157.172] out: File

Migration issue on Webfaction

2017-01-04 Thread Richard Jackson
Hi there - I'm incredibly inexperienced and using a Mezzanine-powered site, but this should still be an issue with my lack of Django understanding: My site is currently down ("Internal Server Error") due to mishandled migrations. When I try to deploy the code

Deployment/NameError Problem

2017-01-04 Thread Richard Jackson
Hi there I've been having some issues with my Mezzanine-powered site and have solved all issues locally (including a fresh migration covering all additional models). However, when I try to deploy the site to the server (WebFaction) I'm given a NameError: [81.95.157.172] out: File