I cannot use the spree user registration views anywhere. Am using spree 2.3.2 with the spree_fancy and spree_auth_devise gems. I would have thought that they would be in the spree_auth_devise gems but they aren't.
Any help would be greatly appreciated.
Figured it out using the views from the spree_auth_devise branch for spree 2.2. Copied them and placed them in my views directory. Everything working as it should.
Related
I'm new to Django and web-dev and was looking for a good tutorial explaining how to add a codemirror IDE to a django app but haven't been to successful can anyone lead me in the right direction or just throw up some basic code ie: models.py views.py settings.py etc of a basic python ide set up.
any help would be greatly appreciated thanks in advance.
I hope you are fine.
I want to customize my django admin panel by tailwind. I know how to use tailwind in the templates of my django apps but unfortunately I am not able to use tailwind in the admin template and I have also tried multiple ways to solve this such as putting cdn in the admin base.hml or installing django-tailwind but all of them hasn’t worked for me yet.
I will thank if anyone who has experience about this matter give me a piece of guidance.
The django-tailwind package is not for django admin customisation. The first step could be this package django-admin-tailwind from here, you can add some more code to the package to suit your needs, probably make a PR as well. Happy coding!
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.
I am using spree 2.1.3 and I can't manage to change the default logo. I have tried adding it in app/assets/images/admin/bg/spree_50.png but no luck.
I have tried the following : Unable to replace spree default logo in spree 2.1.3
this user had the same problem I am having, however the answer did not work. my first solution probably worked in spree 1.3, but it is not working with the current stable version and I can't find a solution anywhere. Spree's official documentation still uses the first thing i tried so I am assuming that they did not update this.
Anyone knows what i need to do here ?
thanks
The SO post you referenced says to add the config settings in config/application.rb, but I think it needs to be in config/initializers/spree.rb.
For example,
Spree.config do |config|
# Example:
# Uncomment to override the default site name.
# config.site_name = "Spree Demo Site"
config.admin_interface_logo = 'logo/some_other_logo.png'
config.logo = 'logo/this_logo.png'
end
In a fresh installation of Spree 2.1.3 with Rails 4, the above was enough for me to change the location for the logo in both the admin interface and for the rest of the store. Hope that helps!
I'm trying to integrate TinyMCE or CKEditor into Django, but I have no idea how to manage uploading pictures.
I've been searching and found some django apps, but they won't work with my Django version (1.1.1), buggy and not maintained.
Maybe I missed something? Can you please give me a step-by-step guide how to add WYSIWYG with uploading into django form?
Use TinyMCE or CKEditor with django-filebrowser.
Description from the official site:
The FileBrowser is an extension to the Django Admin-Interface in order to
browse directories on your server and upload/delete/edit/rename files.
include images/documents to your models/database using the FileBrowseField.
select images/documents for TinyMCE and CKEditor.
Try this:
https://pypi.python.org/pypi/Django-tinymce-filebrowser
Its allow to manage images and files from tinyMCE