Yes, I tried removing the all() but that does not change anything.
On Sat, Jun 6, 2015 at 3:57 PM, James Schneider
wrote:
> Have you tried taking out the .all()? You don't need that if you're using
> filter(). I don't think that will help though.
>
> -James
> On Jun 6, 2015 12:42 PM, "Michael"
Have you tried taking out the .all()? You don't need that if you're using
filter(). I don't think that will help though.
-James
On Jun 6, 2015 12:42 PM, "Michael" wrote:
> Just to give more information about the solution using Case, When, etc.
> Here is what I tried:
>
> qs = User.objects.all().
Just to give more information about the solution using Case, When, etc.
Here is what I tried:
qs = User.objects.all().annotate(modela__count=models.Count(Case(When(
modela__deleted_at__isnull=True, then=1
which turns into the following SQL query:
SELECT COUNT(CASE WHEN "modela"."deleted_at"
Hello,
When doing the following, the LEFT OUTER JOIN does not work as expected:
not all the Users are in the result.
qs = User.objects.all().filter(modela__deleted_at__isnull=True).annotate(
modela__count=models.Count('modela', distinct=True))
Here is the simplified version of the query genera
Where is your meta class ?
It is not in __init__() function, is it?
if it is then problem is there.
class Meta:
> model = CustomUser
> fields = ['email',]
>
del self.fields['username']
>
this is wrong, use exclude in Meta class to remove fields
--
"La utopía sirve para caminar" Fernando
If you do a virtual environment with pip it is easy.
$ pip uninstall django
2015-06-02 23:45 GMT-06:00 Siddharth Tanna :
> copy the file named django-admin from django folder in c: and paste it in
> python folder[root directory]
>
> --
> You received this message because you are subscribed to
Some useful links:
1. CRM system
>
https://github.com/kunitoki/nublas
-> client database
>
-> ticket system (client communication including sending emails from
> backend)
>
https://github.com/wyldebeast-wunderliebe/mrwolfe
https://github.com/rossp/django-helpdesk
2. Shop
> -> c
Did you serch for something like this https://www.*odoo*.com/, It is not
django but it is in python and released under the AGPL license.
If you want to build your software stack based in django then start
searching in https://www.djangopackages.com/.
1. *CRM* system
-> client database
-> tick
If you want open source IDE maybe aptana is the best option for me.
I also usted to progam with ninja ide and eclipse + pydev, but now i use
pluma in small projects and aptana in big projects, and obviously django
shell and admin commands on console.
El lunes, 1 de junio de 2015, James Schneider
Which exact Django version did you use for generating and applying the
migrations? 1.7 as well as 1.8 had a few bugs regarding bytestrings.
They have been fixed in 1.7.something and 1.8.something. I'd need to
look up the exact patch version.
/Markus
On Fri, Jun 05, 2015 at 04:29:02AM -0700, Влад
On Saturday, 6 June 2015 18:26:49 UTC+5:30, Great Avenger Singh wrote:
>
> Hello Django and People,
>
> Please let me know Do I also need to make changes in urls.py and views.py
> ? or in template/home.html?
>
Apology for incomplete mail:
I am using Django 1.8 Apache 2.X and Ubuntu 14.04
Hello Django and People,
I am able to develop my first application(Google OAuth2) with Django using
Python_Social_Auth. It was real fun!
I am also able to run Django on Production server using Apache and mod_wsgi.
Right now stuck in small problem. My application is running in the server
root l
12 matches
Mail list logo