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

ImproperlyConfigured #45

Open
Abdivoitov-Shokhrukh opened this issue May 5, 2024 · 0 comments
Open

ImproperlyConfigured #45

Abdivoitov-Shokhrukh opened this issue May 5, 2024 · 0 comments

Comments

@Abdivoitov-Shokhrukh
Copy link

Hello Dennis,
Could you explain me
1
2
the error that I am getting
This is content of urls.py file:
__from django.urls import path
from . import views

urlpatterns = [
path('',views.home, name = 'home'),
path('room/str:pk/',views.room, name = 'room')
]__
This is content of views.py file:
__
from django.shortcuts import render

Create your views here.

rooms = [
{'id':1, 'name':'Lets Learn python!'},
{'id':2, 'name':'Design with me'},
{'id':3, 'name':'Fronted developers'},
]

def home(request):
context = {'rooms':rooms}
return render(request, 'base/home.html',context)

def room(request, pk):
return render(request,'base/room.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