error while creating superuser

65 views
Skip to first unread message

Sandeep S

unread,
Sep 5, 2017, 1:50:50 PM9/5/17
to Django users
Hi All,

I am getting error when I tried to create a superuser. I am using Cassandra 3.0 with Django  1.11.4. 

I used this command in Pycharm: manage.py createsuperuser

error: "cassandra.protocol.SyntaxException: <Error from server: code=2000 [Syntax error in CQL query] message="line 1:260 no viable alternative at input '.' (
...auth_user.date_joined FROM auth_user WHERE [auth_user]....)">
"

What am I doing wrong?

James Schneider

unread,
Sep 5, 2017, 9:29:27 PM9/5/17
to django...@googlegroups.com
Note that Cassandra is not a supported DB platform for use with Django. I'm assuming you are using a 3rd party connector and DB driver like django-cassandra-engine. 

Given that the default django.contrib.auth models (needed to create users) do not inherit from the parent DjangoCassandraModel included in the app, I'm guessing that your django.contrib.auth models are not available in the DB, hence the SQL error.

You may be able to work around this by creating a custom user model that inherits from DjangoCassandraModel, but YMMV.

I would also pose the question to the 3rd party author who already has a section on management commands. It would be worth them adding it to their documentation. 

-James
Reply all
Reply to author
Forward
0 new messages