Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
ull...* 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: > > Thi

Re: http://pastebin.com/RWt1mp7F

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

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 ,

SynTaxError: invalid syntax

2015-09-27 Thread Cai Gengyang
This is the message I keep getting when I tried to run $ python manage.py migrate File "/Users/CaiGengYang/mysite/mysite/settings.py", line 45 'django.middleware.csrf.CsrfViewMiddleware', ^ SyntaxError: invalid syntax Below is my entire

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
ckends.sqlite3', 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'), } } # Internationalization # https://docs.djangoproject.com/en/1.8/topics/i18n/ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True USE_L10N = True USE_TZ = T

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
^ SyntaxError: invalid syntax CaiGengYangs-MacBook-Pro:mysite CaiGengYang$ On Sunday, September 27, 2015 at 7:51:51 PM UTC+8, Thomas wrote: > > > > On Sep 27, 2015, at 04:39, Cai Gengyang > wrote: > > > > Hi Tom, > > So I click on Finder ---> Go ---&g

Re: Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
Hi Tom, So I click on Finder ---> Go ---> Home ---> 'Weiqi' folder ---> mysite folder ---> manage.py file. (using a Mac OS X Yosemite Version 10.10.2) This puts me in the same directory as the manage.py file. Then I key in the command : $ python manage.py migrate, but I still get the same er

Django Tutorial(Database Setup Question)

2015-09-27 Thread Cai Gengyang
Hello all ! So I am going through the (Database setup) chapter of this tutorial (https://docs.djangoproject.com/en/1.8/intro/tutorial01/) --- Its the section right after the first chapter on "Creating a project" I opened up mysite/settings.py as per the instructions on the Django tutorial.