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)
;
> 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
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
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
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
5 matches
Mail list logo