-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only one photo is kept in gallery after toggling "Is public" off and back on. #150
Comments
Hi, |
Hi. Sorry, should have done that first: Working in a Vagrant VM and a virtualenv local environment. Server is Apache 2.4. python —versionPython 3.4.3 pip show djangoMetadata-Version: 2.0 pip show django-cmsMetadata-Version: 2.0 pip show django-photologueMetadata-Version: 2.0 sudo pip3 show virtualenvName: virtualenv lsb_release -aDistributor ID: Ubuntu
|
Hi, |
Understood and thank you for looking into this. I will investigate further at my end to see whether I can find out which peculiarity in my own settings may be causing the problem, which I can still easily reproduce for the moment. I will let you know if I find out.
|
I have the same issue. If I select multiple images from gallery and view my site only one image is shown. |
Im having the same issue where if I select multiple photos to add to my gallery and hit save only the first selected photo gets added to that gallery. At first when I was setting up photologue I was following the steps in the documentation. I created my own folder called "photoGallery" and inside there it had a models.py file which looked like this In the end I wasnt able to figure out how to view the gallery on the front end of my website so I just ended up using all the default files from the photologue folder instead of the custom folder that I made. On my site i can view any galleries I make but each gallery only saves one picture. pip show django pip show django-photologue lsb_release -a |
Hi @Tedgar20 apologies for the slow response. What version of django-sortedm2m is installed on your system? |
@richardbarran thanks for responding back. How would I go about checking that? |
@Tedgar20 the command |
@richardbarran django-sortedm2m==1.4.0 |
Hi again - I thought that maybe the issue was caused by an old version of django-sortedm2m - but 1.4.0 is a recent release. So that's not the issue. |
Yeah maybe thats it. Thanks anyway for responding though I really appreciate it. |
I had the same problem but managed to sort it out. Make sure you run the following command after installing the library:
|
I've been having the same problem. Everything works locally, but I can only select one photo per gallery when in production.
|
I figured out what was causing the problem. The static js and css files belonging to sortedm2m were getting a 404 on the production website. When I checked on the localhost website, I found all those files being fetched normally (200 OK). To solve this I copied the js and css files belonging to sortedm2m into Running a If anyone faces the same issue, please try the above steps and confirm if the solution works for you. |
I can confirm @nihal111 solution. |
I'm glad that @nihal111 has found a workaround, and that @cubells has confirmed that it works. I'm uneasy with the suggestion to copy sortedm2m static files into Photologue - I think that the issue is with sortedm2m, and needs sorting there. |
@richardbarran Confirming that |
Yes, I can confirm @richardbarran |
Thanks both for the input. |
Hello. I have a Photologue gallery with 6 photos, initially correctly displayed. In the admin page "Change gallery", if I toggle "Is public" off, save the settings, and later toggle "Is public" back on, only one of the 6 photos is ticked in the Photos section. If I try to manually re-select the other 5 photos and save, it will have no effect, only one photo will be displayed in the gallery.
Is this a bug? Can someone reproduce it? Thanks.
The text was updated successfully, but these errors were encountered: