Created
March 9, 2013 00:41
-
-
Save lukeorland/5121798 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python manage.py shell | |
/Users/orluke/src/neo4django-tutorial/venv/src/neo4django/neo4django/db/models/relationships.py:170: UserWarning: `lazycat_set` and `lazycat_set` share a relationship type and direction. Is this what you meant to do? | |
% (r.name, name)) | |
Python 2.7.3 (default, Feb 6 2013, 23:59:57) | |
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.24)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
(InteractiveConsole) | |
>>> from polls.models import Poll, Choice | |
/Users/orluke/src/neo4django-tutorial/venv/src/neo4django/neo4django/db/models/relationships.py:170: UserWarning: `choices` and `choices` share a relationship type and direction. Is this what you meant to do? | |
% (r.name, name)) | |
>>> Poll.objects.all() | |
[] | |
>>> from django.utils import timezone | |
>>> p = Poll(question="What's new?", pub_date=timezone.now()) | |
>>> p.save() | |
>>> p.id | |
198 | |
>>> p.question | |
u"What's new?" | |
>>> p.pub_date | |
datetime.datetime(2013, 3, 8, 18, 36, 19, 556823) | |
>>> p.question = "What's up?" | |
>>> p.save() | |
>>> Poll.objects.all() | |
Traceback (most recent call last): | |
File "<console>", line 1, in <module> | |
File "/Users/orluke/src/neo4django-tutorial/venv/lib/python2.7/site-packages/django/db/models/query.py", line 72, in __repr__ | |
data = list(self[:REPR_OUTPUT_SIZE + 1]) | |
File "/Users/orluke/src/neo4django-tutorial/venv/lib/python2.7/site-packages/django/db/models/query.py", line 87, in __len__ | |
self._result_cache.extend(self._iter) | |
File "/Users/orluke/src/neo4django-tutorial/venv/src/neo4django/neo4django/db/models/query.py", line 897, in iterator | |
for model in self.query.execute(using): | |
File "/Users/orluke/src/neo4django-tutorial/venv/src/neo4django/neo4django/db/models/query.py", line 792, in execute | |
for n in result_set] | |
File "/Users/orluke/src/neo4django-tutorial/venv/src/neo4django/neo4django/db/models/query.py", line 602, in model_from_node | |
return self.nodetype._neo4j_instance(node) | |
File "/Users/orluke/src/neo4django-tutorial/venv/src/neo4django/neo4django/db/models/base.py", line 162, in _neo4j_instance | |
if connections[name].url in neo_node.url] | |
File "/Users/orluke/src/neo4django-tutorial/venv/src/neo4django/neo4django/utils.py", line 311, in __getitem__ | |
Client = load_client(db['CLIENT']) | |
File "/Users/orluke/src/neo4django-tutorial/venv/src/neo4django/neo4django/utils.py", line 257, in load_client | |
raise exceptions.ImproperlyConfigured(error_msg % client_path) | |
ImproperlyConfigured: Could not import neo4django.tests.neo4jclient_tests.MyGraphDatabase as a client |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment