Re: query join tables

2014-10-12 Thread Tom Lockhart
On Oct 12, 2014, at 10:01 PM, dk wrote: > I have this 2 models > > class Choice(models.Model): > restaurant = models.ForeignKey(Restaurant) > person = models.ForeignKey(Person) > date = models.DateField("time published") > time = models.TimeField("date

query join tables

2014-10-12 Thread dk
I have this 2 models class Choice(models.Model): restaurant = models.ForeignKey(Restaurant) person = models.ForeignKey(Person) date = models.DateField("time published") time = models.TimeField("date published") class Person(models.Model): name =

how to query max count

2014-10-12 Thread dk
I am storing the information in the database like this. class Choice(models.Model): restaurant = models.ForeignKey(Restaurant) person = models.ForeignKey(Person) date = models.DateField("time published") time = models.TimeField("date published") that way I can get the person and

Djago-Brackets (templates support for Adobe Brackets)

2014-10-12 Thread Aliane Abdelouahab
Hi, For Brackets users, here a small extension: https://github.com/abdelouahabb/django-brackets CodeMirror already supports django, but i dont know why they dident added it to Brackets, so with the extension it will be possible. Good templating :) -- You received this message because you are

Re: Question on url routing

2014-10-12 Thread Aliane Abdelouahab
in your class where you defined your 'private' link, you just redirects him everytime he clicks on it, or you make and if-else that is bound to the IP of the admin, so everytime the user clicks on it, he gets a 404 thinking that the link dont exist, else, the admin gets the right page. Le

Re: Upgrade to Django 1.7 - AppRegistryNotReady exception

2014-10-12 Thread m1chael
after: os.environ.setdefault( add: import django django.setup() try that, let us know! ~mike On Sun, Oct 12, 2014 at 9:48 AM, Luca Trifilio wrote: > I'm struggling by trying to make things work after upgrading the Django > version from 1.6.7 to 1.7. It looks

Re: How to get user ID and ID of newly created record in a CreateView?

2014-10-12 Thread Daniel Grace
I get the error: 'CreateFlow' object has no attribute 'user' How do I get the id of the record just created? -- 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

Upgrade to Django 1.7 - AppRegistryNotReady exception

2014-10-12 Thread Luca Trifilio
I'm struggling by trying to make things work after upgrading the Django version from 1.6.7 to 1.7. It looks like I'm not able to focus on the right matter. I try to resume the situation so far. Thing is: if I leave the command django.setup() in my wsgi.py file, when I try to access my