On Tue, Sep 5, 2017 at 5:42 AM, Sandeep S <sksandeep4...@gmail.com> wrote:

> 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?
>
>

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

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CA%2Be%2BciXfFq3Sr_gH_QdRnvicH_6p-MkhvFS1iStdbOQn4O1AFg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to