Note that there are some explanatory texts on larger screens.

plurals
  1. PO"settings.DATABASES is improperly configured. [...]" when using neo4django.auth and neo4django.admin with only neo4j db
    primarykey
    data
    text
    <p>I am building an application in Django 1.4.5 with neo4django (github version). I am currently trying to enable the admin interface as instructed on <a href="https://neo4django.readthedocs.org/en/latest/admin.html" rel="nofollow">https://neo4django.readthedocs.org/en/latest/admin.html</a></p> <p>With the following settings when i hit /admin I get the error <code>settings.DATABASES is improperly configured. Please supply the ENGINE value. Check settings documentation for more details.</code></p> <p>My <strong>settings.py</strong> includes the following</p> <pre><code>DATABASES = { 'default': { 'ENGINE': 'django.db.backends.dummy', } } NEO4J_DATABASES = { 'default' : { 'HOST':'localhost', 'PORT':7474, 'ENDPOINT':'/db/data' } } AUTHENTICATION_BACKENDS = ('neo4django.auth.backends.NodeModelBackend',) SESSION_ENGINE = ('django.contrib.sessions.backends.file') TEMPLATE_CONTEXT_PROCESSORS = ( 'django.contrib.auth.context_processors.auth', 'django.core.context_processors.request', 'django.core.context_processors.i18n', 'django.contrib.messages.context_processors.messages', 'django.core.context_processors.static', ) MIDDLEWARE_CLASSES = ( 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', ) INSTALLED_APPS = ( 'neo4django.auth', 'django.contrib.sessions', 'django.contrib.messages', 'neo4django.admin', 'neo4django.contenttypes', 'django.contrib.admin', 'django.contrib.contenttypes', 'django.contrib.auth', 'django.contrib.sites', 'django.contrib.staticfiles', 'my_app', 'users', ) </code></pre> <p>my <strong>urls.py</strong></p> <pre><code>from django.conf.urls import patterns, include, url from neo4django import admin admin.autodiscover() urlpatterns = patterns('', url(r'^$', 'my_app.views.MainHomePage', name='home'), url(r'^admin/', include(admin.site.urls)), ) </code></pre> <p>my <strong>models.py</strong></p> <pre><code>from neo4django.db import models from neo4django.auth.models import User class Person(models.NodeModel): email = models.EmailProperty(required = True, unique = True, indexed = True) # Neo4J RelationShips user = models.Relationship(User, rel_type = 'is_user') def __unicode__(self): return u'%s' % (self.full_name.strip()) </code></pre> <p>and my <strong>admin.py</strong> (as simple as it gets)</p> <pre><code>from django.contrib import admin from neo4django.auth.models import User from users.models import Person class UserAdmin(admin.ModelAdmin): pass admin.site.register(User, UserAdmin) class PersonAdmin(admin.ModelAdmin): pass admin.site.register(Person, PersonAdmin) </code></pre> <p>I have tried to either use a mysql together with neo4j, but I will either get the <code>no such table: django_site</code> error, where I have to first run syncdb, at least for the django_site table to be created or I just keep being redirected back to admin login page after successful log in.</p> <p>Can someone point me to the right direction or at least tell me if using only neo4j is possible or not?</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