[GeoNode-users] manage.py migrate error

Simone Dalmasso simone.dalmasso at gmail.com
Mon Feb 20 11:21:29 PST 2017


Hi, the problem I think  is because you used the master branch of the
project, the doc needs to be updated.
use $ django-admin startproject my_geonode --template=
https://github.com/GeoNode/geonode-project/archive/2.4.zip -epy,rst

assuming you installed via apt-get

hope this helps

2017-02-20 18:41 GMT+01:00 Ariel Nunez <ingenieroariel at gmail.com>:

> did GeoNode work before you tried that command?
>
> When you do pip freeze, do you see the polymorphic app?
>
> -a
>
> On Feb 20, 2017, at 12:39 PM, Paul Knight <PaulKnight at redcross.org.uk>
> wrote:
>
>
> Hi Angelos,
>
>
>
> Thanks for the advice. We have already installed GeoNode and it works
> successfully. We are now trying to customise it.
>
> I’m not sure if a full reinstall is necessary?
>
>
>
> We are not very familiar with Ansible.
>
> I am also working on Ubuntu 14.04, your Ansible link works on 16.04.
>
>
>
> Does this matter?
>
>
>
> Paul
>
>
>
>
>
> *From:* Angelos Tzotsos [mailto:gcpp.kalxas at gmail.com
> <gcpp.kalxas at gmail.com>]
> *Sent:* 20 February 2017 16:25
> *To:* Paul Knight <PaulKnight at redcross.org.uk>;
> geonode-users at lists.osgeo.org
> *Subject:* Re: [GeoNode-users] manage.py migrate error
>
>
>
> Hi Paul,
>
> I would recommend using the ansible role to install GeoNode.
> https://github.com/GeoNode/ansible-geonode
>
> I hope that helps.
>
> Best,
> Angelos
>
> On 02/20/2017 05:52 PM, Paul Knight wrote:
>
> Hi,
>
> I wonder if anyone can assist with an error that I am getting when working through the setup steps of the 'customise the look and feel' section (http://docs.geonode.org/en/latest/tutorials/admin/customize_lookfeel/customize/setup_admin.html).
>
> When running
>
> $ python manage.py migrate
>
>
>
>
>
> I get the following ImportError message:
>
> Traceback (most recent call last):
>
>   File "manage.py", line 11, 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 328, in execute
>
>     django.setup()
>
>   File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup
>
>     apps.populate(settings.INSTALLED_APPS)
>
>   File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py", line 108, in populate
>
>     app_config.import_models(all_models)
>
>   File "/usr/local/lib/python2.7/dist-packages/django/apps/config.py", line 198, in import_models
>
>     self.models_module = import_module(models_module_name)
>
>   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
>
>     __import__(name)
>
>   File "/home/geonode/geonode/geonode/base/models.py", line 22, in <module>
>
>     from polymorphic import PolymorphicModel, PolymorphicManager
>
> ImportError: cannot import name PolymorphicModel
>
>
>
>
>
>
>
> I have installed Geonode using the full installation on Ubuntu version 14.04
>
> If anyone could help it would be greatly appreciated!
>
> Paul
>
>
>
>
>
>
>
>
>
>   This email is for the intended recipient only. It may contain information that is privileged, confidential and/or subject to copyright. If you are not the intended recipient, please delete this email and any attachments immediately. You may not present this message or any part of it to another party without consent from the sender.
>
>
>
> Although the British Red Cross has taken steps to ensure this email and any attachments are virus-free, we do not accept any responsibility for viruses, or for inaccurate or incomplete information or failure to deliver information. It is your responsibility to scan the email and any attachments to ensure they are virus-free.
>
>
>
> The British Red Cross may monitor the content of emails sent or received by its employees.
>
>
>
> The British Red Cross Society, incorporated by Royal Charter 1908, is a charity registered in England and Wales (220949), Scotland (SC037738) and Isle of Man (0752).
>
>
>
> The red cross emblem is a protective symbol, the use of which is restricted by international and national law. It may not be reproduced without prior authorisation. For more information, about the emblem, please go to www.redcross.org.uk/About-us/Who-we-are/The-international-Movement/The-emblem.
>
>
>
> If you need to contact the British Red Cross, please go to www.redcross.org.uk/About-us/Contact-and-help/Contact-us and select the best option for you.
>
>
>
>
> _______________________________________________
>
> geonode-users mailing list
>
> geonode-users at lists.osgeo.org
>
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
>
>
>
> --
>
> Angelos Tzotsos, PhD
>
> Charter Member
>
> Open Source Geospatial Foundation
>
> http://users.ntua.gr/tzotsos
>
>
>
> This email is for the intended recipient only. It may contain information
> that is privileged, confidential and/or subject to copyright. If you are
> not the intended recipient, please delete this email and any attachments
> immediately. You may not present this message or any part of it to another
> party without consent from the sender.
>
> Although the British Red Cross has taken steps to ensure this email and
> any attachments are virus-free, we do not accept any responsibility for
> viruses, or for inaccurate or incomplete information or failure to deliver
> information. It is your responsibility to scan the email and any
> attachments to ensure they are virus-free.
>
> The British Red Cross may monitor the content of emails sent or received
> by its employees.
>
> The British Red Cross Society, incorporated by Royal Charter 1908, is a
> charity registered in England and Wales (220949), Scotland (SC037738) and
> Isle of Man (0752).
>
> The red cross emblem is a protective symbol, the use of which is
> restricted by international and national law. It may not be reproduced
> without prior authorisation. For more information, about the emblem, please
> go to www.redcross.org.uk/About-us/Who-we-are/The-international-
> Movement/The-emblem.
>
> If you need to contact the British Red Cross, please go to
> www.redcross.org.uk/About-us/Contact-and-help/Contact-us and select the
> best option for you.
>
>
> <http://www.redcross.org.uk/appealweek>
>
>
>
>
>
> This email is for the intended recipient only. It may contain information
> that is privileged, confidential and/or subject to copyright. If you are
> not the intended
>  recipient, please delete this email and any attachments and notify  *mailadmin at redcross.org.uk
> <mailadmin at redcross.org.uk>*. You may not present this message or any
> part of it to
> another party without consent from the sender.
>
> Although the British Red Cross has taken steps to ensure this email and
> any attachments are virus-free, we do not accept any responsibility for
> viruses, or for
> inaccurate or incomplete information or failure to deliver information. It
> is your responsibility to scan the email and any attachments to ensure they
> are virus-free.
>
> The British Red Cross may monitor the content of emails sent or received
> by its employees.
>
> The British Red Cross Society, incorporated by Royal Charter 1908, is a
> charity registered in England and Wales (220949) and Scotland (SC037738).
>
> The red cross emblem is a protective symbol, the use of which is
> restricted by international and national law. It may not be reproduced
> without prior authorisation.
> Click here for more information
> <http://www.redcross.org.uk/standard.asp?id=35289>.
>
>
>
>
>
>
>
>
> This message has been scanned for viruses by BlackSpider MailControl
> <http://www.blackspider.com/>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>


-- 
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170220/73c2171f/attachment-0001.html>


More information about the geonode-users mailing list