Syntax Error django, python issue

118 views
Skip to first unread message

Karreerchange

unread,
Jul 28, 2019, 1:42:05 PM7/28/19
to Django users
Hi,

Installing the authentication backend code in settings.py (copy paste..)
server crashed after save reporting the following, 

  File "/Users/ProductionEnv/Desktop/devbnt/project/bnt/bnt/settings.py", line 130

    'django.contrib.auth.backends.ModelBackend',

                                              ^

SyntaxError: invalid syntax


Please can anyone help?

Thanks,

K

Chetan Ganji

unread,
Jul 28, 2019, 1:47:34 PM7/28/19
to django...@googlegroups.com
AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.ModelBackend',
# your backends goes here,
]
Regards,
Chetan Ganji
+91-900-483-4183


--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8fce3582-f491-435e-93c1-73af137fff35%40googlegroups.com.

Kean

unread,
Jul 28, 2019, 1:54:37 PM7/28/19
to django...@googlegroups.com
Hi Chetan

pls see setup below settings.py




Please can clarify in this context?

Best,

K




James Schneider

unread,
Jul 28, 2019, 2:46:31 PM7/28/19
to django...@googlegroups.com

On Sun, Jul 28, 2019, 10:54 AM Kean <kea...@gmail.com> wrote:
Hi Chetan

pls see setup below 

It looks like you may have copied in the ellipses (...) from the example. Remove those lines and try again.

-James

Kean

unread,
Jul 28, 2019, 2:49:58 PM7/28/19
to django...@googlegroups.com
Hi James,

Yes this worked. Thanks.

Best,

K
--
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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages