You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 12, 2020. It is now read-only.
I am trying to figure out this same problem as well. I am customizing the urls to accept a primary key and I am currently using a custom model.
Interestingly enough in main.js, /upload/view/ is hard coded ... so this can be changed if need be.
I have tried locating where /upload/new/ is being called and with no success. It is clearly making the POST requests though? I am stuck too.
So unlike php server version used in the demo, the django version is using the action="" method ONLY. So make sure you pass in the correct url to the action method. By default the template I am using is set to action="." so what you can do is either:
action=".{{pk_value}}" or action="{% url 'to view name or whatever' %}"
changes to the URL should be updated in the .js file too. main.js file is used by the basic plus version. for the angular version there is the app.js file.
Note: also, some of the templates are using {% verbatim %} which is supported only from Django 1.5+. Angular version, if I remember right doesn't use it.
I am create a image gallery project using this app .
and my url :
I did not do any other changes but it upload url shows still 'http://localhost:8000/upload/angular/'
how can i dynamically assign 'album_pk' to the upload button. What other changes i have to do while doing this . Where the url is hard coded
i request someone support to do this. i was working django 1.3. So i am not good in the class level view and other stuff in the code base.
The text was updated successfully, but these errors were encountered: