<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <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 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>
  </body>
</html>