Alright. I'm considering your approach, and I started reading whatever I could find but I still would like to ask you since you have used it and I'm just starting with Django and clearly you are not.
I understand the multiple schemas in the same database, but how do you access an especific schema from the django project? And how do you stablish the common schema for the specific tables of users and permissions and all that? El domingo, 5 de abril de 2015, 22:19:33 (UTC-4:30), Terry Brown escribió: > > On Sun, 5 Apr 2015 14:15:56 -0700 (PDT) > Melvin Ramos <[email protected] <javascript:>> wrote: > > > Hey Terry, > > > > Thanks for the reply. Yes, they are both projects but in theory > > Mezzanine can be integrated as an app (or so it says in the Mezz > > docs). > > What I forgot to say in my previous email was that I'm not a Mezz > expert, I've done a couple of simple deployments, but no major mods. - > I've used Django CMS more, although my current preference is Mezz. > > I'll post this reply on the list but it's not very Mezz relevant, some > other list might be better. > > > Check this site: http://www3.socioambiental.org/raisg2015/ > > > > I'm looking to make something like this. An admin user can upload > > vector or raster files and it would show up on the map, and make > > queries about the data that each file contains. > > > > I have some questions: > > > > Since you say to run it side by side, it is possible to share the > > same database and work just fine? > > Probably - I run multiple Django apps. on the same Postgresql DB and > use the Postgresql "schema" (which everything else would call namespace) > to separate the project specific bits. Postgresql will search schemas > in a specified order, so by putting each projects CMS specific tables > in a separate schema and the auth_user tables in a common schema it's > easy to share users among distinct projects. And you can definitely > access data across projects, Django support simultaneous use of > multiple DBs. > > > OpenLayer isn't just for showing maps? Or you can make "complex" > > queries with it? And, in any case, how did you make it work with > > Django CMS(I'm familiar with it)? Or docs are just fine? And how did > > you integrate MapServer into Django? Did you use mapscript for python? > > I guess it would be fair to say OpenLayers is just for displaying maps. > > The simple way to make it work with Django CMS or whatever would be to > put your map app's url ahead of the CMS's url in urls.py so links to > that url just get the vanilla Django view / template processing, > bypassing the CMS. But I wanted to wrap the app. in the CMS's CSS > skin, so I used Django CMS's app hook methods to integrate the app. > into a CMS page - I'm sure Mezz has the same thing. > > > How friendly is making queries using GDAL directly? > > Depends. All the basic vector stuff is quite straight forward. I did > a site that performed raster arithmetic (just blending floating point > grids with different weightings) using the GDAL libs., it uses numpy, > but seemed straight forward enough. For Zonal Stats I wrote this: > https://github.com/tbnorth/gridstats although I just noticed there's > also a Zonal Stats example in the GDAL cookbook linked below. > > I think I used mapscript for python, or perhaps some of that and some > just tweaking plain text mapfiles. > > Some of this might be too low level for you if you're up against a > deadline, but I'd still consider the side by side approach. > > Cheers -Terry > > > Thanks, > > > > MR > > > > El domingo, 5 de abril de 2015, 16:15:20 (UTC-4:30), Terry Brown > > escribió: > > > > > > On Sun, 5 Apr 2015 09:11:42 -0700 (PDT) > > > Melvin Ramos <[email protected] <javascript:>> wrote: > > > > > > > Hello Mezzanine community, > > > > > > > > There are some moments where a developer needs to raise the white > > > > flag and ask for help. This is my time. > > > > > > Sounds to me like your problem is that both Mezzanine and GeoNode > > > are Django "projects", not Django "apps", and while apps are > > > supposed to play nice together, projects aren't. That was obvious > > > perhaps - if I had to use Mezzanine and GeoNode I'd run them side > > > by side, and not try to merge them, but depends exactly what you're > > > trying to do. > > > > > > The Django GIS apps. I've used have used OpenLayers (JavaScript) > > > and POSTGIS directly - that approach would be compatible with > > > Mezzanine (I've only done it with Django CMS so far). Server side > > > raster manipulation I've done with GDAL > > > http://pcjericks.github.io/py-gdalogr-cookbook/ > > > I did use MapServer to feed images to OpenLayers though. > > > > > > Anyway, I guess all I'm saying is that if I had to get Mezzanine > > > plus GIS working I'd be using OpenLayers etc. - but it depends on > > > exactly what your objectives are. > > > > > > Cheers -Terry > > > > > > > I'm trying to integrate a GIS and Mezzanine. My first option was > > > > MapServer but it went terrible (plus, the documentation was in > > > > general not good) so I decided to try a django based option > > > > called GeoNode. I've been stuck for 2 weeks now trying to > > > > integrate this framework with mezzanine, but it always reads the > > > > models wrong (for instance it thinks that a page is an int or > > > > stuffs like that). Evidently 2 weeks is a long time for a > > > > developer but I basically have not to much choice. > > > > > > > > Some would ask why not use GeoDjango. It's because it lacks of > > > > raster support (it only reads them, I need more than that, I need > > > > queries and even manipulation, which GeoNode (GeoServer) and > > > > MapServer in theory have). But in case that this fails, then I > > > > will haveto try GeoDjango because either way I need to make this > > > > work and I'm running out of time (and definitely ideas). > > > > > > > > > > > > What I'm asking here is the following: if you are willing, can > > > > you try for yourselves to integrate both frameworks to see if you > > > > can make them work? GeoNone documentation is here: > > > > http://geonode.readthedocs.org/, it tells you what you need and > > > > how to install it. I could tell you what I've done so far but I'm > > > > afraid that if I do I might predispose your creativity and way of > > > > thinking (which is not the point). I just need it to successfully > > > > run, how it works a GIS doesn't matter here. > > > > > > > > Things you need to have if you are going to try this: PostgreSQL > > > > and PostGIS and of course a virtual environment (virtualenv or > > > > virtualwrapper). > > > > > > > > I would appreciate any help, if even Stephen gets time for this > > > > it would be nice (I know he is working on the new release of > > > > Mezzanine, and also in vacations). > > > > > > > > Thanks in advance and hope you can help me. > > > > > > > > MR > > > > > > > > > > > > > > -- You received this message because you are subscribed to the Google Groups "Mezzanine Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
