Djago URL conf error

2016-11-30 Thread Paul
I have the following message when I try to use reverse or reverse_lazy: The included URLconf 'ph.urls' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import *When I use the urls (without using reverse or rev

Django Admin site paginator does not appear

2016-11-30 Thread Xavier Pidelaserra
I'm setting up a django paginator in the Django Admin Site in order to display the elements 30by30 on the changelist. To do so, I'm using "list_per_page=30" on the DocumentAdmin. It works fine on Firefox, but the paginator doesn't appear on Safari, either in iMac, iPad or iPhone... so I can

GeoDjango with Docker

2016-11-30 Thread Tadeo C
Hi, I'm starting a project with GeoDjango and I want to use Docker containers to build the stack (GeoDjango, Nginx, Postgis) preferably Alpine base images. Does anyone has successful done this before? Where can I find a useful docker-compose.yml or a tested and working updated image? Thanks a lo

makemigrations generates new migration when nothing has changed

2016-11-30 Thread Francis Fisher
Any idea why makemigrations would fail to recognise that a migration has already been generated? makemigrations.py is a script which calls makemigrations with appropriate django settings. If I run this once, it will generate the initial migration, but every time I run it subsequently, it will r

Django: UpdateView - dispatch() : reduce the number of queries

2016-11-30 Thread Paul
I have a Product Model, foreign key to Company Model, onetoone key to User. I override the dispatch(method) to check if the user has rights to edit the object(product). I'm trying to optimize the queries to the database because some of them are duplicates. def dispatch(self, request, *args, *

Django and wsgiref simple_server.py line 33

2016-11-30 Thread NoviceSortOf
REF: /usr/lib64/python2.7/wsgiref/simple_server.py", line 33, On a fresh install of Python 2.7 and Django 1.6.12 attempting to resolve the following error. When running... python manage.py runserver 0.0.0.0:8000 And then loading a page on a browser I get the following. *

Re: makemigrations generates new migration when nothing has changed

2016-11-30 Thread Mike Dewhirst
On 1/12/2016 3:56 AM, Francis Fisher wrote: Any idea why makemigrations would fail to recognise that a migration has already been generated? I think migrations is seeing field choices differently each time it scans the model. Can you use a list rather than a tuple for choices? (Or vice versa

Re: Django and asynchronous tasks

2016-11-30 Thread Andrew Godwin
Hi Alain, I'm not quite sure what you're trying to accomplish by mixing rq and channels; Channels just allows you to either write things against WebSocket connections, or to build your own eventing system from scratch on the same base code. If you're trying to return results to a webpage, you'll