Please help me out, I tried to get sync for whole day @@

24 views
Skip to first unread message

Toan ComS

unread,
Apr 19, 2014, 10:02:24 AM4/19/14
to django...@googlegroups.com


voger

unread,
Apr 19, 2014, 10:44:22 AM4/19/14
to django...@googlegroups.com
There it says "unexpected indent" and points to the DATABASES in your
settings.py. Check to see if it is indented properly.

On 04/19/2014 05:02 PM, Toan ComS wrote:
> <https://lh6.googleusercontent.com/-wYECTChYY90/U1KBmFmPHwI/AAAAAAAAAIo/7h8yU-SgUMs/s1600/Untitled.gif>
>
>
> --
> 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
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto: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/e0144498-2204-47bf-b3d1-da229dc7f8ed%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/e0144498-2204-47bf-b3d1-da229dc7f8ed%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Toan ComS

unread,
Apr 19, 2014, 11:11:52 AM4/19/14
to django...@googlegroups.com



DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.sqlite3',
        'NAME': 'mysite'),
    }
}

Is it wrong?  

voger

unread,
Apr 19, 2014, 11:24:58 AM4/19/14
to django...@googlegroups.com
If there is a space in front of DATABASES then yes it is wrong. Python
doesn't forgive lousy indentation
> --
> 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
> <mailto:django-users...@googlegroups.com>.
> To post to this group, send email to django...@googlegroups.com
> <mailto: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/fb92204d-f2a7-4e40-87b8-e85c13a9bbaf%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/fb92204d-f2a7-4e40-87b8-e85c13a9bbaf%40googlegroups.com?utm_medium=email&utm_source=footer>.

Mike Dewhirst

unread,
Apr 19, 2014, 10:53:20 PM4/19/14
to django...@googlegroups.com
On 20/04/2014 1:11 AM, Toan ComS wrote:
>
>
>
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
#'NAME': 'mysite'),
'NAME': 'mysite',
}
}

>
> Is it wrong?

I think so. Try removing the parens afte 'mysite'

Gerald Klein

unread,
Apr 20, 2014, 7:08:20 AM4/20/14
to django...@googlegroups.com
 'NAME': 'mysite'), the paran doesn't belong there


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

For more options, visit https://groups.google.com/d/optout.



--

Gerald Klein DBA

Cont...@geraldklein.com

www.geraldklein.com

geraldklein.wordpress.com

j...@zognet.com

708-599-0352


Arch Awesome, Ranger & Vim the coding triple threat.

Linux registered user #548580 

Brought to you by the Amish Mafia

Reply all
Reply to author
Forward
0 new messages