Title: ModuleNotFoundError: No module named 'settings' · Issue #19 · phalt/swapi-python · GitHub
Open Graph Title: ModuleNotFoundError: No module named 'settings' · Issue #19 · phalt/swapi-python
X Title: ModuleNotFoundError: No module named 'settings' · Issue #19 · phalt/swapi-python
Description: from django.shortcuts import render Create your views here. def index(request): import swapi films = swapi.get_all("films") context = { 'list': films } return render( request, 'index.html', context) Internal Server Error: /films/ Traceba...
Open Graph Description: from django.shortcuts import render Create your views here. def index(request): import swapi films = swapi.get_all("films") context = { 'list': films } return render( request, 'index.html', context...
X Description: from django.shortcuts import render Create your views here. def index(request): import swapi films = swapi.get_all("films") context = { 'list': films } return render( request, ...
Opengraph URL: https://github.com/phalt/swapi-python/issues/19
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ModuleNotFoundError: No module named 'settings'","articleBody":"from django.shortcuts import render\r\n\r\n# Create your views here.\r\ndef index(request):\r\n import swapi\r\n\r\n films = swapi.get_all(\"films\")\r\n context = {\r\n 'list': films\r\n }\r\n return render( request, 'index.html', context)\r\n \r\nInternal Server Error: /films/\r\nTraceback (most recent call last):\r\n File \"/home/acuta/Документи/Python/django/part_10/.venv/lib/python3.10/site-packages/swapi/swapi.py\", line 3, in \u003cmodule>\r\n from swapi.utils import query, all_resource_urls\r\n File \"/home/acuta/Документи/Python/django/part_10/.venv/lib/python3.10/site-packages/swapi/utils.py\", line 1, in \u003cmodule>\r\n import requests\r\n File \"/home/acuta/Документи/Python/django/part_10/.venv/lib/python3.10/site-packages/requests/__init__.py\", line 58, in \u003cmodule>\r\n from . import utils\r\n File \"/home/acuta/Документи/Python/django/part_10/.venv/lib/python3.10/site-packages/requests/utils.py\", line 26, in \u003cmodule>\r\n from .compat import parse_http_list as _parse_list_header\r\n File \"/home/acuta/Документи/Python/django/part_10/.venv/lib/python3.10/site-packages/requests/compat.py\", line 7, in \u003cmodule>\r\n from .packages import chardet\r\n File \"/home/acuta/Документи/Python/django/part_10/.venv/lib/python3.10/site-packages/requests/packages/__init__.py\", line 3, in \u003cmodule>\r\n from . import urllib3\r\n File \"/home/acuta/Документи/Python/django/part_10/.venv/lib/python3.10/site-packages/requests/packages/urllib3/__init__.py\", line 10, in \u003cmodule>\r\n from .connectionpool import (\r\n File \"/home/acuta/Документи/Python/django/part_10/.venv/lib/python3.10/site-packages/requests/packages/urllib3/connectionpool.py\", line 38, in \u003cmodule>\r\n from .response import HTTPResponse\r\n File \"/home/acuta/Документи/Python/django/part_10/.venv/lib/python3.10/site-packages/requests/packages/urllib3/response.py\", line 5, in \u003cmodule>\r\n from ._collections import HTTPHeaderDict\r\n File \"/home/acuta/Документи/Python/django/part_10/.venv/lib/python3.10/site-packages/requests/packages/urllib3/_collections.py\", line 1, in \u003cmodule>\r\n from collections import Mapping, MutableMapping\r\nImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/__init__.py)\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File \"/home/acuta/Документи/Python/django/part_10/.venv/lib/python3.10/site-packages/django/core/handlers/exception.py\", line 55, in inner\r\n response = get_response(request)\r\n File \"/home/acuta/Документи/Python/django/part_10/.venv/lib/python3.10/site-packages/django/core/handlers/base.py\", line 197, in _get_response\r\n response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n File \"/home/acuta/Документи/Python/django/part_10/starwars/films/views.py\", line 6, in index\r\n import swapi\r\n File \"/home/acuta/Документи/Python/django/part_10/.venv/lib/python3.10/site-packages/swapi/__init__.py\", line 7, in \u003cmodule>\r\n from .swapi import (\r\n File \"/home/acuta/Документи/Python/django/part_10/.venv/lib/python3.10/site-packages/swapi/swapi.py\", line 19, in \u003cmodule>\r\n import settings\r\nModuleNotFoundError: No module named 'settings'\r\n[10/Sep/2023 10:53:55] \"GET /films/ HTTP/1.1\" 500 222569","author":{"url":"https://github.com/Acutapugione","@type":"Person","name":"Acutapugione"},"datePublished":"2023-09-10T10:55:45Z","url":"https://github.com/phalt/swapi-python/issues/19"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d6ead3ec-4c55-5ab4-3299-be92e91e412e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B688:393322:696FBC:874340:6B09B002 |
| html-safe-nonce | c00f3b283b0b6f58e84530159ce1f210916b245096905e69e9929b165d2c0eda |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjg4OjM5MzMyMjo2OTZGQkM6ODc0MzQwOjZCMDlCMDAyIiwidmlzaXRvcl9pZCI6Ijg3NTI3NjA4MzY5NjE0NDc5MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | defd21aefc08145ad81542a279dd6d77867ee64e6106e7be924681cdfa716a7d |
| hovercard-subject-tag | issue:1889097247 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/phalt/swapi-python/19/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4bcd86e621c58b069ab7570096777ab78a070b1bb31e160d711cbfd74549357c/phalt/swapi-python/issues/19 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4bcd86e621c58b069ab7570096777ab78a070b1bb31e160d711cbfd74549357c/phalt/swapi-python/issues/19 |
| og:image:alt | from django.shortcuts import render Create your views here. def index(request): import swapi films = swapi.get_all("films") context = { 'list': films } return render( request, 'index.html', context... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Acutapugione |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5ee9972cda5524016b9eddec37d51a4550d0a8a3bc7d0c189531849d55d54b8c |
| turbo-cache-control | no-preview |
| go-import | github.com/phalt/swapi-python git https://github.com/phalt/swapi-python.git |
| octolytics-dimension-user_id | 490685 |
| octolytics-dimension-user_login | phalt |
| octolytics-dimension-repository_id | 28136077 |
| octolytics-dimension-repository_nwo | phalt/swapi-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 28136077 |
| octolytics-dimension-repository_network_root_nwo | phalt/swapi-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2d87ea1696ca7d53c0e83fef3db13186e4a6cce7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width