Sunday, September 27, 2015

Re: Django Tutorial(Database Setup Question)

Hey guys, I am happy to announce that it finally works. The problem was that there was an additional 'qq' in my file on line 44.(no idea how it got there) I have posted my entire input / output here for viewing and discussion ...

CaiGengYangs-MacBook-Pro:~ CaiGengYang$ cd mysite folder

CaiGengYangs-MacBook-Pro:mysite CaiGengYang$ ls mysite

CaiGengYangs-MacBook-Pro:mysite CaiGengYang$ python migrate

Operations to perform:

  Synchronize unmigrated apps: staticfiles, messages

  Apply all migrations: admin, contenttypes, auth, sessions

Synchronizing apps without migrations:

  Creating tables...

    Running deferred SQL...

  Installing custom SQL...

Running migrations:

  Rendering model states... DONE

  Applying contenttypes.0001_initial... OK

  Applying auth.0001_initial... OK

  Applying admin.0001_initial... OK

  Applying contenttypes.0002_remove_content_type_name... OK

  Applying auth.0002_alter_permission_name_max_length... OK

  Applying auth.0003_alter_user_email_max_length... OK

  Applying auth.0004_alter_user_username_opts... OK

  Applying auth.0005_alter_user_last_login_null... OK

  Applying auth.0006_require_contenttypes_0002... OK

  Applying sessions.0001_initial... OK

CaiGengYangs-MacBook-Pro:mysite CaiGengYang$ 

On Monday, September 28, 2015 at 1:50:18 PM UTC+8, Thomas wrote:

On Sep 27, 2015, at 06:04, Cai Gengyang <> wrote:

This is my entire file

I'm not seeing the problem, but it is certainly there somewhere.

Try removing pieces of the settings file until you can isolate the syntax problem which is likely on or before line 45. Copy the original one aside so you can go back to it and repair the problem once you figure out where it is.


- Tom

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
To post to this group, send email to
Visit this group at
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment