Thank you all for your help and your interest.  I am not sure how best to
handle getting

Information that you all have requested.  Don’t want to clutter up the
thread more than

necessary, so I will send the information to all that have shown interest
as .pdf attachments in emails.





To Jorge Gimeno:  I checked the settings.py as you suggested to see if

'pages.apps.PagesConfig'  was correctly added and it appears OK



I also checked pages/urls.py and pages_project urls.py and they also appear
correct.



Alvaro Orozco suggested that I might not have the virtual environment
activated.  I think that was a possibility, so I did a “pipenv shell” and
then “runserver” and the traceback appears to have changed a little.  I
will email the new traceback to all who responded.



One thing that bothers me is that the author of the book refers to the
pages directory as if there is only one.  In fact, django created two. The
top level, (Is that referred to as the base?) has manage.py in it.  One of
the childs of this is another ‘page’ which is where I put urls.py.  At one
point I put urls.py

In both ‘page’ directories, figuring the one that the one in the wrong
place would be ignored.  This didn’t seem to make any difference.  Is it
possible that the book was written when there was only one “page” directory
and the code in the book won’t work with a second “page” sub-directory?



To Shankar Jha:  Yes, I did compare my code with the Github code posted by
the author and it matches perfectly, with one exception.  The exception is
where a second template is added later in the chapter.  That is beyond
where I encountered the error.



To Alvaro Orozco:  You are probably correct.  I may not have had the
virtual environment active.  I have run it again and the traceback seems to
have changed slightly. I will send you the new one by email.



To all:  I still have the problem and welcome your suggestions.

On Fri, Mar 6, 2020 at 5:06 AM Byiringiro Yves <byiringiroyves...@gmail.com>
wrote:

> Hello guys, I need your help!
> How can I give a staff user a permission to create a user account in
> django?
>
> On Fri, 6 Mar 2020 at 06:01 Shishir Jha <shishirjha...@gmail.com> wrote:
>
>> Can you show the code that you have written until page 55?
>>
>>
>> On Fri, 6 Mar 2020, 9:01 am Philip Means, <means....@gmail.com> wrote:
>>
>>> Thank you for your response.  The book is Django for Beginners, by
>>> William S. Vincent.  I will copy and send you the chapter I am having
>>> trouble with.  My directory structure, as created by Django, doesn't seem
>>> to be the same as his, so I will send you that as well.  The problem I am
>>> having
>>> is that after the changes to the files have been made, and I "runserver"
>>> (on page 55) I get a huge error dialog that seems to say that django can't
>>> find the app. I have deleted the project several times and re-entered it,
>>> so I think it is unlikely that it is a typing error.
>>>
>>>
>>> On Thu, Mar 5, 2020 at 8:27 PM Jorge Gimeno <jlgimen...@gmail.com>
>>> wrote:
>>>
>>>>
>>>> On Thu, Mar 5, 2020 at 6:04 PM Philip Means <means....@gmail.com>
>>>> wrote:
>>>>
>>>>> I am new to web development.  Wanted to help my daughter with a simple
>>>>> website (she does pet portraits) and learn something that interests me.  I
>>>>> watched some you tube tutorials, then bought a book.  First couple simple
>>>>> projects went OK.  Then I got to templates and I have not been able to get
>>>>> the example project to work.  Been banging my head against the wall for
>>>>> about a week.  Part of the problem is my directory structure does not look
>>>>> like the authors and so I am not sure I am putting things in the right
>>>>> place. When I go searching for another explanation of how to set it up, I
>>>>> find that nobody seems to do it the same way.  Also, I find the jargon
>>>>> confusing.  At this point I just want to display a simple html page.  If
>>>>> this is in the wrong place, maybe someone can direct me to a better one.
>>>>>
>>>>> --
>>>>> 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/fe83a557-759d-460d-96ec-2c7fd18117bb%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/django-users/fe83a557-759d-460d-96ec-2c7fd18117bb%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>
>>>> Django is a framework that supports a lot of features, and that means
>>>> there's a lot of moving parts.  However, similar to driving a car, you need
>>>> to know a few things to get things working, rather than knowing the
>>>> niceties of how everything works.
>>>>
>>>> To address your point about project structure, there's a lot of
>>>> opinions on this (most of them are subjective). I have a structure I use
>>>> and I'm comfortable with, but Django will support some variety in this.
>>>>
>>>> Without seeing what code you have and what happens that is not
>>>> expected, we don't know where we can help.  So, to help us understand, we
>>>> need to know a few things.
>>>>
>>>> 1.  What steps did you take to get here?
>>>>
>>>> 2..  What goes wrong?  If there's a traceback, copying and pasting it
>>>> is invaluable.
>>>>
>>>> 3.  We may ask to see code.  Again, copying and pasting that will help
>>>> us understand what is going on.
>>>>
>>>> You said that your project isn't working once you get to templates.  Is
>>>> there a book or tutorial you are following?  That might help us know where
>>>> to start.
>>>>
>>>> In addition to this list, there is a forum at forum.djangoproject.com
>>>> (I follow posts in there as well).  That might be another resource for you,
>>>> as sometimes the question you have has already been answered.
>>>>
>>>> -Jorge
>>>>
>>>> --
>>>> 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/CANfN%3DK9POCHxkn8-OoU2Yoy3rj%3D%3D9%3DPVOZo0E07fOrPbqcV87w%40mail.gmail.com
>>>> <https://groups.google.com/d/msgid/django-users/CANfN%3DK9POCHxkn8-OoU2Yoy3rj%3D%3D9%3DPVOZo0E07fOrPbqcV87w%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/CAM%3DzXYddr_TyXy43rhgtAAfJNJS%3D7D-EE6KngCcyYuhGQ9wXcw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/django-users/CAM%3DzXYddr_TyXy43rhgtAAfJNJS%3D7D-EE6KngCcyYuhGQ9wXcw%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/CA%2BC7wFQhMzBAWQH-f3N8uxcUYyPtPY8tLLn2Df0eL114DL9%3DQA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/django-users/CA%2BC7wFQhMzBAWQH-f3N8uxcUYyPtPY8tLLn2Df0eL114DL9%3DQA%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/CAGrwwCbPt961jBRYRFvSE%2BNVY%2Bu38Txy9Dhc9C29y5V2gYQ3qg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAGrwwCbPt961jBRYRFvSE%2BNVY%2Bu38Txy9Dhc9C29y5V2gYQ3qg%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/CAM%3DzXYemKsnKm1KcxKQ18%2BY-fBGS_fr2t2P6cLNkspZ6cu%3DNtw%40mail.gmail.com.

Reply via email to