Re: http://pastebin.com/RWt1mp7F

2015-09-27 Thread Cai Gengyang
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 gengyang...@gmail.com. 
Thanks a lot ...

On Monday, September 28, 2015 at 2:23:03 AM UTC+8, John wrote:
>
> 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
>
>
> On 27/09/15 18:50, Cai Gengyang wrote:
>
> 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
> -- 
> 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?utm_medium=email_source=footer>
> 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.
>
>
>
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/11ab53fa-a592-4898-862e-a76692314f93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: http://pastebin.com/RWt1mp7F

2015-09-27 Thread John
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


On 27/09/15 18:50, Cai Gengyang wrote:
> 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
> -- 
> 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
> <mailto:django-users+unsubscr...@googlegroups.com>.
> To post to this group, send email to django-users@googlegroups.com
> <mailto:django-users@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
> <https://groups.google.com/d/msgid/django-users/4365c3a4-76d6-4dc2-8cbf-eeb6a7d34d31%40googlegroups.com?utm_medium=email_source=footer>.
> For more options, visit https://groups.google.com/d/optout.


-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5608338E.6010305%40martinhome.org.uk.
For more options, visit https://groups.google.com/d/optout.


Re: http://pastebin.com/RWt1mp7F

2015-09-27 Thread Shawn Milochik
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.
On Sep 27, 2015 13:50, "Cai Gengyang" <gengyang...@gmail.com> wrote:

> 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
>
> --
> 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 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
> <https://groups.google.com/d/msgid/django-users/4365c3a4-76d6-4dc2-8cbf-eeb6a7d34d31%40googlegroups.com?utm_medium=email_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOzwKwEaZixZJzrs1Vbk69jn97uO_dd7XrC6pk5ZC%3DUr9JcMdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


http://pastebin.com/RWt1mp7F

2015-09-27 Thread Cai Gengyang
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

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