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

manage.py mysite

CaiGengYangs-MacBook-Pro:mysite CaiGengYang$ python manage.py 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 <gengy...@gmail.com> wrote:

This is my entire settings.py 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.

hth

- 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 django-users+unsubscribe@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/45e61d73-4bc8-4a95-a12f-3082f770a692%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment