Firstly, i created virtual environment by python -m venv .venv .venv\Scripts\Activate.ps1 - activated the venv (.venv) $ python -m pip install django~=5.0.0 - installed django in it (.venv) $ python -m pip install black - installed black in it. (.venv) $ django-admin startproject django_project . - created a new django project (it created django_project along with manage.py) (.venv) $ python manage.py runserver - i ran development server(it created db.sqlite3 along with above files) (.venv) $ python manage.py startapp pages(after pages app created i navigated to django_project/settings.py under INSTALLED_APPS i added pages app) Inside pages i created views.py and urls.py(which i sent screenshots) after that (.venv) $ python manage.py runserver after running this , the server up and running but it does not show msg.
the above i followed and mentioned in the book too. Thank you. On Thu, Sep 19, 2024 at 11:47 AM RANGA BHARATH JINKA < bharathjink...@gmail.com> wrote: > Hi, > > What's your project folder? Did you create a new app inside the project? > You have registered your pages app URLs in the project. But you have to > create a new urls.py file inside the app and import view > > On Thu, Sep 19, 2024 at 9:00 PM Anudeep Gudimalla <agudimall...@gmail.com> > wrote: > >> Hi Bharath, >> >> Thanks for reaching out. >> >> I have created the urls.py and views.py under pages folder and navigated >> as book says. >> >> please find the attachments. >> >> On Thu, Sep 19, 2024 at 11:08 AM RANGA BHARATH JINKA < >> bharathjink...@gmail.com> wrote: >> >>> Hi, >>> >>> Did you create a view and link it to a URL like /home? Then, you have to >>> go to that URL to see the message. >>> >>> Thanks, >>> Bharath >>> >>> On Thu, Sep 19, 2024 at 8:31 PM Anudeep Gudimalla < >>> agudimall...@gmail.com> wrote: >>> >>>> Hi all >>>> >>>> Firstly, im learning Django by book "Django for beginners - WSVincent >>>> 5th edition" in chapter-2 i'm trying to up the server to display msg "Hello >>>> World!". The development server was up but it does not shows the msg. can >>>> anybody help me to do it. Please find the screenshot in attachment. >>>> >>>> Thank you. >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Django users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to django-users+unsubscr...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/django-users/a6d5026c-d037-4b03-9116-977736d050cfn%40googlegroups.com >>>> <https://groups.google.com/d/msgid/django-users/a6d5026c-d037-4b03-9116-977736d050cfn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> >>> >>> -- >>> Thanks and Regards >>> >>> J. Ranga Bharath >>> cell: 9110334114 >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Django users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to django-users+unsubscr...@googlegroups.com. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/django-users/CAK5m315nCDeMXByg0QHOb%2B2R7_Y0Sqoin9R%2BH1Mk0XSMOMqOig%40mail.gmail.com >>> <https://groups.google.com/d/msgid/django-users/CAK5m315nCDeMXByg0QHOb%2B2R7_Y0Sqoin9R%2BH1Mk0XSMOMqOig%40mail.gmail.com?utm_medium=email&utm_source=footer> >>> . >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/CADL3HBaww0uaAddRf4VymV1csp8fEVipHs%3D97_s3S6bYi-QgkQ%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CADL3HBaww0uaAddRf4VymV1csp8fEVipHs%3D97_s3S6bYi-QgkQ%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > > > -- > Thanks and Regards > > J. Ranga Bharath > cell: 9110334114 > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CAK5m316HNP5pkSdfiow7-Xkp54Ju14Pk9SRhc6FcPLAhVypKow%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAK5m316HNP5pkSdfiow7-Xkp54Ju14Pk9SRhc6FcPLAhVypKow%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CADL3HBbX9WfDQ45XY7biQTZ9QJso_BEgv0Ef7afppt8m2HUokg%40mail.gmail.com.