[Mayan EDMS: 1430] no such table: django_site

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Mayan EDMS: 1430] no such table: django_site

Jamie Magee
I get the error no such table: django_site when attempting to load the login page. This happens after cloning the repo, running initialsetup and runserver and pointing my browser to 127.0.0.1:8000.

I can see that during the migration the table isn't created

Creating tables...
   
Creating table corsheaders_corsmodel
   
Running deferred SQL...

I'm not sure what command I should run to create the `django_site` table

The full stack trace is

Environment:




Request Method: GET
Request URL: http://localhost:8000/authentication/login/?next=/


Django Version: 1.8.13
Python Version: 2.7.12
Installed Applications:
(u'appearance',
 u
'suit',
 u
'django.contrib.admin',
 u
'django.contrib.admindocs',
 u
'django.contrib.auth',
 u
'django.contrib.contenttypes',
 u
'django.contrib.messages',
 u
'django.contrib.sessions',
 u
'django.contrib.sites',
 u
'django.contrib.staticfiles',
 u
'actstream',
 u
'autoadmin',
 u
'colorful',
 u
'compressor',
 u
'corsheaders',
 u
'djcelery',
 u
'filetransfers',
 u
'formtools',
 u
'mptt',
 u
'pure_pagination',
 u
'rest_framework',
 u
'rest_framework.authtoken',
 u
'solo',
 u
'stronghold',
 u
'widget_tweaks',
 u
'acls',
 u
'authentication',
 u
'common',
 u
'converter',
 u
'django_gpg',
 u
'dynamic_search',
 u
'lock_manager',
 u
'mimetype',
 u
'navigation',
 u
'permissions',
 u
'smart_settings',
 u
'user_management',
 u
'checkouts',
 u
'document_comments',
 u
'document_indexing',
 u
'document_signatures',
 u
'document_states',
 u
'documents',
 u
'events',
 u
'folders',
 u
'installation',
 u
'linking',
 u
'mailer',
 u
'metadata',
 u
'mirroring',
 u
'motd',
 u
'ocr',
 u
'rest_api',
 u
'sources',
 u
'statistics',
 u
'storage',
 u
'tags',
 u
'rest_framework_swagger')
Installed Middleware:
(u'django.contrib.sessions.middleware.SessionMiddleware',
 u
'corsheaders.middleware.CorsMiddleware',
 u
'django.middleware.common.CommonMiddleware',
 u
'django.middleware.csrf.CsrfViewMiddleware',
 u
'django.contrib.auth.middleware.AuthenticationMiddleware',
 u
'django.contrib.messages.middleware.MessageMiddleware',
 u
'django.middleware.clickjacking.XFrameOptionsMiddleware',
 u
'django.middleware.locale.LocaleMiddleware',
 u
'common.middleware.timezone.TimezoneMiddleware',
 u
'stronghold.middleware.LoginRequiredMiddleware',
 u
'common.middleware.ajax_redirect.AjaxRedirect')




Traceback:
File "/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
 
132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/src/mayan/mayan/apps/authentication/views.py" in login_view
 
30.         return login(request, extra_context=context, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/debug.py" in sensitive_post_parameters_wrapper
 
76.             return view(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/utils/decorators.py" in _wrapped_view
 
110.                     response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/views/decorators/cache.py" in _wrapped_view_func
 
57.         response = view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/contrib/auth/views.py" in login
 
57.     current_site = get_current_site(request)
File "/usr/local/lib/python2.7/site-packages/django/contrib/sites/shortcuts.py" in get_current_site
 
15.         return Site.objects.get_current(request)
File "/usr/local/lib/python2.7/site-packages/django/contrib/sites/models.py" in get_current
 
60.             return self._get_site_by_id(site_id)
File "/usr/local/lib/python2.7/site-packages/django/contrib/sites/models.py" in _get_site_by_id
 
39.             site = self.get(pk=site_id)
File "/usr/local/lib/python2.7/site-packages/django/db/models/manager.py" in manager_method
 
127.                 return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in get
 
328.         num = len(clone)
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in __len__
 
144.         self._fetch_all()
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in _fetch_all
 
965.             self._result_cache = list(self.iterator())
File "/usr/local/lib/python2.7/site-packages/django/db/models/query.py" in iterator
 
238.         results = compiler.execute_sql()
File "/usr/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py" in execute_sql
 
840.             cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/utils.py" in execute
 
79.             return super(CursorDebugWrapper, self).execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/utils.py" in execute
 
64.                 return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/utils.py" in __exit__
 
98.                 six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/utils.py" in execute
 
64.                 return self.cursor.execute(sql, params)
File "/usr/local/lib/python2.7/site-packages/django/db/backends/sqlite3/base.py" in execute
 
318.         return Database.Cursor.execute(self, query, params)


Exception Type: OperationalError at /authentication/login/
Exception Value: no such table: django_site

--

---
You received this message because you are subscribed to the Google Groups "Mayan EDMS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...