Error while setuping the local instace.

7 views
Skip to first unread message

Vaibhav Mule

unread,
Aug 27, 2015, 2:38:48 PM8/27/15
to econsensusdiscuss
when I run ./manage.py runserver

I'm getting this. 

Validating models...

Unhandled exception in thread started by <bound method Command.inner_run of <django.contrib.staticfiles.management.commands.runserver.Command object at 0x7f843847d750>>
Traceback (most recent call last):
  File "/home/vaibhav/Dropbox/work/econsensus/django/econsensus/.ve/local/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 91, in inner_run
    self.validate(display_num_errors=True)
  File "/home/vaibhav/Dropbox/work/econsensus/django/econsensus/.ve/local/lib/python2.7/site-packages/django/core/management/base.py", line 266, in validate
    num_errors = get_validation_errors(s, app)
  File "/home/vaibhav/Dropbox/work/econsensus/django/econsensus/.ve/local/lib/python2.7/site-packages/django/core/management/validation.py", line 30, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/home/vaibhav/Dropbox/work/econsensus/django/econsensus/.ve/local/lib/python2.7/site-packages/django/db/models/loading.py", line 158, in get_app_errors
    self._populate()
  File "/home/vaibhav/Dropbox/work/econsensus/django/econsensus/.ve/local/lib/python2.7/site-packages/django/db/models/loading.py", line 64, in _populate
    self.load_app(app_name, True)
  File "/home/vaibhav/Dropbox/work/econsensus/django/econsensus/.ve/local/lib/python2.7/site-packages/django/db/models/loading.py", line 88, in load_app
    models = import_module('.models', app_name)
  File "/home/vaibhav/Dropbox/work/econsensus/django/econsensus/.ve/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/vaibhav/Dropbox/work/econsensus/django/econsensus/.ve/local/lib/python2.7/site-packages/actionitems/models.py", line 10, in <module>
    class ActionItem(models.Model):
  File "/home/vaibhav/Dropbox/work/econsensus/django/econsensus/.ve/local/lib/python2.7/site-packages/actionitems/models.py", line 22, in ActionItem
    origin = models.ForeignKey(ORIGIN_MODEL, null=True, blank=True)
  File "/home/vaibhav/Dropbox/work/econsensus/django/econsensus/.ve/local/lib/python2.7/site-packages/django/db/models/fields/related.py", line 939, in __init__
    assert isinstance(to, basestring), "%s(%r) is invalid. First parameter to ForeignKey must be either a model, a model name, or the string %r" % (self.__class__.__name__, to, RECURSIVE_RELATIONSHIP_CONSTANT)
AssertionError: ForeignKey(None) is invalid. First parameter to ForeignKey must be either a model, a model name, or the string 'self'

Martin Burchell

unread,
Sep 17, 2015, 5:29:50 AM9/17/15
to econsensusdiscuss
On Thursday, 27 August 2015 19:38:48 UTC+1, Vaibhav Mule wrote:
when I run ./manage.py runserver

I'm getting this. 

Validating models...


Vaibhav, did you manage to figure out what the problem was? We have another report of a similar error.

Martin
 

Martin Burchell

unread,
Oct 6, 2015, 5:16:58 PM10/6/15
to econsensusdiscuss
On Thursday, 17 September 2015 10:29:50 UTC+1, Martin Burchell wrote:
Vaibhav, did you manage to figure out what the problem was? We have another report of a similar error.

OK I've had time to look at this. It seems there is a problem with our version of django-livesettings. This fixes the problem for me:

https://github.com/aptivate/econsensus/pull/238

Martin

Reply all
Reply to author
Forward
0 new messages