Newbee stumped again - admin pages doing exactly what they should, but not what I need

2010-03-05 Thread dogfuel
In a model, I have added a method that builds text for a html link (based on model attributes) similar to: - from django.db import models class Destination(models.Model) name = models.CharField(max_length=25) location_nbr = models.CharField(max_length=4)

Re: build URL based on fields for admin change form

2010-03-04 Thread dogfuel
; > map_link =  "%s?%s" % (urlencode(attrs),) > > Shawn > > On Mar 4, 2010, at 5:23 PM, dogfuel wrote: > > > My model for a location has attributes for latitude and longitude - > > when the admin change form is used for editing, I'd like to include a > > url as

build URL based on fields for admin change form

2010-03-04 Thread dogfuel
My model for a location has attributes for latitude and longitude - when the admin change form is used for editing, I'd like to include a url assembled from these attributes i.e.: "http://www.myserver.com/map/map.py?lat==" The (non-django) page map.py already exists, I just want to build the link

Re: newbee issues with 'python manage.py adminindex myApp'

2009-11-28 Thread dogfuel
index page? Thanks! On Nov 28, 2:29 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Sat, Nov 28, 2009 at 1:59 PM, dogfuel <joseph.b.ba...@gmail.com> wrote: > > I believe I'm missing the obvious ... on 1.1.1, I am trying to use the > > adminindex command with manage.p

newbee issues with 'python manage.py adminindex myApp'

2009-11-28 Thread dogfuel
I believe I'm missing the obvious ... on 1.1.1, I am trying to use the adminindex command with manage.py ... I see the below" # python manage.py adminindex myApp Unknown command: 'adminindex' Type 'manage.py help' for usage. My INSTALLED_APPS does include 'django.contrib.admin'. Thanks in