<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Federico,<br>
<br>
Yes actually I did use "nodeshot startproject
dev" to create the project but because of some typo on hostname it
wasn"t able to connect to DB so I changed the engine... Anyway thanks a
lot for help checking this issue.<br>
<br>
By the way is there any site design theme template for nodeshot that I
can change? I found <a class="moz-txt-link-freetext" href="http://map.ninux.org/">http://map.ninux.org/</a> has a pretty nice layout
which has sharper color constraction and responsive design which can
adjust the layout with display size to fit the mobile devices, although
I'm happy with OpenStreetMap.<br>
<br>
Best regards,<br>
Hui Yu<br>
<br>
Nemesis さんは書きました:
<blockquote cite="mid:56387E45.8030903@ninux.org" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
<div class="moz-cite-prefix">Hey Hui,<br>
<br>
On 11/03/2015 02:22 AM, Hui Yu wrote:<br>
</div>
<blockquote cite="mid:56380C5A.7030401@gmail.com" type="cite">
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
Thank you and I think this should be taken as a misconfiguration...
this is what I did.<br>
<br>
1) Environment:<br>
- server: Amazon Linux AMI release 2015.03<br>
- database: RDS (PostgreSQL 9.4.1)<br>
<br>
I created a schema scm_nodeshot01, owned by nodeshot01in database for
Nodeshot and postgis, hstore extension are installed in public schema
which is in nodeshot01"s search path.<br>
<br>
ebdb=> \dx<br>
</blockquote>
... cut ....<br>
<blockquote cite="mid:56380C5A.7030401@gmail.com" type="cite"> <br>
And finally after checking all related code and noticed the postgis
string required in ENGINE setting, the database setting was modified to:<br>
<br>
DATABASES = {<br>
'default': {<br>
#'ENGINE': 'django.db.backends.postgresql_psycopg2',<br>
'ENGINE': 'django.contrib.gis.db.backends.postgis',<br>
'NAME': 'ebdb',<br>
'USER': 'nodeshot01',<br>
'PASSWORD': 'nodeshot01',<br>
'HOST':
'aaxi0iow5gnqku.c0hl0qo72yk0.ap-northeast-1.rds.amazonaws.com',<br>
'PORT': '',<br>
},<br>
<br>
Then all worked as below:<br>
<br>
<b>(nodeshot)[ec2-user@ip-172-31-12-8 dev]$ python manage.py
migrate --noinput --no-initial-data</b><br>
</blockquote>
... cut ....
<blockquote cite="mid:56380C5A.7030401@gmail.com" type="cite">(nodeshot)[ec2-user@ip-172-31-12-8
dev]$ Performing system checks...<br>
<br>
System check identified no issues (0 silenced).<br>
November 02, 2015 - 17:14:24<br>
Django version 1.8.4, using settings 'dev.settings'<br>
Starting development server at <a moz-do-not-send="true"
class="moz-txt-link-freetext" href="http://0.0.0.0:8000/">http://0.0.0.0:8000/</a><br>
Quit the server with CONTROL-C.<br>
</blockquote>
<br>
Sorry, yesterday evening I misread your email.<br>
<br>
So the problem is that you were using
'django.db.backends.postgresql_psycopg2' instead of
'django.contrib.gis.db.backends.postgis'?<br>
<br>
Did you set that manually?<br>
Nodeshot has a command that automatically creates a django projects
with the right default settings:<br>
<br>
nodeshot startproject <name><br>
<br>
If you follow the docs you won't bump into these problems, see
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://docs.nodeshot.org/en/latest/topics/install_production_manual.html#install-python-packages">http://docs.nodeshot.org/en/latest/topics/install_production_manual.html#install-python-packages</a><br>
<br>
Best regards<br>
Federico<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Nodeshot mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Nodeshot@ml.ninux.org">Nodeshot@ml.ninux.org</a>
<a class="moz-txt-link-freetext" href="http://ml.ninux.org/mailman/listinfo/nodeshot">http://ml.ninux.org/mailman/listinfo/nodeshot</a>
</pre>
</blockquote>
<br>
</body>
</html>