I have a django site with photologue installed, and I followed the official documentation to get it setup. Whenever I go to the admin site to create a gallery I can choose multiple pictures to put in that gallery but once I hit save only the first selected photo gets saved to the gallery. Does anyone know why this is happening. I'm using photologues default template to view my pictures on the front end.
I had the same problem. Looking at web debugger, when loading the gallery page, it says:
Loading failed for the with source http://xxxxxxxx.com/static/sortedm2m/widget.js Loading failed for the with source http://xxxxxx.com/static/sortedm2m/jquery-ui.js
I solved it by:
cd <static_dir>
cp -R .../python3.6/sortedm2m/static/sortedm2m .
Related
Deployed a blog on Heroku. I upload the picture to the record through the admin panel on Dropbox via django-storages. The picture appears in the Dropbox application, but I don’t understand how to load the link to it. How to embed Dropbox pictures? You can advise other ways. While the idea is only to manually link links to the database ...
I have a bizarre issue with one of my Sitecore sites. Most (but not all) of the images in the Media Library are not displaying in Page Editor/CM. When I view my site in Page Editor or go to mysite.prod-cm.com, the images just show the broken image icon. If I try to go to the image directly, such as mysite.prod-cm.com/~/media/Upload/exampleImage.ashx it returns an error page. However, if I go to the same path on CD, mysite.com/~/media/Upload/exampleImage.ashx, the image displays. In Sitecore, in the master database, I see all my images, I am able to preview them and download them and there appears to be nothing wrong with the files.
I checked the logs to see if there were any useful clues about why the image paths are returning an error, and I see the following message
"WARN Protected page accessed with no current user".
Is this a security setting in Sitecore? This only started happening recently, is there a way to unprotect the Media Library? Like I said, some images still show up, but any new images I add appear broken. The only other message in my logs is
"WARN Memory usage exceeded the MemoryMonitor threshold".
To add on, I can view the images by the path with their item ID, such as mysite.prod-cm.com/~/media/C98B4DAC5FBD416CABF0070D087AE5E2.ashx. That works, but the path with the item name does not.
I am trying to use autocomplete in admin page to auto select a field(OneToOneField) before saving, I am following the tutorial to add a field in admin.
I am not able to see the search box to type in my selections. I tried replicating the select2_one_to_one app from the test project: https://github.com/yourlabs/django-autocomplete-light/tree/master/test_project
I am see the same issue for this app as well. Attaching a screeshot of the issue
Screen shot of the select2_one_to_one app
After trying different things for couple of days. In Inspect I figured that the static files were not being loaded same as the demo project in the documentation (http://dal-yourlabs.rhcloud.com/admin/)
I had to update the STATIC_ROOT(Location used while running 'python manage.py collectstatic') folder and run the collectstatic command. The static files for autocomplete_light were copied to STATICFILES_DIRS. After this the autocomplete started working.
Documentation mentions we need to understand handling static files. So this is what they might have been referring to.
I would like to Optimize the Sitecore Images and I found a documentation but I struck out on the first line itself
Install the packages with the /sitecore/admin/UpdateInstallationWizard.aspx
I found the path but could not find UpdateInstallationWizard.aspx,may I know what should I do to get that aspx page
You should be able to navigate to this page just using the url http://localhost/sitecore/admin/updateinstallationwizard.aspx.
You should first see the login screen and after you login, you should see the wizard.
You can also see the blog post Easy Access to the Update Installation Wizard
The problem occurs when the site admin uploads images, this works all fine and dandy so it's on a permissions issue on the images directory. But once the image is uploaded, the thumbnail preview no longer works (was fine on the other server) nor does the direct link to the image ( /images/somerandom.jpg).
I have checked server side and the images does in fact exist in the images directory and the thumbnail for previewing is also being created.
I have checked a bunch of permissions and setting the entire directory to both chmod 664 and 666 none of which makes any difference. Ownership on the entire images directory and it's contents have been set to apache.apache too, to no avail.
Any suggestions or help would b greatly appreciated.