Help with Debugging

Cai Gengyang gengyangcai at
Mon Sep 28 07:26:35 CEST 2015

This is my input and output error message (the whole thing) :

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

CaiGengYangs-MacBook-Pro:mysite CaiGengYang$ ls        mysite 

CaiGengYangs-MacBook-Pro:mysite CaiGengYang$ python migrate 

Traceback (most recent call last): 

  File "", line 10, in <module> 


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/", line 338, in execute_from_command_line 


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/core/management/", line 303, in execute 


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/conf/", line 48, in __getattr__ 


  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/conf/", line 44, in _setup 

    self._wrapped = Settings(settings_module) 

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/django/conf/", line 92, in __init__ 

    mod = importlib.import_module(self.SETTINGS_MODULE) 

  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/", line 37, in import_module 


  File "/Users/CaiGengYang/mysite/mysite/", line 45 



SyntaxError: invalid syntax 

CaiGengYangs-MacBook-Pro:mysite CaiGengYang$ 

On Monday, September 28, 2015 at 8:10:26 AM UTC+8, Steven D'Aprano wrote:
> On Mon, 28 Sep 2015 03:45 am, Cai Gengyang wrote:
> > --- If anybody can find any errors with this
> > file, let me know !
> > 
> > Can't seem to find anything wrong with it ...
> Perhaps there is nothing wrong with it. What makes you think that there is?
> Do you get an exception? If so, the exception will tell you where to start:
> read the error message, look at the line it says the error occurred at, and
> fix the problem.
> If you need help, COPY and PASTE the *entire* traceback, starting from the
> line "Traceback (most recent call last)" to the error message at the end,
> and send it to us.
> -- 
> Steven

More information about the Python-list mailing list