Django won't start with a wierd error “AttributeError: 'module' object has no attribute 'getargspec'”
up vote
3
down vote
favorite
I'm a bit inexperienced when it comes to Django's internals so I'm completely stuck now. It worked yesterday, and I can't remember I've changed anything significant.
When I turn DEBUG=True
there is a stack trace on any module which happens to be first in the list
Traceback (most recent call last):
File "/home/yury/PycharmProjects/mezzamine/findmeals/mezzamine/manage.py", line 28, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 354, in execute
django.setup()
File "/usr/local/lib/python3.4/dist-packages/django/__init__.py", line 18, in setup
from django.utils.log import configure_logging
File "/usr/local/lib/python3.4/dist-packages/django/utils/log.py", line 13, in <module>
from django.views.debug import ExceptionReporter, get_exception_reporter_filter
File "/usr/local/lib/python3.4/dist-packages/django/views/debug.py", line 10, in <module>
from django.http import (HttpResponse, HttpResponseServerError,
File "/usr/local/lib/python3.4/dist-packages/django/http/__init__.py", line 4, in <module>
from django.http.response import (
File "/usr/local/lib/python3.4/dist-packages/django/http/response.py", line 13, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/base.py", line 6, in <module>
from django.db import models
File "/usr/local/lib/python3.4/dist-packages/django/db/__init__.py", line 98, in <module>
signals.request_started.connect(reset_queries)
File "/usr/local/lib/python3.4/dist-packages/django/dispatch/dispatcher.py", line 99, in connect
argspec = inspect.getargspec(receiver)
AttributeError: 'module' object has no attribute 'getargspec'
And when I turn DEBUG=False
it complains about
Traceback (most recent call last):
File "/home/yury/PycharmProjects/mezzamine/findmeals/mezzamine/manage.py", line 28, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 354, in execute
django.setup()
File "/usr/local/lib/python3.4/dist-packages/django/__init__.py", line 18, in setup
from django.utils.log import configure_logging
File "/usr/local/lib/python3.4/dist-packages/django/utils/log.py", line 13, in <module>
from django.views.debug import ExceptionReporter, get_exception_reporter_filter
File "/usr/local/lib/python3.4/dist-packages/django/views/debug.py", line 10, in <module>
from django.http import (HttpResponse, HttpResponseServerError,
File "/usr/local/lib/python3.4/dist-packages/django/http/__init__.py", line 4, in <module>
from django.http.response import (
File "/usr/local/lib/python3.4/dist-packages/django/http/response.py", line 13, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/base.py", line 6, in <module>
from django.db import models
File "/usr/local/lib/python3.4/dist-packages/django/db/models/__init__.py", line 8, in <module>
from django.db.models.manager import Manager # NOQA
File "/usr/local/lib/python3.4/dist-packages/django/db/models/manager.py", line 63, in <module>
class BaseManager(six.with_metaclass(RenameManagerMethods)):
File "/usr/local/lib/python3.4/dist-packages/django/utils/six.py", line 778, in __new__
return meta(name, bases, d)
File "/usr/local/lib/python3.4/dist-packages/django/utils/deprecation.py", line 50, in __new__
for base in inspect.getmro(new_class):
AttributeError: 'module' object has no attribute 'getmro'
I use Django 1.7.8 and Mezzanine 3 and tried upgrading and reinstalling them with no luck. Could anyone give a hint on what's wrong?
python django
add a comment |
up vote
3
down vote
favorite
I'm a bit inexperienced when it comes to Django's internals so I'm completely stuck now. It worked yesterday, and I can't remember I've changed anything significant.
When I turn DEBUG=True
there is a stack trace on any module which happens to be first in the list
Traceback (most recent call last):
File "/home/yury/PycharmProjects/mezzamine/findmeals/mezzamine/manage.py", line 28, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 354, in execute
django.setup()
File "/usr/local/lib/python3.4/dist-packages/django/__init__.py", line 18, in setup
from django.utils.log import configure_logging
File "/usr/local/lib/python3.4/dist-packages/django/utils/log.py", line 13, in <module>
from django.views.debug import ExceptionReporter, get_exception_reporter_filter
File "/usr/local/lib/python3.4/dist-packages/django/views/debug.py", line 10, in <module>
from django.http import (HttpResponse, HttpResponseServerError,
File "/usr/local/lib/python3.4/dist-packages/django/http/__init__.py", line 4, in <module>
from django.http.response import (
File "/usr/local/lib/python3.4/dist-packages/django/http/response.py", line 13, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/base.py", line 6, in <module>
from django.db import models
File "/usr/local/lib/python3.4/dist-packages/django/db/__init__.py", line 98, in <module>
signals.request_started.connect(reset_queries)
File "/usr/local/lib/python3.4/dist-packages/django/dispatch/dispatcher.py", line 99, in connect
argspec = inspect.getargspec(receiver)
AttributeError: 'module' object has no attribute 'getargspec'
And when I turn DEBUG=False
it complains about
Traceback (most recent call last):
File "/home/yury/PycharmProjects/mezzamine/findmeals/mezzamine/manage.py", line 28, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 354, in execute
django.setup()
File "/usr/local/lib/python3.4/dist-packages/django/__init__.py", line 18, in setup
from django.utils.log import configure_logging
File "/usr/local/lib/python3.4/dist-packages/django/utils/log.py", line 13, in <module>
from django.views.debug import ExceptionReporter, get_exception_reporter_filter
File "/usr/local/lib/python3.4/dist-packages/django/views/debug.py", line 10, in <module>
from django.http import (HttpResponse, HttpResponseServerError,
File "/usr/local/lib/python3.4/dist-packages/django/http/__init__.py", line 4, in <module>
from django.http.response import (
File "/usr/local/lib/python3.4/dist-packages/django/http/response.py", line 13, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/base.py", line 6, in <module>
from django.db import models
File "/usr/local/lib/python3.4/dist-packages/django/db/models/__init__.py", line 8, in <module>
from django.db.models.manager import Manager # NOQA
File "/usr/local/lib/python3.4/dist-packages/django/db/models/manager.py", line 63, in <module>
class BaseManager(six.with_metaclass(RenameManagerMethods)):
File "/usr/local/lib/python3.4/dist-packages/django/utils/six.py", line 778, in __new__
return meta(name, bases, d)
File "/usr/local/lib/python3.4/dist-packages/django/utils/deprecation.py", line 50, in __new__
for base in inspect.getmro(new_class):
AttributeError: 'module' object has no attribute 'getmro'
I use Django 1.7.8 and Mezzanine 3 and tried upgrading and reinstalling them with no luck. Could anyone give a hint on what's wrong?
python django
3
Try to Uninstall Django package with pip and re-install it.pip uninstall Django
andpip install Django
. Add also yoursettings.py
, please
– Louis Barranqueiro
Nov 17 '15 at 8:16
What I understand from the docs is that you need version 4 for Django 1.7.8, and for version 3 you need Django 1.6
– het.oosten
Nov 17 '15 at 8:29
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I'm a bit inexperienced when it comes to Django's internals so I'm completely stuck now. It worked yesterday, and I can't remember I've changed anything significant.
When I turn DEBUG=True
there is a stack trace on any module which happens to be first in the list
Traceback (most recent call last):
File "/home/yury/PycharmProjects/mezzamine/findmeals/mezzamine/manage.py", line 28, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 354, in execute
django.setup()
File "/usr/local/lib/python3.4/dist-packages/django/__init__.py", line 18, in setup
from django.utils.log import configure_logging
File "/usr/local/lib/python3.4/dist-packages/django/utils/log.py", line 13, in <module>
from django.views.debug import ExceptionReporter, get_exception_reporter_filter
File "/usr/local/lib/python3.4/dist-packages/django/views/debug.py", line 10, in <module>
from django.http import (HttpResponse, HttpResponseServerError,
File "/usr/local/lib/python3.4/dist-packages/django/http/__init__.py", line 4, in <module>
from django.http.response import (
File "/usr/local/lib/python3.4/dist-packages/django/http/response.py", line 13, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/base.py", line 6, in <module>
from django.db import models
File "/usr/local/lib/python3.4/dist-packages/django/db/__init__.py", line 98, in <module>
signals.request_started.connect(reset_queries)
File "/usr/local/lib/python3.4/dist-packages/django/dispatch/dispatcher.py", line 99, in connect
argspec = inspect.getargspec(receiver)
AttributeError: 'module' object has no attribute 'getargspec'
And when I turn DEBUG=False
it complains about
Traceback (most recent call last):
File "/home/yury/PycharmProjects/mezzamine/findmeals/mezzamine/manage.py", line 28, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 354, in execute
django.setup()
File "/usr/local/lib/python3.4/dist-packages/django/__init__.py", line 18, in setup
from django.utils.log import configure_logging
File "/usr/local/lib/python3.4/dist-packages/django/utils/log.py", line 13, in <module>
from django.views.debug import ExceptionReporter, get_exception_reporter_filter
File "/usr/local/lib/python3.4/dist-packages/django/views/debug.py", line 10, in <module>
from django.http import (HttpResponse, HttpResponseServerError,
File "/usr/local/lib/python3.4/dist-packages/django/http/__init__.py", line 4, in <module>
from django.http.response import (
File "/usr/local/lib/python3.4/dist-packages/django/http/response.py", line 13, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/base.py", line 6, in <module>
from django.db import models
File "/usr/local/lib/python3.4/dist-packages/django/db/models/__init__.py", line 8, in <module>
from django.db.models.manager import Manager # NOQA
File "/usr/local/lib/python3.4/dist-packages/django/db/models/manager.py", line 63, in <module>
class BaseManager(six.with_metaclass(RenameManagerMethods)):
File "/usr/local/lib/python3.4/dist-packages/django/utils/six.py", line 778, in __new__
return meta(name, bases, d)
File "/usr/local/lib/python3.4/dist-packages/django/utils/deprecation.py", line 50, in __new__
for base in inspect.getmro(new_class):
AttributeError: 'module' object has no attribute 'getmro'
I use Django 1.7.8 and Mezzanine 3 and tried upgrading and reinstalling them with no luck. Could anyone give a hint on what's wrong?
python django
I'm a bit inexperienced when it comes to Django's internals so I'm completely stuck now. It worked yesterday, and I can't remember I've changed anything significant.
When I turn DEBUG=True
there is a stack trace on any module which happens to be first in the list
Traceback (most recent call last):
File "/home/yury/PycharmProjects/mezzamine/findmeals/mezzamine/manage.py", line 28, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 354, in execute
django.setup()
File "/usr/local/lib/python3.4/dist-packages/django/__init__.py", line 18, in setup
from django.utils.log import configure_logging
File "/usr/local/lib/python3.4/dist-packages/django/utils/log.py", line 13, in <module>
from django.views.debug import ExceptionReporter, get_exception_reporter_filter
File "/usr/local/lib/python3.4/dist-packages/django/views/debug.py", line 10, in <module>
from django.http import (HttpResponse, HttpResponseServerError,
File "/usr/local/lib/python3.4/dist-packages/django/http/__init__.py", line 4, in <module>
from django.http.response import (
File "/usr/local/lib/python3.4/dist-packages/django/http/response.py", line 13, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/base.py", line 6, in <module>
from django.db import models
File "/usr/local/lib/python3.4/dist-packages/django/db/__init__.py", line 98, in <module>
signals.request_started.connect(reset_queries)
File "/usr/local/lib/python3.4/dist-packages/django/dispatch/dispatcher.py", line 99, in connect
argspec = inspect.getargspec(receiver)
AttributeError: 'module' object has no attribute 'getargspec'
And when I turn DEBUG=False
it complains about
Traceback (most recent call last):
File "/home/yury/PycharmProjects/mezzamine/findmeals/mezzamine/manage.py", line 28, in <module>
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.4/dist-packages/django/core/management/__init__.py", line 354, in execute
django.setup()
File "/usr/local/lib/python3.4/dist-packages/django/__init__.py", line 18, in setup
from django.utils.log import configure_logging
File "/usr/local/lib/python3.4/dist-packages/django/utils/log.py", line 13, in <module>
from django.views.debug import ExceptionReporter, get_exception_reporter_filter
File "/usr/local/lib/python3.4/dist-packages/django/views/debug.py", line 10, in <module>
from django.http import (HttpResponse, HttpResponseServerError,
File "/usr/local/lib/python3.4/dist-packages/django/http/__init__.py", line 4, in <module>
from django.http.response import (
File "/usr/local/lib/python3.4/dist-packages/django/http/response.py", line 13, in <module>
from django.core.serializers.json import DjangoJSONEncoder
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/__init__.py", line 23, in <module>
from django.core.serializers.base import SerializerDoesNotExist
File "/usr/local/lib/python3.4/dist-packages/django/core/serializers/base.py", line 6, in <module>
from django.db import models
File "/usr/local/lib/python3.4/dist-packages/django/db/models/__init__.py", line 8, in <module>
from django.db.models.manager import Manager # NOQA
File "/usr/local/lib/python3.4/dist-packages/django/db/models/manager.py", line 63, in <module>
class BaseManager(six.with_metaclass(RenameManagerMethods)):
File "/usr/local/lib/python3.4/dist-packages/django/utils/six.py", line 778, in __new__
return meta(name, bases, d)
File "/usr/local/lib/python3.4/dist-packages/django/utils/deprecation.py", line 50, in __new__
for base in inspect.getmro(new_class):
AttributeError: 'module' object has no attribute 'getmro'
I use Django 1.7.8 and Mezzanine 3 and tried upgrading and reinstalling them with no luck. Could anyone give a hint on what's wrong?
python django
python django
asked Nov 17 '15 at 8:03
Ojomio
177110
177110
3
Try to Uninstall Django package with pip and re-install it.pip uninstall Django
andpip install Django
. Add also yoursettings.py
, please
– Louis Barranqueiro
Nov 17 '15 at 8:16
What I understand from the docs is that you need version 4 for Django 1.7.8, and for version 3 you need Django 1.6
– het.oosten
Nov 17 '15 at 8:29
add a comment |
3
Try to Uninstall Django package with pip and re-install it.pip uninstall Django
andpip install Django
. Add also yoursettings.py
, please
– Louis Barranqueiro
Nov 17 '15 at 8:16
What I understand from the docs is that you need version 4 for Django 1.7.8, and for version 3 you need Django 1.6
– het.oosten
Nov 17 '15 at 8:29
3
3
Try to Uninstall Django package with pip and re-install it.
pip uninstall Django
and pip install Django
. Add also your settings.py
, please– Louis Barranqueiro
Nov 17 '15 at 8:16
Try to Uninstall Django package with pip and re-install it.
pip uninstall Django
and pip install Django
. Add also your settings.py
, please– Louis Barranqueiro
Nov 17 '15 at 8:16
What I understand from the docs is that you need version 4 for Django 1.7.8, and for version 3 you need Django 1.6
– het.oosten
Nov 17 '15 at 8:29
What I understand from the docs is that you need version 4 for Django 1.7.8, and for version 3 you need Django 1.6
– het.oosten
Nov 17 '15 at 8:29
add a comment |
2 Answers
2
active
oldest
votes
up vote
7
down vote
accepted
You have a local file called "inspect.py" that is shadowing the stdlib module. Name your file something else.
You're right, yes, I found it out and wanted to write the answer but you had been faster.
– Ojomio
Nov 17 '15 at 10:10
I have the same problem and I don't have any local inspect.py file ...
– Armita
Nov 23 '15 at 8:28
@Armita this could beinspect.pyc
then.
– Sergey Fedoseev
Dec 9 '15 at 15:46
That worked but how did you know?
– Soroush Ghodsi
Dec 31 '15 at 2:35
add a comment |
up vote
2
down vote
django/utils/inspect.pyc
is shadowing standard library inspect.py
django/utils/inspect.py
was added in Django 1.9
and compiled binary file is left after you downgraded to 1.7.8
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
7
down vote
accepted
You have a local file called "inspect.py" that is shadowing the stdlib module. Name your file something else.
You're right, yes, I found it out and wanted to write the answer but you had been faster.
– Ojomio
Nov 17 '15 at 10:10
I have the same problem and I don't have any local inspect.py file ...
– Armita
Nov 23 '15 at 8:28
@Armita this could beinspect.pyc
then.
– Sergey Fedoseev
Dec 9 '15 at 15:46
That worked but how did you know?
– Soroush Ghodsi
Dec 31 '15 at 2:35
add a comment |
up vote
7
down vote
accepted
You have a local file called "inspect.py" that is shadowing the stdlib module. Name your file something else.
You're right, yes, I found it out and wanted to write the answer but you had been faster.
– Ojomio
Nov 17 '15 at 10:10
I have the same problem and I don't have any local inspect.py file ...
– Armita
Nov 23 '15 at 8:28
@Armita this could beinspect.pyc
then.
– Sergey Fedoseev
Dec 9 '15 at 15:46
That worked but how did you know?
– Soroush Ghodsi
Dec 31 '15 at 2:35
add a comment |
up vote
7
down vote
accepted
up vote
7
down vote
accepted
You have a local file called "inspect.py" that is shadowing the stdlib module. Name your file something else.
You have a local file called "inspect.py" that is shadowing the stdlib module. Name your file something else.
answered Nov 17 '15 at 8:28
Daniel Roseman
440k40572627
440k40572627
You're right, yes, I found it out and wanted to write the answer but you had been faster.
– Ojomio
Nov 17 '15 at 10:10
I have the same problem and I don't have any local inspect.py file ...
– Armita
Nov 23 '15 at 8:28
@Armita this could beinspect.pyc
then.
– Sergey Fedoseev
Dec 9 '15 at 15:46
That worked but how did you know?
– Soroush Ghodsi
Dec 31 '15 at 2:35
add a comment |
You're right, yes, I found it out and wanted to write the answer but you had been faster.
– Ojomio
Nov 17 '15 at 10:10
I have the same problem and I don't have any local inspect.py file ...
– Armita
Nov 23 '15 at 8:28
@Armita this could beinspect.pyc
then.
– Sergey Fedoseev
Dec 9 '15 at 15:46
That worked but how did you know?
– Soroush Ghodsi
Dec 31 '15 at 2:35
You're right, yes, I found it out and wanted to write the answer but you had been faster.
– Ojomio
Nov 17 '15 at 10:10
You're right, yes, I found it out and wanted to write the answer but you had been faster.
– Ojomio
Nov 17 '15 at 10:10
I have the same problem and I don't have any local inspect.py file ...
– Armita
Nov 23 '15 at 8:28
I have the same problem and I don't have any local inspect.py file ...
– Armita
Nov 23 '15 at 8:28
@Armita this could be
inspect.pyc
then.– Sergey Fedoseev
Dec 9 '15 at 15:46
@Armita this could be
inspect.pyc
then.– Sergey Fedoseev
Dec 9 '15 at 15:46
That worked but how did you know?
– Soroush Ghodsi
Dec 31 '15 at 2:35
That worked but how did you know?
– Soroush Ghodsi
Dec 31 '15 at 2:35
add a comment |
up vote
2
down vote
django/utils/inspect.pyc
is shadowing standard library inspect.py
django/utils/inspect.py
was added in Django 1.9
and compiled binary file is left after you downgraded to 1.7.8
add a comment |
up vote
2
down vote
django/utils/inspect.pyc
is shadowing standard library inspect.py
django/utils/inspect.py
was added in Django 1.9
and compiled binary file is left after you downgraded to 1.7.8
add a comment |
up vote
2
down vote
up vote
2
down vote
django/utils/inspect.pyc
is shadowing standard library inspect.py
django/utils/inspect.py
was added in Django 1.9
and compiled binary file is left after you downgraded to 1.7.8
django/utils/inspect.pyc
is shadowing standard library inspect.py
django/utils/inspect.py
was added in Django 1.9
and compiled binary file is left after you downgraded to 1.7.8
answered Jul 24 '16 at 15:10
Pawel Furmaniak
2,68032232
2,68032232
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f33751859%2fdjango-wont-start-with-a-wierd-error-attributeerror-module-object-has-no-at%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
3
Try to Uninstall Django package with pip and re-install it.
pip uninstall Django
andpip install Django
. Add also yoursettings.py
, please– Louis Barranqueiro
Nov 17 '15 at 8:16
What I understand from the docs is that you need version 4 for Django 1.7.8, and for version 3 you need Django 1.6
– het.oosten
Nov 17 '15 at 8:29