I just had the same problem, and i realized that i had the templates file
in the wrong "mysite" folder. It is easy to confuse the two, so for whoever
has the same problem, just check where exactly you have put the
"template/admin" folders, because in the tutorial it says to put inside the
Sory for not answer before, but I think I could help.
First you need to know how django find the templates, so take a look
template loaders
https://docs.djangoproject.com/en/1.9/ref/templates/api/#django.template.loaders.filesystem.Loader
There are two default loaders (filesystem and app )
Aloha Andreas Ka,
have you been able to get this to work? I am currently going through the
version 1.9 and facing the same issue. Is the suggestion of Marc Moncrief
* a way to go? Did you go for your own solution and would you mind to
share?*Thanks a lot, woodz
On Sunday, November 16, 2014 at
Try this:
mysite# tree
.
├── db.sqlite3
├── manage.py
├── mysite
│ ├── __init__.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── polls
├── admin.py
├── __init__.py
├── migrations
│ ├── 0001_initial.py
│ └── __init__.py
├── models.py
├── tests.py
Hi,
To be clear, you should have this setting:
TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')]
and in your mysite/templates/admin/base_site.html you should have something
like:
{% block branding %}
Polls
Administration
{% endblock %}
Does that all look right?
Thanks,
Collin
On
Have you solved this problem, Andreas? I am having the same issue and have
done
everything that the tutorial described as well as everything that people on
this thread
have suggested.
On Sunday, November 16, 2014 at 12:15:59 PM UTC-6, Andreas Ka wrote:
>
> I am working through
>
I am using Debian 7 and Python 2.7, Django version 1.7
Reading the Tutorial on the exactly same page :
https://docs.djangoproject.com/en/1.7/intro/tutorial02/
The result is our admin template completely ignored.
--
You received this message because you are subscribed to the Google Groups
I've been going through the tutorial and had the same problem. The docs say
"Create a templates directory in your project directory. "
I don't know if this will apply to you, but I thought that meant to put it
in the poll directory. They mean to put it in the mysite directory. I made
that
On Tuesday, November 25, 2014 5:33:02 AM UTC-8, Collin Anderson wrote:
>
> Hi,
>
> Wow. Everything you've shown looks right.
>
> Here's something to try: replace base_site.html with a completely empty
> file. That should cause the admin page to be completely blank.
>
> If that works, could you
Hi,
Wow. Everything you've shown looks right.
Here's something to try: replace base_site.html with a completely empty
file. That should cause the admin page to be completely blank.
If that works, could you post a snippet of where you're changing the
template? Are you changing the and
Thanks for your help.
I really think there is something wrong with that part of the tutorial. A
small thing, but wrong.
> Check your settings file,
> are there two TEMPLATE_DIRS variables defined?
Nope.
This is where I placed it:
...
import os
BASE_DIR =
On Friday, November 21, 2014 10:59:19 AM UTC-8, Andreas Ka wrote:
>
> I don't know.
> How to test that?
>
>
>
> The things I have done were these:
>
> https://docs.djangoproject.com/en/1.7/intro/tutorial02/#customizing-your-project-s-templates
>
> mkdir templates
> mkdir templates/admin
> cp
>
I don't know.
How to test that?
The things I have done were these:
https://docs.djangoproject.com/en/1.7/intro/tutorial02/#customizing-your-project-s-templates
mkdir templates
mkdir templates/admin
cp
/usr/local/lib/python2.7/dist-packages/django/contrib/admin/templates/admin/base_site.html
Hi,
Do other templates work in that folder?
Collin
On Monday, November 17, 2014 4:12:27 PM UTC-5, Andreas Ka wrote:
>
>
> > Show your view code
> The tutorial did not create any view.py for the admin pages
>
>
>
> See
>
> Show your view code
The tutorial did not create any view.py for the admin pages
See
https://docs.djangoproject.com/en/1.7/intro/tutorial02/#customize-the-admin-look-and-feel
We copied from the Django source files these two into:
/mysite/templates/admin/base_site.html
and
Are you sure about correct path to your templates in views?
Show your view code
понедельник, 17 ноября 2014 г., 5:04:53 UTC+2 пользователь Andreas Ka
написал:
>
> thanks for your answer.
>
> yes, I just tried that. Same result.
> By now, I have understood much more about the templates.
> But
thanks for your answer.
yes, I just tried that. Same result.
By now, I have understood much more about the templates.
But still, for the admin pages
mysite/templates/admin/base_site.html
doesn't work yet.
I have actually found more errors in the tutorial:
Obviously you've restarted the server and refreshed the page in such a way to
ensure it's not a caching issue ?
--
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
I am working through https://docs.djangoproject.com/en/1.7/intro/tutorial02
so far all went fine - but now *templates changes just don't work.*
I think there must be a flaw in that tutorial, something missing,
or something different in django 1.7.1 ?
19 matches
Mail list logo