Re: Geodjango tutorials?

2010-04-04 Thread Tyler Erickson
Another tutorial: http://linfiniti.com/2009/11/geodjango-tutorial/ -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+un

Re: Django/Apache/mod_wsgi: How do I specify the SCRIPT_NAME for non-root URLs?

2010-01-08 Thread Tyler Erickson
Fixed it. It turned out to be a problem with how the django project templates were written. Both of the projects that I was experimenting with were using hardcorded href values, instead of using a url template tag. hardcoded example: Per-geometry styles url template tag example: Per-geometry sty

Re: Django/Apache/mod_wsgi: How do I specify the SCRIPT_NAME for non-root URLs?

2010-01-08 Thread Tyler Erickson
I added the WSGI logging middleware to write to the Apache log as described in: http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Tracking_Request_and_Response and yes it appears that my SCRIPT_NAME environment variable is being automatically set (see excerpts below). So I guess it is Djan

Django/Apache/mod_wsgi: How do I specify the SCRIPT_NAME for non-root URLs?

2010-01-06 Thread Tyler Erickson
I am trying to use Apache and mod_wsgi to serve multiple django sites. The django sites are served up fine when at the root URL, but when served from a sub-URL the portion of the the URL consumed by Apache disappears from any links created in the django site pages. >From reading throught the WSGI

Re: Is there a bug in queryset distinct() filtration in Postgre SQL?

2009-04-30 Thread Tyler Erickson
Malcolm, As you guessed, it was the default ordering that was causing the problem for me. After removing the default ordering from the model, distinct() works as expected. I still find it strange that distinct().count() was not affected by the model's default ordering, while the actual list of

Re: Is there a bug in queryset distinct() filtration in Postgre SQL?

2009-04-23 Thread Tyler Erickson
Following up on my last post... After using distinct(), the count() is what I expect, but when I iterate through the queryset results there are more results that I expect, and the count of the queryset changes (see example below). -- def get_unique_vehicles

Re: Is there a bug in queryset distinct() filtration in Postgre SQL?

2009-04-23 Thread Tyler Erickson
I seem to be encountering the same or similar issue. The distinct() method seems to have no affect on my queryset. I am using PostgreSQL, and the django.contrib.gis.db models object. ipdb> p TruckLog.objects.values('vehicleid') [{'vehicleid': 80533}, {'vehicleid': 80480}, {'vehicleid': 80437}, {

Custom SQL not installed while running test suite

2009-01-03 Thread Tyler Erickson
I have an app that provides some custom SQL statements for populating the test database (located in /particles/sql/particle.sql). The app's database table (particles_particle) is populated correctly when I run the test case for the app (i.e. python manage.py test particles) but the database tabl

ipdb causing problems with docstring tests of default apps

2009-01-03 Thread Tyler Erickson
I have noticed that running unit tests for my own apps can interfere with the testing of some of the django internal apps (auth, sessions, sites, etc.). I have been using ipdb to debug and to help write views and tests, and it appears that importing the ipdb module (import ipdb) causes many of t

GIS admin: how to remove individual polygons from a MultiPolygonField?

2008-09-07 Thread Tyler Erickson
I've been experimenting with the admin interface for a MultiPolygonField in Django 1.0. (A very useful bit of functionality!) The OpenLayers map interface loads up correctly, and I can add and edit multiple polygons, but I can't seem to delete any of the individual polygons. (The best I can see

Re: GeoDjangoFriendly?

2008-06-22 Thread Tyler Erickson
-started-1-of-4/ http://blog.tylerickson.net/2008/06/geodjango-on-slicehost-getting-started-1-of-4/ - Tyler Tyler Erickson-3 wrote: > > > Alex, > > I would be interested in hearing if your remaining issues with the > GeoDjango install get resolved. > > Following the W

Re: GeoDjangoFriendly?

2008-05-08 Thread Tyler Erickson
Alex, I would be interested in hearing if your remaining issues with the GeoDjango install get resolved. Following the WebFaction forum post, it looks like there is another user with a successful GeoDjango install (overcoming a GEOS config problem). http://forum.webfaction.com/viewtopic.php?id=9

GeoDjangoFriendly?

2008-05-04 Thread Tyler Erickson
Anyone have experience/opinions on hosting GeoDjango with PostGIS on WebFaction or Slicehost (or any other of the DjangoFriendly hosts)? I'm wondering if WebFaction shared account allows you enough freedom to install all the geodjango dependencies... --~--~-~--~~~---~-

Re: trying to edit the geodjango wiki page

2008-04-24 Thread Tyler Erickson
That worked. Thanks! Darryl Ross wrote: > I believe you need to go to the 'settings' page and enter a name and > email address first. > > Cheers > -D > > Tyler Erickson wrote: > > What do I need to do to edit the following page? > > http://code.djangopr

trying to edit the geodjango wiki page

2008-04-23 Thread Tyler Erickson
What do I need to do to edit the following page? http://code.djangoproject.com/wiki/GeoDjango It lets me enter edit mode and preview the changes, but when I try to submit the change I get: "500 Internal Server Error (Submission rejected as potential spam)" --~--~-~--~~~---

problem installing GeoDjango (ERROR: Testing closing Polygon objects)

2008-04-13 Thread Tyler Erickson
I have been trying to install GeoDjango for the first time following the instructions on: http://code.djangoproject.com/wiki/GeoDjangoInstall The install seems to go fine, but I get an error when running the test_gdal.run() test that is testing the closing of a polygon object (output included at e