Forums

Having trouble uploading a site to PA

I have a site on my linux machine that I am having trouble uploading to python anywhere. I am creating a tar ball and uploading that and then uncompressing it. I am getting the error message when I go to load the site one it had been extracted.

The site works fine on the dev. server.

Thank you MC

I have updated to using git, still the same problem, the error msg is:

2014-12-10 02:13:01,115 : self._setup() 2014-12-10 02:13:01,115 : File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 42, in _setup 2014-12-10 02:13:01,115 : self._wrapped = Settings(settings_module) 2014-12-10 02:13:01,115 : File "/usr/local/lib/python2.7/dist-packages/django/conf/init.py", line 92, in init 2014-12-10 02:13:01,115 : raise ImportError("Could not import settings '%s' (Is it on sys.path?): %s" % (self.SETTINGS_MODULE, e)) 2014-12-10 02:13:01,116 :ImportError: Could not import settings 'mysite.settings' (Is it on sys.path?): No module named mysite.settings

Stack overflow of what I have done

From the StackOverflow question it looks like you're not running the Django version you're expecting. You'll have to use a virtualenv