I have the same problem and I tried the run settings.py file
python settings.py works without an exception backend file contains
init.py here is my wsgi.py file. Could you please help me out?
import os
import sys
#
path = '/home/jinxed/Foursquare-API-with-Django/backend'
if path not in sys.path:
sys.path.append(path)
#
os.environ['DJANGO_SETTINGS_MODULE'] = 'backend.settings'
#
## then, for django >=1.5:
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application() and the full error message is this:
Traceback (most recent call last): File "./manage.py", line 22, in
<module>
execute_from_command_line(sys.argv) File "/home/jinxed/.virtualenvs/mysite-virtualenv/lib/python3.4/site-packages/django/core/management/init.py",
line 367, in execute_from_command_line
utility.execute() File "/home/jinxed/.virtualenvs/mysite-virtualenv/lib/python3.4/site-packages/django/core/management/init.py",
line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv) File "/home/jinxed/.virtualenvs/mysite-virtualenv/lib/python3.4/site-packages/django/core/management/base.py",
line 294, in run_from_argv
self.execute(args, cmd_options) File "/home/jinxed/.virtualenvs/mysite-virtualenv/lib/python3.4/site-packages/django/core/management/base.py",
line 342, in execute
self.check() File "/home/jinxed/.virtualenvs/mysite-virtualenv/lib/python3.4/site-packages/django/core/management/base.py",
line 374, in check
include_deployment_checks=include_deployment_checks, File "/home/jinxed/.virtualenvs/mysite-virtualenv/lib/python3.4/site-packages/django/core/management/commands/migrate.py",
line 62, in _run_checks
issues.extend(super(Command, self)._run_checks(kwargs)) [url=https://www.webnovedad.com/spyera-descarga-gratis-iphone-android/]spyera[/url], File "/home/jinxed/.virtualenvs/mysite-virtualenv/lib/python3.4/site-packages/django/core/management/base.py",
line 361, in _run_checks
return checks.run_checks(*kwargs) File "/home/jinxed/.virtualenvs/mysite-virtualenv/lib/python3.4/site-packages/django/core/checks/registry.py",
line 81, in run_checks
new_errors = check(app_configs=app_configs) File "/home/jinxed/.virtualenvs/mysite-virtualenv/lib/python3.4/site-packages/django/core/checks/urls.py",
line 14, in check_url_config
return check_resolver(resolver) File "/home/jinxed/.virtualenvs/mysite-virtualenv/lib/python3.4/site-packages/django/core/checks/urls.py",
line 24, in check_resolver
for pattern in resolver.url_patterns: File "/home/jinxed/.virtualenvs/mysite-virtualenv/lib/python3.4/site-packages/django/utils/functional.py",
line 35, in get
res = instance.dict[self.name] = self.func(instance) File "/home/jinxed/.virtualenvs/mysite-virtualenv/lib/python3.4/site-packages/dja
ngo/urls/resolvers.py", line 313, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File
"/home/jinxed/.virtualenvs/mysite-virtualenv/lib/python3.4/site-packages/dja
ngo/utils/functional.py", line 35, in get
res = instance.dict[self.name] = self.func(instance) File "/home/jinxed/.virtualenvs/mysite-virtualenv/lib/python3.4/site-packages/dja
ngo/urls/resolvers.py", line 306, in urlconf_module
return import_module(self.urlconf_name) File "/home/jinxed/.virtualenvs/mysite-virtualenv/lib/python3.4/importlib/__init_
_.py", line 109, in import_module
return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 2254, in _gcd_import File
"<frozen importlib._bootstrap>", line 2237, in _find_and_load File
"<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
File "<frozen importlib._bootstrap>", line 1129, in _exec File
"<frozen importlib._bootstrap>", line 1471, in exec_module File
"<frozen importlib._bootstrap>", line 321, in
_call_with_frames_removed File "/home/jinxed/Foursquare-API-with-Django/backend/urls.py", line 21, in
<modu le>
import settings ImportError: No module named 'settings'
You must to use a debug, for to localizate bug.