[GeoNode-users] Problem with createsuperuser

Suchakrey Kongpila suchakreyk at adpc.net
Tue May 10 04:52:22 PDT 2016


Dear All

I install Geonode 2.4 by custom install method using this url:
http://docs.geonode.org/en/latest/tutorials/install_and_admin/geonode_install/all_together.html

When I run the command python manage.py createsuperuser, these error come:

WARNINGS:

account.EmailConfirmation.created: (fields.W161) Fixed default value
provided.

        HINT: It seems you set a fixed date / time / datetime value as
default for this field. This may not be what you want. If you want to have
the current date as default, use `django.utils.timezone.now`

base.ResourceBase.regions: (fields.W340) null has no effect on
ManyToManyField.

dialogos.Comment.ip_address: (fields.W900) IPAddressField has been
deprecated. Support for it (except in historical migrations) will be
removed in Django 1.9.

        HINT: Use GenericIPAddressField instead.

services.WebServiceHarvestLayersJob.service: (fields.W342) Setting
unique=True on a ForeignKey has the same effect as using a OneToOneField.

        HINT: ForeignKey(unique=True) is usually better served by a
OneToOneField.

Username: geonode

Traceback (most recent call last):

  File "manage.py", line 29, in <module>

    execute_from_command_line(sys.argv)

  File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 354, in execute_from_command_line

    utility.execute()

  File
"/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py",
line 346, in execute

    self.fetch_command(subcommand).run_from_argv(self.argv)

  File
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
line 394, in run_from_argv

    self.execute(*args, **cmd_options)

  File
"/usr/local/lib/python2.7/dist-packages/django/contrib/auth/management/commands/createsuperuser.py",
line 50, in execute

    return super(Command, self).execute(*args, **options)

  File
"/usr/local/lib/python2.7/dist-packages/django/core/management/base.py",
line 445, in execute

    output = self.handle(*args, **options)

  File
"/usr/local/lib/python2.7/dist-packages/django/contrib/auth/management/commands/createsuperuser.py",
line 105, in handle


self.UserModel._default_manager.db_manager(database).get_by_natural_key(username)

  File
"/usr/local/lib/python2.7/dist-packages/django/contrib/auth/models.py",
line 162, in get_by_natural_key

    return self.get(**{self.model.USERNAME_FIELD: username})

  File
"/usr/local/lib/python2.7/dist-packages/django/db/models/manager.py", line
127, in manager_method

    return getattr(self.get_queryset(), name)(*args, **kwargs)

  File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py",
line 328, in get

    num = len(clone)

  File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py",
line 144, in __len__

    self._fetch_all()

  File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py",
line 965, in _fetch_all

    self._result_cache = list(self.iterator())

  File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py",
line 238, in iterator

    results = compiler.execute_sql()

  File
"/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py",
line 840, in execute_sql

    cursor.execute(sql, params)

  File
"/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line
79, in execute

    return super(CursorDebugWrapper, self).execute(sql, params)

  File
"/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line
64, in execute

    return self.cursor.execute(sql, params)

  File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line
98, in __exit__

    six.reraise(dj_exc_type, dj_exc_value, traceback)

  File
"/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line
64, in execute

    return self.cursor.execute(sql, params)

django.db.utils.ProgrammingError: relation "people_profile" does not exist

LINE 1: ...ofile"."zipcode", "people_profile"."country" FROM "people_pr...



How can I fig this problem? Thanks for your help



*adpc*

*Asian Disaster Preparedness Center*



Mr. Suchakrey Kongpila

Computer and Network Coordinator



Tel: +66 2 298 0682-92 *|* Fax: +66 2 298 0012

Mobile: +66 8 9451 4468 *| *Skype: chakreyk
www.adpc.net *| **twitter <https://twitter.com/ADPCnet>* *| *facebook
<https://www.facebook.com/adpc.thailand>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160510/8a08c82d/attachment-0001.html>


More information about the geonode-users mailing list