This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* **** Pixel Facebook **** | |
app/design/frontend/<yourtheme>/default/template/page/html/head.phtml | |
Magento ver 1.9.1.0 | |
content_ids can contains ID or SKU, what's on your facebook catalog? | |
*/ | |
?> | |
<script> | |
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf.urls import handler404, handler500 | |
handler500 = website_views.server_error | |
handler404 = website_views.page_not_found | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSTALLED_APPS = [ | |
'django.contrib.admin', | |
... | |
'django.contrib.sitemaps', | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.conf import settings | |
from django.urls.base import is_valid_path | |
from django.http import HttpResponsePermanentRedirect | |
from django.middleware.locale import LocaleMiddleware | |
from django.utils.cache import patch_vary_headers | |
class RemoveDefaultLanguagePath(LocaleMiddleware): | |
def process_response(self, request, response): | |
language = get_language() | |
if (response.status_code == 404 and request.path_info.startswith('/'+settings.LANGUAGE_CODE+'/')): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"store": { | |
"books": [ | |
{ | |
"category": "reference", | |
"author": "Nigel Rees", | |
"title": "Sayings of the Century", | |
"price": 8.95 | |
}, | |
{ |