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

chat/layout.html referenced in tutorial is missing #174

Open
johnthagen opened this issue Apr 8, 2023 · 7 comments
Open

chat/layout.html referenced in tutorial is missing #174

johnthagen opened this issue Apr 8, 2023 · 7 comments

Comments

@johnthagen
Copy link
Contributor

johnthagen commented Apr 8, 2023

I have been trying to complete the Tutorial, but ran into an issue in Part 2.

The templates reference:

{% extends "chat/layout.html" %}

But I see no reference to where chat/layout.html is created? Was this file missing? Was this referencing something made in an older version of the Channels Tutorial? I even went back to the Channels v3 Tutorial and couldn't find a reference to it.

The DCRF Tutorial says that this should be the project structure:

mysite/
    manage.py
    mysite/
        __init__.py
        asgi.py
        settings.py
        urls.py
        wsgi.py
    chat/
        __init__.py
        consumers.py
        models.py
        serializers.py
        routing.py
        templates/
            chat/
                index.html
                room.html
        tests.py
        urls.py
        views.py
@johnthagen johnthagen changed the title chat/layout.html referenced in tutorial by is missing chat/layout.html referenced in tutorial is missing Apr 8, 2023
@johnthagen
Copy link
Contributor Author

Running to current tutorial and navigating to http://localhost:8000/chat/ causes error:

TemplateDoesNotExist at /chat/
chat/layout.html

@hishnash
Copy link
Member

hishnash commented Apr 8, 2023

Good find, I think this was intended to point back to the older changes tutorial but yep seems to not be there.

@johnthagen
Copy link
Contributor Author

@hishnash What I found odd was I went back and used ReadTheDocs to look at older versions of the channels docs (even back to 2.0) but couldn't find a reference to it.

I do think having a complete tutorial would be a great help to new users of this library.

@johnthagen
Copy link
Contributor Author

@hishnash I'd be happy to beta test/edit a finished/updated tutorial if you find time to fill in the gaps of missing files.

@rossmeredith
Copy link

Is this going to be fixed?

@cyx2000
Copy link

cyx2000 commented Mar 15, 2024

imageThere's a bug here, no f, not a f-string

@johnthagen
Copy link
Contributor Author

@cyx2000 Nice find. I opened a PR to fix this

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

4 participants