[GeoNode-users] Can I create a map in 2.8 with a specific

Toni Schönbuchner toni.schoenbuchner at csgis.de
Mon Apr 9 13:24:30 PDT 2018


Hi Dave,

> Is there a way to assign the url/primary key to the map when creating it?

Not that i know of. It should be the standard pk field from the queryset wich is
auto incremented. I would check the django documentation (models) for it.
You do not have fixtures by any chance? I think those define pk´s as well.
(untested)

cheers,

Toni

-----------------------------------------------
CSGIS

-----------------------------------------------
Kolonnadenstraße 1
04109 Leipzig
-----------------------------------------------
Mobil	+49/ (0) 176 6680 3198
Tel 		+49/ (0) 341 24 04 738
Fax 		+49/ (0) 341 24 04 73
Web		http://csgis.de
-----------------------------------------------

Hinweis gemäß § 33 BDSG
Daten der Verfahrensbeteiligten werden gespeichert. Dieses Dokument ist ausschließlich für den 
Adressaten bestimmt. Der Inhalt der E-Mail ist vertraulich. Falls Sie diese E-Mail versehentlich 
erhalten haben, rufen Sie uns unter obiger Rufnummer umgehend an und löschen Sie diese Nachricht 
von Ihrem Computer. Jegliche Art von Reproduktionen, Verbreitung, Vervielfältigung, Veränderung, 
Verteilung und/oder Veröffentlichung dieser E-Mail ist verboten.

Am 09.04.2018 um 21:00 schrieb geonode-users-request at lists.osgeo.org <mailto:geonode-users-request at lists.osgeo.org>:

> 
> Message: 1
> Date: Mon, 9 Apr 2018 12:34:10 +0400
> From: Dave Kennewell <davekennewell at gmail.com <mailto:davekennewell at gmail.com>>
> To: geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org>
> Subject: [GeoNode-users] Can I create a map in 2.8 with a specific
> 	primary	key / url?
> Message-ID:
> 	<CAC9xysPT2sGjDkhTYXQMgvAKrsa0Yjz=p_J9P3cj1N4wL2ZnMQ at mail.gmail.com <mailto:CAC9xysPT2sGjDkhTYXQMgvAKrsa0Yjz=p_J9P3cj1N4wL2ZnMQ at mail.gmail.com>>
> Content-Type: text/plain; charset="utf-8"
> 
> Hi all,
> 
> I'm upgrading a 2.4 project to 2.8. It's a bit too customised to attempt a
> database migration, so I'm going the simple route and rebuilding from
> scratch on a new server with the same data.
> 
> However, I would love to be able to create a new 2.8 map with the same
> URL/primary key as the old 2.4 map, so users don't have to update their
> bookmarks.
> 
> Is there a way to assign the url/primary key to the map when creating it?
> 
> I know I could use a redirect in the urls.py but I'd rather solve this
> without redirecting the users if possible.
> 
> thanks
> Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180409/24121a19/attachment.html>


More information about the geonode-users mailing list