Re: New project in virtual env referencing another project's default/redirected path

2018-05-18 Thread Nitin Kumar
There is community version of pycharm. Please write the logs that will be helpful. On Fri, May 18, 2018 at 10:48 PM, wrote: > Hi James, > > Thanks for suggestion. I would buy that. > > Meanwhile, is there anyway, i could resolve this. > > Regards, > Ankit > > On

Re: New project in virtual env referencing another project's default/redirected path

2018-05-18 Thread ankitklinkedin
Hi James, Thanks for suggestion. I would buy that. Meanwhile, is there anyway, i could resolve this. Regards, Ankit On Friday, May 18, 2018 at 6:41:29 PM UTC+2, James Farris wrote: > > This is where an IDE like PyCharm comes in handy. It will tell you right > away that it doesn’t recognize

Re: New project in virtual env referencing another project's default/redirected path

2018-05-18 Thread James Farris
This is where an IDE like PyCharm comes in handy. It will tell you right away that it doesn’t recognize something and will suggest importing that package. It does a pretty good job with its suggestions. On Fri, May 18, 2018 at 9:35 AM Nitin Kumar wrote: > you have to

Re: New project in virtual env referencing another project's default/redirected path

2018-05-18 Thread ankitklinkedin
Hi Nitin, Thanks for response. I think, include has been imported already. Please check below. Kindly see if this not correct. (Picking these lines from earlier code). # Use include() to add URLS from the catalog application and authentication system from django.urls import include

Re: New project in virtual env referencing another project's default/redirected path

2018-05-18 Thread Nitin Kumar
you have to import include. from django.urls import path, include On Fri, May 18, 2018 at 9:45 PM, wrote: > Hi Nitin, > > Thanks for quick response. > > Please find the below code from locallibrary/urls.py > > Could you please let me know, where shall i add the url. >

Re: New project in virtual env referencing another project's default/redirected path

2018-05-18 Thread ankitklinkedin
Hi Nitin, Thanks for quick response. Please find the below code from locallibrary/urls.py Could you please let me know, where shall i add the url.

Re: New project in virtual env referencing another project's default/redirected path

2018-05-18 Thread Nitin Kumar
Hi Ankit, You must add the urls of catalog to the project urls, locallibrary.urls. On Fri, May 18, 2018 at 8:32 PM, wrote: > Hi Doug, > > I am new to Django and i also started with MDN Locallibrary project. > Everything went fine until Django admin site but I stuck at

Re: New project in virtual env referencing another project's default/redirected path

2018-05-18 Thread ankitklinkedin
Hi Doug, I am new to Django and i also started with MDN Locallibrary project. Everything went fine until Django admin site but I stuck at "Creating our home page " I have written the code in the suggested way only

Re: New project in virtual env referencing another project's default/redirected path

2018-01-21 Thread Doug Nintzel
Ok, makes sense. Thank you very much for the details Daniel. Doug On Sunday, January 21, 2018 at 1:02:33 PM UTC-7, Daniel Hepper wrote: > > Yes, kind of. There are two kinds of redirects, temporary and permanent > redirects. By default Django's redirect() method returns a temporary > redirect.

Re: New project in virtual env referencing another project's default/redirected path

2018-01-21 Thread Daniel Hepper
Yes, kind of. There are two kinds of redirects, temporary and permanent redirects. By default Django's redirect() method returns a temporary redirect. If you pass permanent=True, it returns a permanent redirect. So here is what happened in your case: 1. You run the MDN tutorial project and

Re: New project in virtual env referencing another project's default/redirected path

2018-01-21 Thread Doug Nintzel
That got it Daniel...thanks for the quick help. Was it " permanent=True" in particular that was the problem? Thanks again, Doug On Sunday, January 21, 2018 at 10:29:33 AM UTC-7, Daniel Hepper wrote: > > I realized that the Mozilla tutorial is a wiki, so I took the liberty to > remove the

Re: New project in virtual env referencing another project's default/redirected path

2018-01-21 Thread Daniel Hepper
I realized that the Mozilla tutorial is a wiki, so I took the liberty to remove the "permant=True" from the redirect. On Sun, Jan 21, 2018 at 6:23 PM, Daniel Hepper wrote: > It's not the new project referencing the old project, it is actually your > browser caching the

Re: New project in virtual env referencing another project's default/redirected path

2018-01-21 Thread Daniel Hepper
It's not the new project referencing the old project, it is actually your browser caching the redirect from http://127.0.0.1:8000/ to http://127.0.0.1:8000/catalog/. Because it is a permanent redirect, your browser won't access http://127.0.0.1:8000/, it will go http://127.0.0.1:8000/catalog/.

New project in virtual env referencing another project's default/redirected path

2018-01-21 Thread Doug Nintzel
Hello, I am new to Django and followed this Mozilla Django Tutorial which was very helpful, and created the 'locallibrary' project. As part of the exercise, it has you create a 'catalog' app and has you