Re: get all columns as a list

2016-05-24 Thread James Schneider
On May 24, 2016 9:11 AM, "Derek" wrote: > > Interesting. In all the cases I can think of, I would almost always want to keep the most recent check (not the oldest)... that tells me how recently the status of X was checked. A more pedantic administrator might also want all

overriding date format

2016-05-24 Thread Larry Martell
I have 1 page in my app where I want to override the app's date format. I tried assigning to settings.DATE_FORMAT in the view but that had no effect. I know I can format the date in the template, but without making a lot of changes, I don't know what fields are dates. I thought perhaps the date

Re: Post doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS

2016-05-24 Thread Paul Martin
You've added your Post model to MIDDLEWARE_CLASSES which is incorrect.You need to add your app name containing the post model to INSTALLED_APPS On Tuesday, 24 May 2016 13:54:04 UTC+1, meInvent bbird wrote: > > Performing system checks... > > System check identified no issues (0 silenced). > >

Re: get all columns as a list

2016-05-24 Thread Derek
Interesting. In all the cases I can think of, I would almost always want to keep the most recent check (not the oldest)... that tells me how recently the status of X was checked. A more pedantic administrator might also want all those times stored, so a history can be created. On Monday, 23

Re: Double free or Corruption error when using GeoDjango

2016-05-24 Thread tapan pandita
I have some more information. I set the MALLOC_CHECK_ environment variable to 3 and I got a backtrace. I have an issue open on gevent and the backtrace with other details is here: https://github.com/gevent/gevent/issues/808#issuecomment-221206899 It looks like a bug with how libgeos works with

Re: Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

2016-05-24 Thread ludovic coues
It should work better this way: Save the url template tag take a route name, not an url as it first argument. 2016-05-24 10:19 GMT+02:00 meInvent bbird : > Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments > '{}' not found. 0 pattern(s) tried: [] > >

Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

2016-05-24 Thread meInvent bbird
would like to press save button then call post_detail and append to csv, it return error Save Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: [] urls.py from django.conf.urls import include, url from . import views

Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: []

2016-05-24 Thread meInvent bbird
Reverse for 'reg/{{post.pk}}/' with arguments '()' and keyword arguments '{}' not found. 0 pattern(s) tried: [] i follow django girl web , expect to go to /reg to fill a form and press save button then go to web /reg/ it has error INSTALLED_APPS = ( 'django.contrib.admin',

Post doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS

2016-05-24 Thread meInvent bbird
Performing system checks... System check identified no issues (0 silenced). You have unapplied migrations; your app may not work properly until they are applied. Run 'python manage.py migrate' to apply them. May 24, 2016 - 05:07:14 Django version 1.8.7, using settings 'site1.settings' Starting

Loading staticfiles in every single template file

2016-05-24 Thread Branko Zivanovic
I'm not sure why I need to add following line *{% load staticfiles %} *in every single template file if there is inheritance.Can I avoid this somehow? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: How to aggregate on insert?

2016-05-24 Thread Erik Cederstrand
> Den 24. maj 2016 kl. 01.11 skrev James Schneider : > On Mon, May 23, 2016 at 12:58 PM, Erik Cederstrand > wrote: > > I have inherited a legacy Item model that has a composite unique key > consisting of a Customer ID and a per-customer,