<div dir="ltr">Hi Eugenio,<div><br></div><div>beware that the data model and django version is changed in master. This issue happens when using postgres as db and not sqllite. At the moment the way to create the new db is by doing</div><div><br></div><div>







<p class=""><span class="">manage.py migrate auth</span></p>
<p class=""><span class="">manage.py migrate sites</span></p>
<p class=""><span class="">manage.py migrate people</span></p>
<p class=""><span class="">manage.py migrate </span></p><p class="">We will fix this in the future.</p><p class=""><br></p><p class=""><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-23 10:27 GMT+02:00 Eugenio Trumpy <span dir="ltr"><<a href="mailto:frippe12573@hotmail.com" target="_blank">frippe12573@hotmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi all,<br><br>today I was trying to update geonode from git (custom installation on ubuntu 14.04).<br>I made a backup of the data from geonode and geonode_data db, then I created new DBs,<br>and I run syncdb --noinput, but something seems not working:<br><br>System check identified some issues:<br><br>WARNINGS:<br>account.EmailConfirmation.created: (fields.W161) Fixed default value provided.<br>    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`<br>dialogos.Comment.ip_address: (fields.W900) IPAddressField has been deprecated. Support for it (except in historical migrations) will be removed in Django 1.9.<br>    HINT: Use GenericIPAddressField instead.<br>Operations to perform:<br>  Synchronize unmigrated apps: tasks, dialogos, modeltranslation, django_extensions, polymorphic, agon_ratings, gis, pinax_theme_bootstrap_account, django_forms_bootstrap, catalogue, humanize, geoserver, announcements, storages, user_messages, mptt, friendlytagloader, staticfiles, geoexplorer, sitemaps, proxy, account, pinax_theme_bootstrap, pagination, autocomplete_light, messages, leaflet, api, avatar, social, security<br>  Apply all migrations: layers, documents, actstream, people, admin, guardian, sessions, djcelery, sites, auth, tastypie, maps, contenttypes, base, upload, groups, services, taggit<br>Synchronizing apps without migrations:<br>  Creating tables...<br>    Creating table account_account<br>    Creating table account_signupcode<br>    Creating table account_signupcodeextended<br>    Creating table account_signupcoderesult<br>    Creating table account_emailaddress<br>    Creating table account_emailconfirmation<br>    Creating table account_accountdeletion<br>    Creating table avatar_avatar<br>    Creating table dialogos_comment<br>    Creating table agon_ratings_overallrating<br>    Creating table agon_ratings_rating<br>    Creating table announcements_announcement<br>    Creating table announcements_dismissal<br>    Creating table user_messages_thread<br>    Creating table user_messages_userthread<br>    Creating table user_messages_message<br>    Running deferred SQL...<br>Traceback (most recent call last):<br>  File "manage.py", line 29, in <module><br>    execute_from_command_line(sys.argv)<br>  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute_from_command_line<br>    utility.execute()<br>  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 346, in execute<br>    self.fetch_command(subcommand).run_from_argv(self.argv)<br>  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 394, in run_from_argv<br>    self.execute(*args, **cmd_options)<br>  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute<br>    output = self.handle(*args, **options)<br>  File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/syncdb.py", line 25, in handle<br>    call_command("migrate", **options)<br>  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 120, in call_command<br>    return command.execute(*args, **defaults)<br>  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 445, in execute<br>    output = self.handle(*args, **options)<br>  File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/migrate.py", line 179, in handle<br>    created_models = self.sync_apps(connection, executor.loader.unmigrated_apps)<br>  File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/migrate.py", line 318, in sync_apps<br>    cursor.execute(statement)<br>  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 79, in execute<br>    return super(CursorDebugWrapper, self).execute(sql, params)<br>  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 64, in execute<br>    return self.cursor.execute(sql, params)<br>  File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 98, in __exit__<br>    six.reraise(dj_exc_type, dj_exc_value, traceback)<br>  File "/usr/local/lib/python2.7/dist-packages/django/db/backends/utils.py", line 62, in execute<br>    return self.cursor.execute(sql)<br>django.db.utils.ProgrammingError: relation "people_profile" does not exist<br><br>Of course I performed the update of the dbs after run git pull on geonode dir.<br><br>Can you help me?<span class="HOEnZb"><font color="#888888"><br><br>Eugenio<br>                                     </font></span></div></div>
<br>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div>