http://pastebin.com/RWt1mp7F

36 views
Skip to first unread message

Cai Gengyang

unread,
Sep 27, 2015, 1:50:14 PM9/27/15
to Django users
http://pastebin.com/RWt1mp7F --- If anybody can find any error with this settings.py file, let me know !

Looked through it and can't find any mistakes. The error message I got was that there is an error on or before line 45 (like a missing parentheses) , but can't seem to spot anything wrong , really weird ...

Thanks ...

Gengyang

Shawn Milochik

unread,
Sep 27, 2015, 2:07:56 PM9/27/15
to django...@googlegroups.com

Try running ./manage.py shell

You often get a better traceback. I don't see anything wrong with the beginning of the file you posted. However, you do have dirname twice, so one is just wasted.

--
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 post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/4365c3a4-76d6-4dc2-8cbf-eeb6a7d34d31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

John

unread,
Sep 27, 2015, 2:23:03 PM9/27/15
to django...@googlegroups.com
Are you sure that this settings file is the one that is being read? Put something ugly at the beginning of it that will raise a syntax error earlier just to check. Also check whether you have any *.pyc files left that for some reason might be being read instead of the .py. You can safely delete all *.pyc files to make sure.

John

Cai Gengyang

unread,
Sep 27, 2015, 2:35:41 PM9/27/15
to Django users, john-...@martinhome.org.uk
Feeling tired, going to take a break and go to sleep.

Guess I must be missing something ... if anybody can spot the error let me know. Just message here or shoot me an email at gengy...@gmail.com. Thanks a lot ...
Reply all
Reply to author
Forward
0 new messages