HI Steffen,

can you kindly guide me through the template customization process. 


base_dir - C:\django_oscar\bakeryshop
static root - "C:\django_oscar\bakeryshop\static"
staticfiles dir - "C:\django_oscar\bakeryshop\staticfiles"
static url - "/static/"

my settings file location. C:\django_oscar\bakeryshop\bakeryshop\settings.py

a snippet of my settings.py

ROOT_URLCONF = 'bakeryshop.urls'

# Path helper
location = lambda x: os.path.join(
    os.path.dirname(os.path.realpath(__file__)), x)

TEMPLATES = [
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        'DIRS': [os.path.join(BASE_DIR, 'templates')],
        'APP_DIRS': True,
]

To override the original oscar\base.html and display myicon.ico as my 
favicon I have the following
C:\django_oscar\bakeryshop\templates\oscar\base.html 

and 

C:\django_oscar\bakeryshop\static\oscar\my_icon.ico

however, my favicon (i.e my_icon.ico) does not show in my browser when i 
include the following in  
C:\django_oscar\bakeryshop\templates\oscar\base.html 

{% block favicon %}
        <link rel="shortcut icon" href="{% static './oscar/myicon.ico' %}" />
{% endblock %}

I will appreciate any and all the help i can get on this issue as I am at 
my wits end.


On Sunday, April 5, 2020 at 8:13:36 AM UTC+1 Steffen Mogensen wrote:

> Hi Samir,
>
> Amazing! That was apparently what I was missing. After moving the html 
> files into "templates/oscar/" it just worked like a charm.
> Thanks a bunch!
>

-- 
https://github.com/django-oscar/django-oscar
http://django-oscar.readthedocs.org/en/latest/
--- 
You received this message because you are subscribed to the Google Groups 
"django-oscar" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-oscar+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/django-oscar/b9e9f27b-53ae-4880-8055-9c951de41dcan%40googlegroups.com.

Reply via email to