Questions tagged [django-oscar]

1

votes
0

answer
60

Views

when i am adding new product or modifying the record it is not showing the result set in search after building index in django oscar

As I used Solr for search backend, and once my product get index and now the second time when I add new products and change price after index created that product not being search in and sorting of price also not worked for new change ( i need to rebuild index then start the java server then will wo...
python test
1

votes
0

answer
191

Views

show price and rating in facet search

I want to show rating and price range in facet search however the rating is not displayed and price range is displayed but is disabled. What else should i have to do to show them in facet search? This is the source code of django-oscar. Here is the configuration FURNITURE_SEARCH_FACETS = { 'fields':...
Serenity
1

votes
0

answer
85

Views

Django cannot install Django-Oscar

I'm trying to install django-oscar, after spending couple hours, and upgraded my pip, and also setuptools, the error is still not going away, I can pip install other packages such as spirit, but just cannot install Oscar, following is the error message, Thanks a mill! Jim Using cached django-haysta...
xiaole kong
1

votes
0

answer
57

Views

Extending django-oscarapi API ROOT to custom API class

I have a django oscar application and I use django-oscarapi for my custom APIs. Some things are missing from the oscarapi like category and promotions but I have been able to use django-restframework to create the category API but the challenge I am facing now is how to add it to the API-ROOT. This...
King
1

votes
1

answer
151

Views

How to validate the billing address information in Django Oscar?

How do I collect the billing address information in my Django Oscar Payment details view? So far I have read the code of Django Oscar in github and in the method handle_place_order_submission() here:https://github.com/django-oscar/django-oscar/blob/05049733e5c6152e37f7b99d957fd67d825c78b8/src/oscar/...
Sammy J
1

votes
0

answer
89

Views

Error while setting up Apache Solr backend in Django oscar

I am trying to set up the Apache Solr backend for searching products in Django Oscar.So I have followed the documentation provided here:https://django-oscar.readthedocs.io/en/latest/howto/how_to_setup_solr.html. However after extracting the tar file and putting the required code in the settings.py f...
Sammy J
1

votes
0

answer
53

Views

Return object instead of URL in django-oscar API response

I am working on oscar based Ecom platform and in the orderList API, I want the object Instead of URL. I am new to Django and oscar. How can I do that? Please help me. class OrderList(generics.ListAPIView): serializer_class = OrderSerializer permission_classes = (IsOwner,) def get_queryset(self): qs...
Ramnivas dhaker
1

votes
0

answer
48

Views

Migrating for Django-Oscar-Accounts gives an error message

I followed the instructions given in the documentation for Django oscar accounts found here and installed Django Oscar accounts using pip install django-oscar-accounts, then I added oscar_accounts to my INSTALLED_APPS. then I ran the command ./manage.py migrate oscar_accounts, after this I get the e...
Sammy J
1

votes
1

answer
69

Views

Use Django Oscar Signals

I want to send an email to admin if an Order is placed (currently only user who have placed an order received the email). order_paced Oscar Signal can work for me here. For this I have already forked order app and inside this app order_placed function is created in signals.py. I have also imported s...
user5594493
1

votes
0

answer
35

Views

How to include foreign key field when serialising search query result from django haystack

After googling a lot, I cant seem to find a solution to this: I have created a new endpoint for searching items from my Product Index Using Django oscar with django oscar api, here are the models: class Product(AbstractProduct): title = models.TextField(blank = True) class ProductImage(AbstractProdu...
Darth
1

votes
2

answer
43

Views

django oscar - Dashboard/voucher

I'm not able to add voucher from the dashboard. The Datetimepicker field doesn't pick the date. In django-oscar==1.5.1, Django==1.10.8 Thank you
david johnson
1

votes
0

answer
34

Views

Django oscar Api is not setting status in OSCAR_ORDER_STATUS_PIPELINE

I am using django oscar API, and my question is on creating an order using the /checkout/ api method, the order is created but the status is not taken from my OSCAR_ORDER_STATUS_PIPELINE it just sets it to 'new'. In my settings.py file: OSCAR_INITIAL_ORDER_STATUS = 'Pending' OSCAR_INITIAL_LINE_STATU...
Sammy J
1

votes
0

answer
28

Views

Can do longer load packages django

Historically, I was able to easily install packages on my app, but after installing Heroku and whitenoise, soemthing broke. I tried to rebuild the app, virtualvenv from scratch, according to best conventions, but nothing fixes it. Now, any package I try to install I get this error. The packages suc...
J R
1

votes
0

answer
36

Views

How to fix dashboard fonts not loading in django-oscar

The dashboard Navbar fonts in Django-oscar dashboard is missing in the production environment. However, it works in local server localhost:8000. Both local and production static files are hosted on AWS S3 bucket. I have made the S3 bucket public and the CORS policy as follows:- * GET HEAD 3000 * set...
abi crazieeee
0

votes
0

answer
2

Views

How can I use django-haystack search facets with custom attributes?

I have a Django-oscar shop and I successfully installed Solr 4.7.2 as search engine. It works great with the predefined attributes, e.g. upc, title, product_class... But filtering for additional attributes did not work. Thats my catalogue/models.py: class Product(AbstractProduct): video_url = model...
pythan
1

votes
1

answer
4.4k

Views

IOError - decoder jpeg not available - even after libjpeg-dev n PIL installation

I get this error when I try to access products or catelogue I have installed libjpeg-dev and then pil. I'm running the django_oscar sandbox locally. what should I do ? Please also specify what additional info should I add ?? IOError at /catalogue/ decoder jpeg not available Request Method: GET R...
user2539745
1

votes
1

answer
1.4k

Views

Django Oscar “ProgrammingError at /admin/” MySQL table

Trying to make my second Django app: a shop based on Django Oscar. I'm following the tutorial on RTFD. I have an issue with this stage http://django-oscar.readthedocs.org/en/latest/internals/getting_started.html#creating-product-classes-and-fulfillment-partners. Every Oscar deployment needs at leas...
David Blake
1

votes
1

answer
1.7k

Views

set-up errors when create own shop with django-oscar

What caused error? I am a novice for django-oscar and django. Thanks for helping me in advance. Here is my settings.py #settings.py from oscar import get_core_apps from oscar import OSCAR_MAIN_TEMPLATE_DIR from oscar.defaults import * import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) l...
Kwanghwi Kim
1

votes
1

answer
43

Views

Cannot set “session expiry” in Django-oscar using application

I have a project in e-commerce platform and used the django-oscar for this application. While using django-oscar, i cannot set the 'session expiry value' for keep me logged in purpose. I have using oscars default authentication code. I have tried with the below code for 'keep me logged in'. def log...
Abin Abraham
1

votes
1

answer
910

Views

Filtering Objects in a View in Django - Oscar?

Trying to implement a simple ordering query on ProductCategoryView in Django-Oscar. It should be fairly simple to implement but it's taking too much time to understand. I'm having second thoughts to go forward with Oscar or not as it seems difficult to extend. The ProductCategoryView returns product...
Coderaemon
1

votes
1

answer
112

Views

django oscar core apps confilicts with my local apps

I have been working on a e commerce website. I am using django-oscar 1.1 for this. Here is my installed app looks like : INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles...
Kishan
1

votes
2

answer
207

Views

Newly added fields not showing in Profile Edit form in Django Oscar?

I want to extend the User model. I followed the steps mentioned in this doc. I made a new app extended_user whose models.py reads as : from django.db import models from oscar.apps.customer.abstract_models import AbstractUser from django.utils.translation import ugettext_lazy as _ class User(Abstract...
Coderaemon
1

votes
1

answer
121

Views

'NoneType' object has no attribute 'attributes' while creating a new catalogue product in django oscar

In views i am trying to create a new product based on product serializer which is based on django oscar product model.I always get this error 'NoneType' object has no attribute 'attributes'.Following below are my code Views.py from serializers import CategorySerializer, ProductSerializer, ProductCl...
anoopms1988
1

votes
1

answer
115

Views

Django-Oscar un-registering a class from admin panel

I would like to un-register a ModelAdmin class from the default oscar app. I created an admin.py file and did the following but was unable to obtain the desired result. from django.contrib import admin from oscar.apps.address.admin import * admin.site.unregister(UserAddressAdmin) admin.site.unregist...
Naman Sharma
1

votes
2

answer
738

Views

After upgrading Solr 4.10 to 6.3 the search stopped working

I got a task to upgrade Solr, hovewer never worked with Solr before. Currently I have the next stack: Django 1.9.12 + Oscar 1.3 + Solr 6.3.0 + Haystack 2.5.1 I have a generated schema by Haystack, put it in the managed-schema file and modified a bit according to StackOverflow's answers, because Solr...
TitanFighter
1

votes
1

answer
327

Views

Does Django Oscar provide features to connect your e-commerce website with other e-commerce websites?

I have not integrated Oscar in my Django project and I am planning to build an eCommerce web site using Oscar. But we will be having a requirement at later stage to add connector between our website and other eCommerce giants like Alibaba, Amazon, eBay. That means I need different website APIs to pu...
Harsimer
1

votes
2

answer
544

Views

Django oscar Failed lookup for key [basket] in <WSGIRequest GET >

I am new to django-oscar and this is the first time I tried launching a website with it. I am facing the following stack trace when trying to load a webpage (localhost:8000). I tried to search a lot on the internet but I couldn't find any solution. Environment: Request Method: GET Request URL: http:...
rrawat
1

votes
1

answer
169

Views

Can I use the existing oscar oscar-api object model to implement a single-item only basket?

I'm working on a modified checkout view that accepts a SINGLE product/price/quantity, customer info (name, address, email) and shipping charges. QUESTION: Can I use the existing django-oscar-api methods for this? In other words, I'd like to enforce a basket model that contains only a single produ...
Mohammed Shamma
1

votes
1

answer
153

Views

django oscar model customization : model change is not reflected while makemigrations

I am trying to customize Products and few other models in the catalogue app following the documentation. I have forked catalogue app (to myproject/boscar/catalogue) as per documentation documentation and my updated boscar/catalogue/models.py: from django.db import models from oscar.apps.catalogue.a...
Arun SS
1

votes
1

answer
534

Views

Pointing Django to Different Template Directory

I am currently building a Django ecommerce site that is based on Django-Oscar. By default the latter comes with a basic Bootstrap theme and styles. I moved these template files into project_root/templates/oscar It is my understanding that if I were to override these templates, it would override the...
MadPhysicist
1

votes
1

answer
285

Views

Translating 'Django-Oscar'

I want to learn how to build an opensource e-commerce site. For this purpose I'm using 'Django' framework with 'Oscar' extension. I read the whole tutorial here: https://django-oscar.readthedocs.io/en/releases-1.5/index.html, where there is a Translation tutorial. I followed it (must say that it has...
Carlos
1

votes
2

answer
182

Views

Django oscar sandbox editing or django oscar documentaion

Is it okay to edit the existing django-oscar sandbox project as my project or is it better to follow the django-oscar documentation?
chaze jake
1

votes
1

answer
64

Views

Django: Moving 'oscar' site-package

I am starting my own Django-Oscar project, and am wondering about the possibility of changing the location of the 'oscar'-directory (containing all apps, a models.py etc), moving it from the default on-installation site-packages directory within my virtual environment - into my project root director...
1

votes
1

answer
61

Views

How to only render Products with a certain title?

So I was finally able to render my products on the main page. But as I try to list the Products by their brand name (typed into 'title' when creating a product in the dashboard), I therefore want to only render certain products with a certain title name. My guess was to do it this way (lets say the...
Yasinautilus
1

votes
1

answer
93

Views

How to reorder Django-Graphene sub-query?

I am trying to reorder my ProductLandingPageImageNode according to a 'order' field on my ProductLandingpageImage Model. If this would be a direct query I could write a resolve method, but I cannot find out how this is possible on a sub-query. MAIN QUERY: class Query(graphene.ObjectType): class Meta:...
Espen Finnesand
1

votes
1

answer
136

Views

Customizing css file in django-oscar using less

I am fairly new to django oscar and only have basic understanding of website front end. I want to change the styles.css in django oscar. I have tried to change directly in styles.css but somehow when I refresh the localhost detects no changes (default css). I've tried to change the less file, instal...
Dion Dion
1

votes
1

answer
0

Views

Django app does not load images from AWS bucket's media folder

I'm using django-oscar,and wanted to serve my static files with AWS S3. To config my s3 bucket I've created a module called aws with conf.py and utils.py files. On my website when I upload an image to the product it gets uploaded well with the correct path to my aws s3 bucket, but then after very sh...
Abdelrahman Mamdouh
1

votes
1

answer
990

Views

Django oscar add a standard shipping method

Can anyone please explain how to a standard shipping charge by overriding the django oscar's shipping app? I have tried doing it using the recipe given in docs but it doesn't show any shipping methods available. This is what I have done: apps/shipping/admin.py: from oscar.apps.shipping.admin import...
toothie
1

votes
2

answer
607

Views

Get shipping address for a basket in django oscar

I am writing a view for oscar. I have the 'basket' object. How do I access the shipping_address for the basket?
toothie
1

votes
2

answer
374

Views

Model name conflict while Extending Django Oscar?

I'm trying to extend an Oscar app so I forked it. Now following this example line and line trying to add a field to the ProductImage Model class. from oscar.apps.catalogue.abstract_models import AbstractProductImage class ProductImage(AbstractProductImage): thumbnail = models.ImageField(upload_t...
Coderaemon

View additional questions