INSTALLED_APPS = [
'tenant_schemas',
'tenantexample.tenant',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'classroom',
]
I created super user succefully for public tenant what should i need to change to login to view my tenats in my admin page
this is my seetings.py file i am trying to login to my admin panel shows the following error
Request Method:
GET
http://127.0.0.1:8000/admin/
2.0.8
ProgrammingError
relation "django_admin_log" does not exist LINE 1: ..."."app_label", "django_content_type"."model" FROM "django_ad... ^
C:\Python36\lib\site-packages\django\db\backends\utils.py in _execute, line 85
C:\Python36\python.exe
3.6.4
['C:\Users\marim\OneDrive\Desktop\28092018\tenantexample', 'C:\Python36\python36.zip', 'C:\Python36\DLLs', 'C:\Python36\lib', 'C:\Python36', 'C:\Python36\lib\site-packages', 'C:\Python36\lib\site-packages\django_organizations-1.1.1-py3.6.egg']
Fri, 28 Sep 2018 05:48:04 +0000
SHARED_APPS = ( 'tenant_schemas', # mandatory, should always be before any django app
'customers', # you must list the app where your tenant model resides in
) TENANT_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'tenantexample.tenant', 'classroom',
your tenant-specific apps
)
Application definition
INSTALLED_APPS = [ 'tenant_schemas', 'tenantexample.tenant', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'classroom', ] I created super user succefully for public tenant what should i need to change to login to view my tenats in my admin page this is my seetings.py file i am trying to login to my admin panel shows the following error
http://127.0.0.1:8000/admin/ 2.0.8 ProgrammingError relation "django_admin_log" does not exist LINE 1: ..."."app_label", "django_content_type"."model" FROM "django_ad... ^ C:\Python36\lib\site-packages\django\db\backends\utils.py in _execute, line 85 C:\Python36\python.exe 3.6.4 ['C:\Users\marim\OneDrive\Desktop\28092018\tenantexample', 'C:\Python36\python36.zip', 'C:\Python36\DLLs', 'C:\Python36\lib', 'C:\Python36', 'C:\Python36\lib\site-packages', 'C:\Python36\lib\site-packages\django_organizations-1.1.1-py3.6.egg'] Fri, 28 Sep 2018 05:48:04 +0000