ERROR in ./resources/sass/style.scss (./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/src??postcss0!./node_modules/resolve-url-loader??ref--5-4!./node_modules/sass-loader/dist/cjs.js??ref--5-5!./resources/sass/style.scss)
Module not found: Error: Can't resolve './fonts/bootstrap/glyphicons-halflings-regular.woff' in 'e:\OpenServer\OpenServer\domains\test\resources\sass' @ ./resources/sass/style.scss (./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/src??postcss0!./node_modules/resolve-url-loader??ref--5-4!./node_modules/sass-loader/dist/cjs.js??ref--5-5!./resources/sass/style.scss) 16:6288-6350 @ ./resources/sass/style.scss
ERROR in ./resources/sass/style.scss (./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/src??postcss0!./node_modules/resolve-url-loader??ref--5-4!./node_modules/sass-loader/dist/cjs.js??ref--5-5!./resources/sass/style.scss)
Module not found: Error: Can't resolve './fonts/bootstrap/glyphicons-halflings-regular.woff2' in 'e:\OpenServer\OpenServer\domains\test\resources\sass'
@ ./resources/sass/style.scss (./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/src??postcss0!./node_modules/resolve-url-loader??ref--5-4!./node_modules/sass-loader/dist/cjs.js??ref--5-5!./resources/sass/style.scss) 16:6184-6247 @ ./resources/sass/style.scss
ERROR in ./resources/sass/style.scss (./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/src??postcss0!./node_modules/resolve-url-loader??ref--5-4!./node_modules/sass-loader/dist/cjs.js??ref--5-5!./resources/sass/style.scss)
Module not found: Error: Can't resolve './img/blog/Right-50.png' in 'e:\OpenServer\OpenServer\domains\test\resources\sass'
@ ./resources/sass/style.scss (./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/src??postcss0!./node_modules/resolve-url-loader??ref--5-4!./node_modules/sass-loader/dist/cjs.js??ref--5-5!./resources/sass/style.scss) 16:159950-159984
@ ./resources/sass/style.scss
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ development: `cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\gribo\AppData\Roaming\npm-cache\_logs\2020-10-17T18_32_33_789Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @ dev: `npm run development`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the @ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
{% for photo in photos %}
<div class="eLAPa">
<span onclick="openWin();"><img class="image" data-id="{{ photo.id }}" src="{{ photo.photo.url }}"></span>
</div>
{% endfor %}
function openWin() {
overflow.className = "overflow";
document.body.appendChild(overflow);
var height = modal.offsetHeight;
modal.style.marginTop = - height / 2 + "px";
modal.style.top = "50%";
let imageId = document.querySelector('.image').getAttribute('data-id');
console.log(imageId);
}
market = get_object_or_404(Market, slug=slug)
products = Product.objects.filter(fk_market__slug = slug)
add = market.slug
if request.method == 'POST':
add_product = AddProductForm(request.POST)
if add_product.is_valid():
obj = add_product.save(commit=False)
obj.fk_market = add
obj.save()
return redirect('/')
def list_profiles(request):
profiles = Profile.objects.all()
return render(request, 'account/list_profiles.html', {'profiles': profiles})
def profile_detail(request, pk):
profile = get_object_or_404(Profile, pk=pk)
return render(request, 'account/profile.html', {'profile': profile})