openlayers TemplateSyntaxError

2009-02-02 Thread Waruna de Silva
Hi , I'm newbie to django as well as geodjango. I tried out first tutorial in geodjango docs using world data. When i tried to add new entry or tying to modified existing entry i get following errors. ""-

models created from database table

2009-02-03 Thread Waruna de Silva
Hi, In Django is it possible to created models automatically from existing database. Thanks Waruna --~--~-~--~~~---~--~~ 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

Re: models created from database table

2009-02-04 Thread Waruna de Silva
Field(primary_key=True) business_id = models.ForeignKey(Business, primary_key=True) regards, Waruna On Tue, Feb 3, 2009 at 5:05 PM, Ramiro Morales wrote: > > On Tue, Feb 3, 2009 at 9:29 AM, Waruna de Silva > wrote: > > Hi, > > > > In Django is it possible to c

Re: models created from database table

2009-02-04 Thread Waruna de Silva
Thanks What is the best possible way to handle that type of a problem On Thu, Feb 5, 2009 at 11:45 AM, Karen Tracey wrote: > On Thu, Feb 5, 2009 at 12:58 AM, Waruna de Silva wrote: > >> Thanks Ramior for info >> >> In Models is it possible to name to Fields as prima

using django in mas os x

2009-02-11 Thread Waruna de Silva
Hi, i am newbie to django and wants to use django framwork in mac os x, Could any body tell me wat is the best possible method to use Django with py-psycopg2 to access postgres data base. thanks in advance waruna --~--~-~--~~~---~--~~ You received this message beca

Customizing geodjango admin mapping interface

2009-02-14 Thread Waruna de Silva
Hi, Currently i am working with Sri Lanka data set, which I used local ordinates not lon lat. I want to customize admin interface where users can add Georapgical data through admin interface, But problem i am having in Geomodel admin class coordinates values are given in Lon Lat is it possible to

Using admin search

2009-04-20 Thread Waruna de Silva
Hi All, I'm building simple search for website, i would like to know whether is possible to use admin search outside the django admin. If yes how can i do that. Any code examples or tutorials. Thank u, Waruna de Silva. --~--~-~--~~~---~--~~ You received

Re: Using admin search

2009-04-20 Thread Waruna de Silva
odels/querysets/#icontains > for simple search: >Entry.objects.get(headline__icontains=search_query) > > For more complex search you need separate search engine like Sphinx > (http://www.sphinxsearch.com/). > > > On Apr 20, 11:22 am, Waruna de Silva wrote: > > H

attributes in a model class

2009-04-29 Thread Waruna de Silva
Hi All, I'm new to python and django. Is there any method or way to get attributes in django.model class. Lets say i have django model called class Person(models.Model): first_name = models.CharField(max_length=50) last_name = models.CharField(max_length=50) address = models.CharFiel

django generic view object_detail problem

2009-05-05 Thread Waruna de Silva
Hi, I am bit new to django. I am using django generic view to display building details from Building module.(Building is model I implemented in my app) this is my url patterns (r'^building/$', list_detail.object_list, building_info), (r'^building/(?P\d+)/$', list_detail.object_detail, building_in

Re: django generic view object_detail problem

2009-05-06 Thread Waruna de Silva
#x27; in its context (not > 'object_detail') > > So that should work: > > {% block content %} > Building > {{ object.name <http://object_detail.name/> }} > {% endblock %} > > -- > Clément > > > On Wed, May 6, 2009 at 1:13 PM, Waruna de Si