Re: How do I display a map with GeoDjango models?

2015-05-14 Thread Thomas Levine
more detail on the django-leaflet site > (e.g. https://github.com/makinacorpus/django-leaflet#default-tiles-layer ) > > > On Wednesday, 13 May 2015 21:36:13 UTC+2, Thomas Levine wrote: > > > > I have multiple GeoDjango models (http://dada.pink/scott2/map/models.py) &

How do I display a map with GeoDjango models?

2015-05-13 Thread Thomas Levine
I have multiple GeoDjango models (http://dada.pink/scott2/map/models.py) and want them to be layers on the same map. Surely there's a magic way to specify this. What do I do? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from t

Re: Django Https issue

2015-05-12 Thread Thomas Levine
I searched the internet for this error message On 11 May 20:41, zichuanxi...@163.com wrote: > *use django shell with uwsgi:* > *I get an error:*** > > and ca

Re: Two projects fail to import the same main app when I turn on both in Apache

2015-05-07 Thread Thomas Levine
On Tue, May 5, 2015 at 10:32 AM, Thomas Levine <_...@thomaslevine.com> wrote: > I have two sites that I want to host on the same computer. > I have root access on this computer. The two sites are called > "dadaportal", which is on https://thomaslevine.com, and "

Re: How do I debug 400 errors that arise from turning off debug mode?

2015-05-07 Thread Thomas Levine
;http://localhost:8000/admin/login/?next=/admin/' Unfortunately, while email works with the development server, it does not work on the production server, and I have yet to figure out why. On 07 May 13:43, Thomas Levine wrote: > Hi, > > Every page on my site returns a status code of

Re: Sending Data from client side(another computer) to Django(my computer) using Socket library

2015-05-07 Thread Thomas Levine
On 07 May 16:00, steve malise wrote: > The error comes when i runserver and send data from another computer to > django,then i get this "code 400, message Bad request syntax ( data from > another computer)" This is because On 07 May 11:42, Tom Evans wrote: > Eurgh. Your hand-crafted HTTP request

Re: JSON data

2015-05-07 Thread Thomas Levine
> which part is slow? the API, the processing of the JSON, or the > display? And here's how you can check that. Insert the following line between the different steps that Tim itemized, print(time.perf_counter()) subtract the numbers that get printed, and then determine which step is slow.

How do I debug 400 errors that arise from turning off debug mode?

2015-05-07 Thread Thomas Levine
Hi, Every page on my site returns a status code of 400 when I set `debug = False` in my settings file, and this doesn't happen if I switch it to `True`. How can I determine what is going wrong? I have not managed to find it in the Django loggers (through email or through a custom logging facility

Re: Two projects fail to import the same main app when I turn on both in Apache

2015-05-07 Thread Thomas Levine
Indeed! Thanks Tom On 05 May 13:49, Tom Evans wrote: > On Tue, May 5, 2015 at 10:32 AM, Thomas Levine <_...@thomaslevine.com> wrote: > > Hi, > > > > For like the first time ever I want to make complicated websites, > > so using Django finally seems like a good i

Two projects fail to import the same main app when I turn on both in Apache

2015-05-05 Thread Thomas Levine
Hi, For like the first time ever I want to make complicated websites, so using Django finally seems like a good idea. And it is! All the small building blocks that I had never thought of are already here. Anyway, the part that's relevant to my present concern is that I haven't deployed Django many