Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README for creating an instance of jasmin-cloud web UI on another OpenStack instance #79

Open
brtkwr opened this issue Jan 4, 2021 · 2 comments

Comments

@brtkwr
Copy link

brtkwr commented Jan 4, 2021

Hi Matt, it would be great to have a README for getting the cloud UI up and running for another OpenStack instance. I am not sure what settings are required within jasmin_cloud_site/settings.py but it would be nice to have some hints for sensible defaults. Cheers.

@brtkwr
Copy link
Author

brtkwr commented Jan 5, 2021

I've got as far as having the following in settings.py:

SECRET_KEY = 'dev'
ALLOWED_HOSTS = ['10.60.253.30']
DEBUG = True
ROOT_URLCONF = 'jasmin_cloud_site.urls'

However, I am still getting this error:

RuntimeError: Model class django.contrib.contenttypes.models.ContentType doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

@brtkwr
Copy link
Author

brtkwr commented Jan 5, 2021

After adding some config to INSTALLED_APPS, the error is different:

INSTALLED_APPS = [
                  'django.contrib.contenttypes',
                  'django.contrib.auth',
                  'rest_framework',
                 ]

python manage.py runserver 0.0.0.0:8000

Traceback (most recent call last):
  File "/home/ubuntu/jasmin-cloud/venv/lib/python3.6/site-packages/django/core/handlers/exception.py", line 34, in inner
    response = get_response(request)
  File "/home/ubuntu/jasmin-cloud/venv/lib/python3.6/site-packages/django/core/handlers/base.py", line 145, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/ubuntu/jasmin-cloud/venv/lib/python3.6/site-packages/django/core/handlers/base.py", line 143, in _get_response
    response = response.render()
  File "/home/ubuntu/jasmin-cloud/venv/lib/python3.6/site-packages/django/template/response.py", line 105, in render
    self.content = self.rendered_content
  File "/home/ubuntu/jasmin-cloud/venv/lib/python3.6/site-packages/rest_framework/response.py", line 70, in rendered_content
    ret = renderer.render(self.data, accepted_media_type, context)
  File "/home/ubuntu/jasmin-cloud/venv/lib/python3.6/site-packages/rest_framework/renderers.py", line 723, in render
    template = loader.get_template(self.template)
  File "/home/ubuntu/jasmin-cloud/venv/lib/python3.6/site-packages/django/template/loader.py", line 19, in get_template
    raise TemplateDoesNotExist(template_name, chain=chain)
django.template.exceptions.TemplateDoesNotExist: rest_framework/api.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant