Open HelloGit100 opened 5 years ago
Not sure answer atm, but looks you had similar problem as @agiledesign2.
@HelloGit100 Did you end up finding a solution, or unresolved?
Hello @agiledesign2 has posted a solution to his issue. Perhaps, this would solve your problem as well: https://github.com/pinax/pinax-likes/issues/57
I added this to the html header to solve issue for me <script src="{% static "js/jquery.min.js" %}" >
Django 2.2.1
The steps are as follows:
pip3 install pinax-likes
Added
'pinax.likes',
to the project's settings.py file, then added:Added
to the project's urls.py file,
Download the files in the
https://github.com/pinax/pinax-templates/tree/master/pinax/templates/templates/pinax/likes
,put these html files in
/home/www/venv/templates/pinax/likes/
,Added
to the post.html file,
python manage.py makemigrations app && python manage.py migrate && python manage.py runserver 0.0.0.0:8000
Open http://127.0.0.1:8000/post/13/, like icon appears, when clicked the icon(url: http://127.0.0.1:8000/like/14:13/), show the following:
HTTP ERROR 405
,The console displays the following information:
<script src="{% static 'eldarion-ajax.min.js' %}"></script>
in base.html,After clicked the icon, the console displays the following information:
What are the steps wrong? Thank you!