Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing neo4django with apache
    primarykey
    data
    text
    <p>I am trying to use a <code>neo4j</code> database on a <code>django</code> website hosted on a <code>Apache</code> server. I am using <code>neo4django</code>. I have followed the instruction given in <a href="http://neo4django.readthedocs.org/en/v0.1.8/index.html" rel="nofollow">http://neo4django.readthedocs.org/en/v0.1.8/index.html</a>. when creating a node, I get the following error:</p> <pre><code>error at /disk/ [Errno 111] Connection refused Request </code></pre> <p>My models.py:</p> <pre><code>import django.db from neo4django.db import models class Person(django.db.models.Model): name = django.db.models.CharField(max_length=50, null=True, blank=True) username = django.db.models.CharField(max_length=50, null=True, blank=True) password=django.db.models.CharField(max_length=50, null=True, blank=True) email=django.db.models.CharField(max_length=50, null=True, blank=True) class Meta: db_table='lt_profile' class Pnode(models.NodeModel): name=models.StringProperty() #more fields class Anode(models.NodeModel): art_type=models.StringProperty(max_length=50) mtime=models.StringProperty(max_length=200) #relation: </code></pre> <p>My settings.py:</p> <pre><code>NEO4J_DATABASES = { 'default' : { 'HOST':'localhost', 'PORT': 7474, 'ENDPOINT':'/var/www/graph_db' } } DATABASE_ROUTERS = ['neo4django.utils.Neo4djangoIntegrationRouter'] </code></pre> <p>Code where the error happens:</p> <pre><code>a = Anode.objects.create(art_type='py', mtime=str(file_mtime)) a.save() </code></pre> <p>I think I need to change something in my <code>port.conf</code> file in Apache ,but I don't know what I should do. I have tried things like:</p> <p>Listen 7474 in the <code>ports.conf</code>, but no luck. Any help will be appreciated. Thanks</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload