Re: Generating a timeseries and aggregation/annotation using QuerySet.extra()

2015-09-11 Thread Wannabe Coder
Alright I get it now! Thanks for the clarification! From the looks of it, being able to manipulate lhs and rhs can cover a lot of possible SQL statements in a very reusable way, though it will still be nice to have that kind of transform/expression available out-of-the-box, since I think it is

Re: Generating a timeseries and aggregation/annotation using QuerySet.extra()

2015-09-11 Thread Wannabe Coder
Alright I get it now! Thanks for the clarification! From the looks of it, being able to manipulate lhs and rhs can cover a lot of possible SQL statements in a very reusable way, though it will still be nice to have that kind of transform/expression available out-of-the-box, since I think it is

Re: CSRF cookie not set issue

2015-09-11 Thread Kevin Anyanwu
Can anyone help ? On Thu, Sep 10, 2015 at 8:34 PM, Kevin Anyanwu wrote: > base_1.html > > > > > > > goals > > > > > > > > > > > > > Cirriculmn > Notes > Collaborte > > > > > charset="utf-8"> > > >

Self-referential User relationship

2015-09-11 Thread thinkwell
Hello, I have to do a bit of a code rewrite and I want to measure twice and cut once with this. I need to store use extra information about each user, so I'm creating a profile. And each user can follow other users, so I create a ManyToMany field referencing the User model, and not "self"

Downsides of calling Model.clean() from Model.save()?

2015-09-11 Thread TheBeardedTemplar
Hey all, I have a model with some fairly strict rules on what is or isn't allowed and I'd like to perform some validation. The model is created via various forms, other functions, and via api calls and so validating the data before the model is created would be quite complicated. Reading on

Re: Angular.js advanced tutorials?

2015-09-11 Thread Javier Guerra Giraldez
On Fri, Sep 11, 2015 at 5:03 PM, ThomasTheDjangoFan wrote: > I am searching for an angular.js tutorial that shows me how to do some > enhanced ui stuff: i think both angular and react are oriented primarily not to "enhanced ui", but to whole frontend

Re: What frontend-tools to use for a new CRM project? Shall I use Django OR switch to Meteor.js?

2015-09-11 Thread ThomasTheDjangoFan
Hi guys, I started checking out angular.js - it looks really good. It seems like it has a lot of great tools build in - just like you have said. In search for more advanded and detailed angular-tutorials I opened this new topic:

Angular.js advanced tutorials?

2015-09-11 Thread ThomasTheDjangoFan
Hi guys, I am searching for an angular.js tutorial that shows me how to do some enhanced ui stuff: 1) What is best practise for have *multiple forms* (formsets with inline-forms, *for example multiple adresses for a contact* as an inline-form) on one page with angularjs and connect it to a

Re: Any good tutorials for django-rest-framework and React.Js?

2015-09-11 Thread ThomasTheDjangoFan
Hi Derek, right now React.js is seems to be talked about everywhere. I actually listend to some podcasts talking about it - like I said the meteor community seems to be a big fan and meteor even has core support for it. And even LincolnLoop say that they use react. So when starting this

django 1.8 , makemigrations throwing errors

2015-09-11 Thread John Emmatty
I ran makemigrations against my legacy, MySQL database and it created models.py file for me, I copied the file to my applications package directory and ran makemigrations again after adding a table to extend the default users table. Now makemigrations is throwing following errors . I created a

Re: Any good tutorials for django-rest-framework and React.Js?

2015-09-11 Thread Derek
I am curious - in a previous thread, many respondents pointed out Angular as being a good framework to use, and one poster said "a quick Google search shows that React is barely supported yet (in terms of available Django apps)" - so why are you choosing that route? Given you already said "I

Re: How to "stop" validation when having errors (is_valid) for form?

2015-09-11 Thread 'Tom Evans' via Django users
On Fri, Sep 11, 2015 at 7:37 AM, wrote: > Example: I have 2 on a html page, which is a form (assume it is > login form, with username and password, both are required and will do > validation on this.). > > The behavior of is_valid I see is: > When submit, the returned

Re: Generating a timeseries and aggregation/annotation using QuerySet.extra()

2015-09-11 Thread 'Tom Evans' via Django users
On Fri, Sep 11, 2015 at 1:15 PM, Wannabe Coder wrote: > Hello everyone! > > I already created a ticket detailing my use case, and one of the developers > pointed me to this discussion group. I am not quite satisfied with the > response I got since the DateTransforms that

Generating a timeseries and aggregation/annotation using QuerySet.extra()

2015-09-11 Thread Wannabe Coder
Hello everyone! I already created a ticket detailing my use case, and one of the developers pointed me to this discussion group. I am not quite satisfied with the response I got since the DateTransforms that will be released in Django 1.9 only

Re: access django admin got error 500

2015-09-11 Thread asarkar1...@gmail.com
Where are you hosting this web site ? Sent from my HTC - Reply message - From: "erik freaks" To: Subject: access django admin got error 500 Date: Fri, Sep 11, 2015 8:29 AM Hi, I'm new in django, I had create simple website using

Re: access django admin got error 500

2015-09-11 Thread swaraj aryan
Try to use wsgi thing.also u have to install wsgi module and also mention that in httpd.conf file about wsgi module.later make sure you are mentioning right path in conf file directing towards right django code. On 11 Sep 2015 12:21, "erik freaks" wrote: > Hi, I'm new in

Re: access django admin got error 500

2015-09-11 Thread Mike Dewhirst
On 11/09/2015 3:59 AM, erik freaks wrote: Hi, I'm new in django, I had create simple website using django and deploy it to apache server, but when I try to access admin page I got error 500.. Try setting DEBUG = True so Django can report the actual error for you. Doing this is normal in

Re: access django admin got error 500

2015-09-11 Thread Nihad Dizdarevic
https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/#admins-and-managers I hope this helps you Am Freitag, 11. September 2015 08:51:51 UTC+2 schrieb freaksnoid: > > Hi, I'm new in django, I had create simple website using django and deploy > it to apache server, but when I try to

Re: access django admin got error 500

2015-09-11 Thread Nihad Dizdarevic
https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/#admins-and-managers I hope this helps you Am Freitag, 11. September 2015 08:51:51 UTC+2 schrieb freaksnoid: > > Hi, I'm new in django, I had create simple website using django and deploy > it to apache server, but when I try to

Re: access django admin got error 500

2015-09-11 Thread James Schneider
You'll need to provide more information. What do the apache logs state that the error was? was there a traceback? Can you enable DEBUG temporarily to pull down the traceback? -James On Sep 10, 2015 11:51 PM, "erik freaks" wrote: > Hi, I'm new in django, I had create simple

Sort Custom method with Inlines

2015-09-11 Thread MATEO BOHORQUEZ
from django.contrib import admin from animalitos.models import Animal, Adoptante, Adoptar from django.db import models #Animal > Table of cardinality N, the primary key is idAnimal #Adoptante > Table of cardinality N, the primary key is idAdoptante #Adoptar > is a table created of N:N

access django admin got error 500

2015-09-11 Thread erik freaks
Hi, I'm new in django, I had create simple website using django and deploy it to apache server, but when I try to access admin page I got error 500.. please someone with experience with django+apache help me.. thanks -- You received this message because you are subscribed to the Google Groups

Sort Custom method with Inlines

2015-09-11 Thread DAVID MATEO BOHORQUEZ GALEANO
from django.contrib import admin from animalitos.models import Animal, Adoptante, Adoptar from django.db import models #Animal > Table of cardinality N, the primary key is idAnimal #Adoptante > Table of cardinality N, the primary key is idAdoptante #Adoptar > is a table created of N:N

How to "stop" validation when having errors (is_valid) for form?

2015-09-11 Thread gengshenghong
Example: I have 2 on a html page, which is a form (assume it is login form, with username and password, both are required and will do validation on this.). The behavior of is_valid I see is: When submit, the returned errors for the form are: This field is required (for username) This field is