Clarification about Django-Oscar - django

I have already finished setting up my home, about and contact us page using bootstrap in one project. I wanted to use the django-oscar for the e-commerce configuration and use it in my products page.
Do I need to add another project or just create another app for django-oscar?
By the way I created another project and am currently stuck on how to connect it the first project I have made

You don't need to create another project for your product's page. You can easily install Oscar (which will install Django as a dependency). It supports a simple design built with Twitter's Bootstrap.
You can read this: Getting started with Oscar and How to customise templates for create home, about and contacts pages.
Hope I help!

Related

Execute management command from admin with arguments

My little podcast backend written in Django contains a ShowModel. I have also written a custom management command to update episodes for each show from an external API.
For ease of use I'd now like to put a button next to the list of shows in the Django admin to be able to update them from there. I know there's call_command() that also takes the argument but I'm getting a bit stuck in how to bring this into the admin area where the shows are already. Also, if possible I'd also pass the output to the web admin.
You can use this lib https://github.com/vint21h/django-mcadmin
Or try to read the code and pull some pieces to your project.
I was solving the same puzzle of running management commands from the admin interface, so here is what I found pip install -i https://test.pypi.org/simple/ django-run-command
This package helps you to run management commands from the admin dashboard

How to make Django-Oscar appear as a separate app in Django admin panel?

Good day y'all!
Here comes a basic Django question:
I was running a Django project with one app in it and installed Django-Oscar to cover my ecommerce needs. So, I pip installed it in my main project and set everything up the way they explain it on readthedocs. Now, the structure of my admin panel looks like this:
Main project
My app
Oscar Address
Oscar Analytics
Oscar ...
And I'd like it to be:
Main project
My app
Shop
Oscar Address
Oscar Analytics
Oscar ...
I already did django-admin startapp shop for that matter.
Apparently the question is so obvious that I can't find any tutorials for dummies to do this.
Can someone point me in the right direction? Maybe a generic tutorial about including apps in apps the right way is laying around somewhere?
Thank you in advance.
It isn't clear from your question what you're actually trying to achieve, but Oscar does not really 'play nice' with the Django admin, from the docs:
But please note that Oscar makes no attempts at having [admin] be a workable interface; admin integration exists to ease the life of developers.
However, if you're just looking to configure the basic oscar functionality there is the Oscar dashboard (at /dashboard) which is where the ecommerce functionality is configurable. That can also be customised with additional views.

Building user area and site admin - Django - CMS

I am a begginer with Django. I read a book and then I practiced building a real estate project which is working fine. Now I am going to create the admin area, for example, for the site editor to post articles, set posts as paid, edit layout texts ...
I used Django 1.9.10 to build the project. I have been reading and looks like I will need do use Django CSM. Do I have to start a new project or is it possible to change my Django project using django cms?
Thank you
Why not using the built-in Admin module for that part?
https://docs.djangoproject.com/en/1.10/intro/tutorial02/#explore-the-free-admin-functionality

Adding a blog to my Django website

I have created a website using Django 1.4.3. I'd now like to add a simple blog to it. I'm thinking a good way to do this would be to add a new blogging app to my existing Django project? Are there any simple Django blog apps that I could "drop in" to my existing project to achieve this?
Also, I have an existing blog on Posterous that I have exported (a set of folders and a wordpress_export_1.xml file.)
It would be great if I could somehow import this into my new Django based blog.
https://github.com/nathanborror/django-basic-apps
django-basic-apps (formerly django-basic-blog) has a blog app (and included apps to help said blog app) that might be what you're looking for.
Or you can try http://gettingstartedwithdjango.com/en/lessons/microblog-kitchen-sink/ . It is a free courses by Kenneth Love.

Integrate existing blog code into Django-CMS?

If I already have a blog app done with Django and I want to use it with my new Django CMS site, is it okay to simply drop it into my new Django CMS project as a decoupled app and match anything /blog/ to the blog app as apposed to a Django CMS plugin? I guess what I need to know is when is it best to write my Django app as a plugin vs an entire app?
Thx
JeffC
Yes, but you don't just drop it into the urls.py, instead you can write an AppHook to tie your blog's URL scheme to a particular page in your CMS.
Plugins on the other hand are useful if you want to inserts particular aspects of you app into other page's placeholders - for example to show your latest 3 posts on the frontpage.
You might also want to include your blog's paths in a breadcrumb or menu on your site - in that case you need to write a custom Menu too.
Finally, it might also be useful to make use of django cms's placeholders in you blog model. His would allow you to post a variety of content via plugins.