Thank you for your reply, Tom.


Here it is running as intended: https://daniel496.agency/


Inside the TEMPLATES variable, the line for ‘DIRS’ now a list which now 
reads: [PROJECT_ROOT + '/bakerydemo/templates']

    'DIRS': [PROJECT_ROOT + '/bakerydemo/templates'],



M project root directory is /home/tranq/bakerydemo and the addition symbol 
binds the subsequent string together to create a new string as it is read 
by the interpreter: '/home/<user>/bakerydemo/bakerydemo/templates'

I also had to toy around a bit with group and ownership permissions.  Here 
are the winning commands I used in the end:

$ chmod 775 /home/tranq/bakerydemo
> $ chown :www-data /home/tranq/bakerydemo
> $ chmod 775 /home/tranq/bakerydemo/bakerydemodb
> $ chown :www-data /home/tranq/bakerydemo/bakerydemodb
> $ chown -R :www-data /home/tranq/bakerydemo/bakerydemo/media

 

I had this demo running perfectly weeks ago. I meant to report back here 
like this sooner. Sorry.  Better late than never?

Thanks again.

On Tuesday, March 20, 2018 at 2:49:59 PM UTC-4, Tom Evans wrote:
>
> It is not looking for "home_page.html", it is looking for 
> "base/home_page.html". On the error page it lists the locations it is 
> searching for the template, and explicitly says the directories that 
> are being searched. 
>
> You say the file is at 
> /home/<user>/bakerydemo/bakerydemo/templates/base/home_page.html 
>
> It says it is looking in /var/www/bakerydemo/templates/ 
>
> This means that your TEMPLATES['DIRS'] setting is wrong. 
>
> Looking at the configuration section of the error report shows that 
> you have put a relative path into TEMPLATE['DIRS']. Use 
> settings.PROJECT_ROOT to make that in to an absolute path, as the 
> example settings.py tells you to do. 
>
> Cheers 
>
> Tom 
>
> PS - there is very little point anonymising your username when you 
> share the full error report. 
>
> On Tue, Mar 20, 2018 at 4:14 PM, drone4four <drone...@gmail.com 
> <javascript:>> wrote: 
> > Thank you, Andreas.  I added the python-path to my Apache ssl.conf and 
> the 
> > Internal Server Error is gone now. It appears WSGI is serving my Django 
> > project perfectly. 
> > 
> > I adjusted ALLOWED_HOSTS just fine. But now Django is saying something 
> about 
> > "TemplateDoesNotExist at /" in base/home_page.html.  You can see the 
> full 
> > Django traceback here: https://daniel496.agency/ 
> > 
> > $ locate home_page.html 
> > 
> /home/<user>/.virtualenvs/wagtailbakerydemo/lib/python3.4/site-packages/wagtail/project_template/home/templates/home/home_page.html
>  
>
> > /home/<user>/bakerydemo/bakerydemo/templates/base/home_page.html 
> > 
> > The home_page.html file is present but apparently it is not being 
> referred 
> > to properly in my configuration.  Can anyone shed some light on what the 
> > issue could be now? 
> > 
> > Thanks. 
> > 
> > On Tuesday, March 20, 2018 at 5:45:27 AM UTC-4, Cictani wrote: 
> >> 
> >> You have to set the python-path too: 
> >> 
> >> WSGIDaemonProcess bakerydemo 
> >> python-home=/home/<user>/.virtualenvs/wagtailbakerydemo/ 
> >> python-path=/home/<user>/bakerydemo/ 
> >> 
> >> In the logs you see "No module named 'bakerydemo'" because you did not 
> add 
> >> the project directory to the python-path. Hope this works. 
> >> 
> >> Best regards 
> >> 
> >> Andreas 
> > 
> > -- 
> > 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...@googlegroups.com <javascript:>. 
> > To post to this group, send email to django...@googlegroups.com 
> <javascript:>. 
> > Visit this group at https://groups.google.com/group/django-users. 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/django-users/d90b8924-5458-4c0e-8f0f-2866af4dd156%40googlegroups.com.
>  
>
> > 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bafd5a65-c764-4d0e-a99e-908167bbad0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to