Re: what are the files goes inside "contrib" folder?

2014-02-07 Thread James Turley
The short answer is: it depends what OS you're on, and where your Django package is installed. On Unix-like systems, it'll be somewhere like lib/python2.7/site-packages/django/contrib/ (substitute your python version, obviously). But what goes before 'lib' depends on where your Python libraries

Re: Do you think Django's future is threatened by JS frameworks in both client & server?

2014-01-28 Thread James Turley
I'm not sure I buy this stuff about JS taking over everything. The reason is that client and server are different domains, and we might reasonably expect - even in a pure JS-only shop - people to specialise anyway. Apart from the tiniest start-ups, there isn't really an evolutionary advantage to

Re: Error related to googlebot?

2014-01-24 Thread James Turley
Are you doing any user agent sniffing anywhere? If you make a request having spoofed your UA to match one of the offending Google/Yahoo bots, do you get the same 500 errors? Anything in robots.txt? On Fri, Jan 24, 2014 at 4:44 PM, Doug wrote: > I am having this same exact

Re: Deploying to Heroku for first time, Dynos is blank, not recognizing Procfile

2014-01-07 Thread James Turley
Do you have a requirements.txt file (with all your requirements therein)? Heroku recognises python apps by its presence (although I'm told this is not yet 100% reliable - never tried myself). On Tue, Jan 7, 2014 at 9:55 AM, Vibhu Rishi wrote: > yes. just create a text

Re: 'python manage.py migrate' command gives error even after installing south

2013-11-22 Thread James Turley
line 5, models.py - you've capitalised Class. It should just be 'class', all lower case. JT On Fri, Nov 22, 2013 at 4:41 AM, puneet pandey wrote: > I was going through Django tutorials and found the command - 'python > manage.py migrate' to give output as 'unknown

Re: How do I use mathematical calculations on my forloop Article/Publication list?

2013-11-21 Thread James Turley
On number 3, annotate returns the annotated queryset, not the particular result of the annotation. The annotation is added to each individual object in the set. Turning that into an integer doesn't make sense, because num_publications is a property of *each individual *entry in the set, not the

Re: 'NoneType' object has no attribute '__getitem__' Please help me to debug this

2013-11-06 Thread James Turley
Hi Ham, I was following your thread on the LinkedIn django group and it looked there like you had a couple of simple typos in your CatalogCategory model's __unicode__ method. Did you get round to fixing those? JT On Wed, Nov 6, 2013 at 11:46 AM, Ham Kibz wrote: > Below is

Re: Seeking reviewers for a "Guide to Idiomatic Django Deployment"

2013-11-06 Thread James Turley
Hi George, As a fellow relative n00b to Django (and 'serious' web development), I think this is a very good idea. I'm working through Harry Percival's excellent book, and only got hopelessly lost during the deployment