I am creating new product from admin in shopware but it's not appearing in frontend - admin

I am creating product from admin in shopware I have filled almost all required detail.
But I am getting in frontend Unfortunately, this product is no longer available.

Related

django admin like behaviour for app users

We have merchants with campaigns in our project. Currently, we - as superuser - manage all merchants' campaigns. However, some merchants require access to campaign management so that they can control the process and set new campaigns themselves.
There is a possibility to create the second admin site and set permissions so that only merchants can log in. However, what we need is - to filter only the campaigns owned by logged in merchant and also, when creating a new one the merchant_id should be prefilled and readonly.
Is it possible to do it using the second django admin site or should I create a special frontend interface for this purpose? Is it possible to set permissions per user-object pair (in django admin)?
Edit: I found django-guardian https://github.com/django-guardian/django-guardian/blob/devel/README.rst that should be able to do what I need.

Fetch users media using the new Instagram Graph API on WordPress

Soo.. with the new changes that Instagram and Facebook have brought upon us, it has made it more complicated to have a module displayed on our website to just show the images from a user's feed.
Long Story:
Below, are the things that I have already accomplished:
- Create a Facebook page and link Instagram account (Completed)
- Create an Facebook App (Completed)
- Create a Business Manager page (Working on verifications)
I want to be able to display a users profile images depending on the username that is set in a custom field type on WordPress Admin Panel.
Questions:
Since we own all of our corporate IG accounts, do I have to implement Instagram/Facebook login to display user's feed items?
Is there a way to bypass this?

Angular 5 + Django - How to handle user permissions

I have an Angular v5 application backed by Django REST Framework.
Previously the application was totally relying on Django templates.
Now, I'm using Angular and it is not clear to me how permissions are should be managed.
The application has different sections. Regarding the product section, the permissions can be summed up as follow:
Course grain permissions
Can the user see a product?
Can the user change a product?
Can the user delete a product?
Can the user create a product?
Fine grain permissions
Can the user see product SKU?
Can the user see product pricing?
...
Fine-grained permissions are very important because there're users that can see the product list where on Angular has been implemented as a table, but few users cannot see certain columns.
My question is how I can handle permissions on Django and Angular?
Permissions on Django
How to design fine-grained permissions on Django and change the serializers accordingly?
Permissions on Angular
My idea was, when the user logs in, Angular got from backend all user permissions and then Angular will change the view accordingly.
Anyway, I don't think this is a safe solution since permissions can easily manipulated by the user from JS console.
What's usually the best practice for this?

Django admin - limiting access to objects based on the user logged in

I'm working on creating a simple website for an exhibition. It's intended to use django with django CMS as much as possible - so Django admin site will be used.
Now I want to limit user's access to objects they can view/modify/delete.
There's going to be an Admin user, who can do all that admin can in django. But there are going to be Exhibitor types of users, who should be able to only see/modify their own objects (like - Page and Offer, they both would have an ID of the Exhibitor who's their owner).
Can this be done on the model level in django? Best would be to have some method that would take a logged-in-user instance and return the list of objects that this user can see.
There used to be a Row level permissions branch but it appears to have died off before gaining any traction or hope of being included into the trunk, so unfortunately that is out. That link does, however, give you a bit of a hint as to how they claim the admin app currently supports it via the ModelAdmin class.

Pinax Django Photologue - Moderation

I'm building a site for the local cub scouts using Pinax. Does anyone have any suggestions as to how we can moderate photos before they are uploaded?
If you mean you only want to display approved photos then django-gatekeeper is a good option. You simply register the Image model
gatekeeper.register(Image)
and it will add a generic relationship which includes various moderation fields. The main one being the moderation_status one which can be
Approved
Pending
Rejected
By default when a new Image is created it will be set to pending status and visible for approval in the moderation queue view that is included.
When you want to display the approved images, instead of simply Image.objects.all(), gatekeeper adds a few extra methods to access objects with the various statuses. So to access the approved, pending, and rejected objects you would use respectively.
Image.objects.all().approved()
Image.objects.all().pending()
Image.objects.all().rejected()
I haven't tested pinax out but I've dropped gatekeeper into my own sites without changing the apps it was being used in and without any problems.