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 t
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 o
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 r
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 s
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:
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:
Yes - that is how it sh
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
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.
Alternat
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
ha
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, sen
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 queries so slow by
> groupin
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] Liste
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 discussion.
>
This statemen
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 %}
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
> >
> wrote:
> > I suppos
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.
Dennis
Your use case is not very clear; but it sounds more like you need a CMS,
even a simple one. There you can design templates that will hold all your
page content in a layout of your choice. There are many Django-based CMS
e.g. https://pythonhosted.org/django-page-cms/
Derek
(PS Your t
17 matches
Mail list logo