Re: Django cannot find my templates directory

2014-03-10 Thread Mike Dewhirst
On 11/03/2014 1:25pm, Cherrymae Tulfo wrote: hi everyone! i am looking for solutions with regards to templates directory . . i have this results.html where the data should be displayed after it is queried through views.py. . it should display the barangay id and the name of the barangay itself.

Re: Trying to set up hashed versioning in Django for static files

2014-03-10 Thread Vernon Burt
That seemed to do it.. I definitly learned a lot about serving these files. Thank you to both Tom and Camilo, you helped me a lot! Thanks again, Vernon Burt On Monday, March 10, 2014 6:02:30 AM UTC-7, Tom Evans wrote: > > On Mon, Mar 10, 2014 at 1:02 AM, Vernon Burt > >

Django cannot find my templates directory

2014-03-10 Thread Cherrymae Tulfo
hi everyone! i am looking for solutions with regards to templates directory . . i have this results.html where the data should be displayed after it is queried through views.py. . it should display the barangay id and the name of the barangay itself. . *{% block content %} {% if results %}

Re: Ticket #7231, join in extra for querysets ?

2014-03-10 Thread Russell Keith-Magee
On Tue, Mar 11, 2014 at 2:14 AM, Matthieu Rigal wrote: > Hi guys, > > I wanted to talk about the ticket > https://code.djangoproject.com/ticket/7231 in the django-dev forum, but > my contribution was just deleted, so I'm posting it here to at least get a > chance for a

Re: Gunicor + Postgres + Python 3

2014-03-10 Thread Henrique Oliveira
The request do not reach the view On Monday, March 10, 2014 1:14:18 AM UTC-3, Henrique Oliveira wrote: > > Hi there, > > I have set Django + gunicorn + python 3 in a production env, but I am > gettin critical timeout on simple request(home). > Any Ideas? > > 14-03-09 23:11:21 [14029] [INFO]

Re: Supporting a wider range of awesome PostgreSQL features in Django - including hstore, JSON and full text search

2014-03-10 Thread Russell Keith-Magee
On Mon, Mar 10, 2014 at 7:22 PM, Matthieu Rigal wrote: > Is it somehow planned that Django Users can dialog with him to express > some desires ? > > For example, I would be very happy to see a reimplementation of the > annotate and aggregate functions, as they make the

Re: FieldError with ManyToMany relationship in ModelAdmin list_display item when server is not in DEBUG mode

2014-03-10 Thread Andrew Niccolo Pangilinan
Hi, Have you had any solutions to this yet? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group,

Ticket #7231, join in extra for querysets ?

2014-03-10 Thread Matthieu Rigal
Hi guys, I wanted to talk about the ticket https://code.djangoproject.com/ticket/7231 in the django-dev forum, but my contribution was just deleted, so I'm posting it here to at least get a chance for a discussion. One argument of the core devs in the ticket is that extra is a bad thing to

Re: ".count" in template does not work for "raw" queries

2014-03-10 Thread C. Kirby
The reason .count() doesn't work there is because count() runs a select count(*) query, but that can't run correctly with .raw(). The way to get the count is to cast the Resulting RawQuerySet to a list and run len() on it. This will result in the RawQuerySet getting evaluated however.

Re: DDT not showing

2014-03-10 Thread ajohnston
Make sure you include your client/browser IP address in the INTERNAL_IPS setting (settings.py) something like this: INTERNAL_IPS = ('127.0.0.1','192.168.1.112') -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group

Re: Trying to set up hashed versioning in Django for static files

2014-03-10 Thread Tom Evans
On Mon, Mar 10, 2014 at 1:02 AM, Vernon Burt wrote: > I suppose that's my confusion - before this, each application directory had > it's own /static/ directory with /css/, /js/ and /img/ directories as > needed. I adjusted the settings as mentioned and tried the following:

Re: Gunicor + Postgres + Python 3

2014-03-10 Thread Henrique Oliveira
Hi Nick, views.py class LaunchRockForm(ModelForm): class Meta: model = LaunchRock exclude = ['sign_date', 'ip', 'http_refer'] def clean_email(self): try: LaunchRock.objects.get(email=self.cleaned_data['email']) except LaunchRock.DoesNotExist:

django-quiz modification

2014-03-10 Thread orchid barua
I want to modify the django-quiz application.https://github.com/tomwalker/django_quiz The quesiton will be a multiple true false type. Each question will have 5 stem, each will be tested for true/false. Each will carry partial marks eg. 1 will be awarded for a correct ans. And there will be a

Re: Regarding Django job market here in Perth

2014-03-10 Thread Robbie Nolan
Hi Calvin, I hope you are well. Are you still looking for work? Some of the companies I work with are definitely keeping an eye out for talented Python/Django developers at the moment. If you'd like to have a confidential chat about your career options you can get me on 0415 779 338 or email

".count" in template does not work for "raw" queries

2014-03-10 Thread bikeridercz
Dear colleagues, please help, it seem that count method used in template does not work for collections of records populated in views via direct "raw" query. *Example in view:* recordset = ASSETS.objects.raw('select s.col1, s.col2 from table s where s.col3 = to_char(%s)', [xxx]) *Example in

Re: Supporting a wider range of awesome PostgreSQL features in Django - including hstore, JSON and full text search

2014-03-10 Thread Matthieu Rigal
Is it somehow planned that Django Users can dialog with him to express some desires ? For example, I would be very happy to see a reimplementation of the annotate and aggregate functions, as they make the queries so slow by grouping by all the fields that I always have to use raw SQL to group