Created
November 23, 2015 13:39
-
-
Save giocalitri/e51bdfdd571f73d7f02b to your computer and use it in GitHub Desktop.
model conflict error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Traceback (most recent call last): | |
File "/usr/lib/python2.7/wsgiref/handlers.py", line 85, in run | |
self.result = application(self.environ, self.start_response) | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/staticfiles/handlers.py", line 63, in __call__ | |
return self.application(environ, start_response) | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 170, in __call__ | |
self.load_middleware() | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 52, in load_middleware | |
mw_instance = mw_class() | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/middleware/locale.py", line 24, in __init__ | |
for url_pattern in get_resolver(None).url_patterns: | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 401, in url_patterns | |
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/urlresolvers.py", line 395, in urlconf_module | |
self._urlconf_module = import_module(self.urlconf_name) | |
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module | |
__import__(name) | |
File "/edx/app/edxapp/edx-platform/lms/urls.py", line 737, in <module> | |
url(r'^api/ccx/', include('ccx.api.urls', namespace='ccx_api')), | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 33, in include | |
urlconf_module = import_module(urlconf_module) | |
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module | |
__import__(name) | |
File "/edx/app/edxapp/edx-platform/lms/djangoapps/ccx/api/urls.py", line 6, in <module> | |
url(r'^v0/', include('ccx.api.v0.urls', namespace='v0')), | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/conf/urls/__init__.py", line 33, in include | |
urlconf_module = import_module(urlconf_module) | |
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module | |
__import__(name) | |
File "/edx/app/edxapp/edx-platform/lms/djangoapps/ccx/api/v0/urls.py", line 6, in <module> | |
from ccx.api.v0 import views | |
File "/edx/app/edxapp/edx-platform/lms/djangoapps/ccx/api/v0/views.py", line 19, in <module> | |
from ccx.models import CustomCourseForEdX | |
File "/edx/app/edxapp/edx-platform/lms/djangoapps/ccx/models.py", line 20, in <module> | |
class CustomCourseForEdX(models.Model): | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/base.py", line 309, in __new__ | |
new_class._meta.apps.register_model(new_class._meta.app_label, new_class) | |
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/apps/registry.py", line 221, in register_model | |
(model_name, app_label, app_models[model_name], model)) | |
RuntimeError: Conflicting 'customcourseforedx' models in application 'ccx': <class 'lms.djangoapps.ccx.models.CustomCourseForEdX'> and <class 'ccx.models.CustomCourseForEdX'>. | |
[23/Nov/2015 08:37:39] "GET /dashboard HTTP/1.1" 500 59 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment