Redis error on initial migration

175 views
Skip to first unread message

M Hashmi

unread,
Aug 27, 2016, 4:49:49 PM8/27/16
to django...@googlegroups.com
Hi,
I am trying to setup "saleor" e-commerce on windows and getting this error.

(saleorpro) C:\Users\Mudassar\saleorpro\saleor>manage.py makemigrations
SystemCheckError: System check identified some issues:

CRITICALS:
userprofile.User: (auth.C009) <class 'saleor.userprofile.models.User'>.is_anonym
ous must be an attribute or property rather than a method. Ignoring this is a se
curity issue as anonymous users will be treated as authenticated!
userprofile.User: (auth.C010) <class 'saleor.userprofile.models.User'>.is_authen
ticated must be an attribute or property rather than a method. Ignoring this is
a security issue as anonymous users will be treated as authenticated!

WARNINGS:
saleor.W001: Session caching cannot work with locmem backend
        HINT: User sessions need to be globally shared, use a cache server like
Redis.

Any Idea?
Regards,
Mudassar

James Schneider

unread,
Aug 27, 2016, 5:03:35 PM8/27/16
to django...@googlegroups.com

On Aug 27, 2016 1:49 PM, "M Hashmi" <mhash...@gmail.com> wrote:
>
> Hi,
> I am trying to setup "saleor" e-commerce on windows and getting this error.
>
> (saleorpro) C:\Users\Mudassar\saleorpro\saleor>manage.py makemigrations
> SystemCheckError: System check identified some issues:
>
> CRITICALS:
> userprofile.User: (auth.C009) <class 'saleor.userprofile.models.User'>.is_anonym
> ous must be an attribute or property rather than a method. Ignoring this is a se
> curity issue as anonymous users will be treated as authenticated!
> userprofile.User: (auth.C010) <class 'saleor.userprofile.models.User'>.is_authen
> ticated must be an attribute or property rather than a method. Ignoring this is
> a security issue as anonymous users will be treated as authenticated!
>

What does the saleor.userprofile.models.User look like? I'd looks like you are overriding is_anonymous and is_authenticated as methods, rather than keeping them as attributes or even properties.

Perhaps you forgot to decorate those methods as properties?

The Redis reference is simply a suggestion as a method for handling global caching.

Is this a 3rd party package? If so perhaps the author's documentation has something about this?

-James

M Hashmi

unread,
Aug 27, 2016, 5:18:56 PM8/27/16
to django...@googlegroups.com
I did nothing in code yet just installed the app from repo and dependencies. But this error doesn't make sense to me so I thought somebody might had gone through this.

Author has same question about this in "issue" are at github. Question is not answered yet.
Regards,
Mudassar

-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+unsubscribe@googlegroups.com.
To post to this group, send email to django...@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%2BciUa%3DcEWQRzt8HOeYBk81QYM7wEN_CD_JfWqGXcTuD1F8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages