Attempted to run “$ python manage.py sqlall world” but got:įile "/home/jstratman/djangostack-1.4-1/apps/django/lib/python2.7/site-packages/django/core/management/_init_.py", line 443, in execute_from_command_lineįile "/home/jstratman/djangostack-1.4-1/apps/django/lib/python2.7/site-packages/django/core/management/_init_.py", line 382, in execute exactly copied and pasted into world/ models.py from the “Defining a Geographic Model” section, to include the very top line of “from import models“ Used both ogrinfo commands and got proper results Installed world borders shp files in world/data I did try adding 'PASSWORD' to the settings.py on my second try but that made no difference once I got to the syncdb (see below) $ django-admin.py startproject mysite (I stayed in the main directory, did not create this in “Apps>Django>Django_Projects”) $ sudo su – postgres (tried again, NOT SUCCESSFUL! “unknown id”) $ createdb -T template_postgis mysitedatabase Moved back to main tutorial page, executed: $ psql -d template_postgis -c "GRANT ALL ON spatial_ref_sys TO PUBLIC " $ psql -d template_postgis -c "GRANT ALL ON geography_columns TO PUBLIC " $ psql -d template_postgis -c "GRANT ALL ON geometry_columns TO PUBLIC " $ psql -d template_postgis -f $POSTGIS_SQL_PATH/spatial_ref_sys.sql $ psql -d template_postgis -f $POSTGIS_SQL_PATH/postgis.sql $ psql -d postgres -c "UPDATE pg_database SET datistemplate='true' WHERE datname='template_postgis' " (^this command was unsuccessful, stating it already had this language support) $ createlang -d template_postgis plpgsql # Adding PLPGSQL language support. POSTGIS_SQL_PATH=/home/jstratman/djangostack-1.4-1/postgresql/share/contrib/postgis- 2.0 (“unknown id”) to switch to being a “privileged database user,”īUT I could still (mostly) successfully execute: NOT able to execute the command “$ sudo su – postgres” The link for “spatial database template” to Up and exclusively work from “use_djangostack” terminal Please let me know if this is incorrect.ĭjangoStack on Ubunutu 12.4 via the GUI, with all 3 DBs, no initial Through directories and see them all, but maybe they still must be Internally to do a basic Geodjango/PostGIS project (I have looked My assumption: This self contained bitnami djangostack package already has everything Sorry to say, I am fairly new toīoth Django and Linux, but I will do my best to explain what I have Have been struggling now for about two days to get a So I wonder where to put this vhost stuff. The demo app works fine on URL: The EZ app does not start on URL: There is only a white pageĪccording to EZ setup there should be an vhost which is described here: Include "/Applications/mampstack-5.4.12-0/apps/ez5/conf/ez5.conf Include "/Applications/mampstack-5.4.12-0/apps/demo/conf/nf My nf has this two lines added at bottom. Here is the ez5.conf: Alias /ez5/ "/Applications/mampstack-5.4.12-0/apps/ez5/htdocs/web/"Īlias /ez5 "/Applications/mampstack-5.4.12-0/apps/ez5/htdocs/web" I have put EZ in the apps directory and the ez itself htdocs and ez5.conf in an conf folder. According to the installer docs the site should be in virtual host mode. What I try to do is starting the new ez publish 5 setup script within EZ Publish.
0 Comments
Leave a Reply. |