Git Product home page Git Product logo

Comments (4)

ehmatthes avatar ehmatthes commented on September 4, 2024

Hi John,

We need form element to show up on the new_topic page, but that doesn't require a change to that page's template. The necessary change is here. When Django builds the form based on the Topic model, it should include an element for the public field.

If you're not seeing a checkbox for making the topic public after making that change, please let me know.

from pcc_3e.

JohnLocke avatar JohnLocke commented on September 4, 2024

Hi Eric,

Thank you so much, it works out perfectly.

Additionally, I would like to make a small suggestion: when using Platform.sh on a Windows system, the instructions in the book (as shown in the first image) can be a bit confusing. The inclusion of "(ll_env)" might make it seem like the command should be run in the virtual environment within the CMD, but when running Platform.sh on Windows under WSL, it looks more like the second image. This caused me some confusion and took a bit of time to figure out.
image1
image2

Thanks again for your help. I finally finished reading the book and completed all the code.

from pcc_3e.

ehmatthes avatar ehmatthes commented on September 4, 2024

I'm glad to hear you made it all the way through, it's a lot of material to cover. :)

Is that a Windows/WSL thing, or is that related to PyCharm? Did you make the virtual environment, or did PyCharm make one for you?

from pcc_3e.

JohnLocke avatar JohnLocke commented on September 4, 2024

Thank you for writing such a helpful book for Python beginners.

This is not related to PyCharm. I created and activated the virtual environment in CMD using the following commands:
python -m venv ll_env
ll_env\Scripts\activate

What I meant was that all the command lines before using Platform.sh were executed in CMD. After activating the virtual environment, CMD looked like what is shown in the picture, with "(ll_env)" at the beginning. However, when running Platform.sh on Windows, the command line needs to be executed in the WSL Ubuntu environment, where it does not display "(ll_env)".
1

from pcc_3e.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.