How to remove breadcrumbs in Django admin

2014-03-16 Thread Marwan Al-Sabbagh
For reference I've asked this question on stackoverflow: http://stackoverflow.com/q/22345527/1699750 How can I use nav-global for navigation and hide the breadcrumbs in the django admin app. I've found ways to do this but they seem hackish and problematic. I'm looking for a clean reliable

Re: "Beginning Geo Django: Rich Gis Web Applications With Python" Where can I get the book?

2014-03-16 Thread ruomu sh
Yes I understand. But I could not figure out how can I get it here at Nepal. I will buy it. I find different price listed on internet. Some site say it is out of stock. Is it published only limited copies? On Friday, February 21, 2014 6:47:20 PM UTC+5:45, Tom Evans wrote: > > On Fri, Feb 21,

Re: Is there a good reason why Django querysets can't be intersected?

2014-03-16 Thread James Bennett
QuerySets have supported the '&' operator (as measured by implementing the __and__() method) for as long as they've been in Django; the implementation dates all the way back to 0.95. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Is there a good reason why Django querysets can't be intersected?

2014-03-16 Thread Shawn Milochik
I don't know anything about efficiency, but it works at least as far back as Django 1.3. I'd assume that, with lazy evaluation, it's probably about as efficient as anything in the ORM. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Is there a better way to do this?

2014-03-16 Thread Gene Coetzee
Very helpful, thanks Mike! On Sunday, March 16, 2014 7:34:11 PM UTC-4, Mike Dewhirst wrote: > > On 17/03/2014 9:59am, Gene Coetzee wrote: > > Hi There! > > > > Starting out with Django, and was looking for a bit of guidance. I am > > trying to establish a Organizational structure for

Re: Is there a good reason why Django querysets can't be intersected?

2014-03-16 Thread Ram Rachum
Also, is it a recently added feature? On Mon, Mar 17, 2014 at 2:33 AM, Ram Rachum wrote: > Oh my fucking God I'm an idiot. I distinctly remember it not working. > Happy it's working! > > Is it implemented efficiently? > > > > On Mon, Mar 17, 2014 at 2:29 AM, Shawn Milochik

Re: Is there a good reason why Django querysets can't be intersected?

2014-03-16 Thread Ram Rachum
Oh my fucking God I'm an idiot. I distinctly remember it not working. Happy it's working! Is it implemented efficiently? On Mon, Mar 17, 2014 at 2:29 AM, Shawn Milochik wrote: > It seems to work for me: > > a = Client.objects.filter(name__istartswith='a')

Re: Is there a good reason why Django querysets can't be intersected?

2014-03-16 Thread Shawn Milochik
It seems to work for me: a = Client.objects.filter(name__istartswith='a') b = Client.objects.filter(name__iendswith='t') print a.count() print b.count() c = a & b print

Is there a good reason why Django querysets can't be intersected?

2014-03-16 Thread cool-RR
Hi everyone, I understand that there's no way to get the intersection of two querysets in Django. Whenever I need to get the intersection of two querysets, I need to refactor my code to get pure Qs for those querysets and intersect those. This can be annoying sometimes. My question: Is there

Re: Is there a better way to do this?

2014-03-16 Thread Mike Dewhirst
On 17/03/2014 9:59am, Gene Coetzee wrote: Hi There! Starting out with Django, and was looking for a bit of guidance. I am trying to establish a Organizational structure for employee/supervisor type relationships. Since each of these individuals will be a user, I am extending trying to also take

Is there a better way to do this?

2014-03-16 Thread Gene Coetzee
Hi There! Starting out with Django, and was looking for a bit of guidance. I am trying to establish a Organizational structure for employee/supervisor type relationships. Since each of these individuals will be a user, I am extending trying to also take advantage of django's built-in

Extended profile not being saved django-allauth

2014-03-16 Thread voger
I am trying to extend the user profile according to this page https://docs.djangoproject.com/en/1.6/topics/auth/customizing/#extending-the-existing-user-model I am using django-allauth for registration. My problem is that when the user registers I can't find any new rows in the database. The

Re: problem with integrating bootstrap 3.1.1 and django 1.6

2014-03-16 Thread Camilo Torres
On Sunday, March 16, 2014 1:58:50 AM UTC-4:30, rafiee.nima wrote: > > I'm using development server . and when i use href="{{STATIC_URL}}css/bootstrap.css" rel="stylesheet" media="screen"> it > seems work correctly but when I use media="screen"> my project file and directory structure is like

Re: problem with integrating bootstrap 3.1.1 and django 1.6

2014-03-16 Thread rafiee.nima
I'm using development server . and when i use it seems work correctly but when I use my project file and directory structure is like : 1. root project folder 1. app folder 2. static 1. css 1. bootstarp.css 2. js 3. img 3. media 4. template