Yuvraj
@pyflare
Mirco
@pyflare
stop tagging me, I read messages
Yuvraj
okay, sorry
Mirco
yeah, so.. when there is a post request to that particular url (view), there is a like added to the particular component of the post and the user gets redirected
nope, you should do it via AJAX or fetch API and block the redirection otherwise everytime the page will reload
Mirco
I know, but currently i am a beginner, will use it later
ok so you will have the page that reloads every time you like a post
Yuvraj
ok so you will have the page that reloads every time you like a post
Maybe, i will redirect the liker to the poster's profile
Devu
Hello plz help me to make this query
Devu
https://del.dog/lesexapana
Devu
perform query like select news_id from news_favourite where user_id= 1 (or it can be any user_id)
Anonymous
{% extends 'account/main.html' %} {%load static %} {% block content %} {% csrf_token %} {{ form }} <form action="" method="POST"> <input type="submit" name="Submit"> </form> {% endblock %}
Anonymous
Forbidden (CSRF token missing or incorrect.): /createorder/ [13/Oct/2020 17:05:28] "POST /createorder/ HTTP/1.1" 403 2513
Anonymous
help, please
Yuvraj
Forbidden (CSRF token missing or incorrect.): /createorder/ [13/Oct/2020 17:05:28] "POST /createorder/ HTTP/1.1" 403 2513
first of all, pls clarify that if you are doing {{ form }} then why are u using <form></form> after that ? <form method="POST"> {% csrf_token %} {{ form.as_p }} <button class="btn btn-info"> Post </button> </form>
Anonymous
News_favourite.objects.filter(user_id=1).value_list('news_id',flat=true)
Devu
News_favourite.objects.filter(user_id=1).value_list('news_id',flat=true)
'ManyToManyDescriptor' object has no attribute 'objects'
Anonymous
Is news_favourite ur model name
Anonymous
Or what
Tridip
Hello Guys, Need a help. Its really urgent . Can someone tell me how to render html forms in Rest api form?? No data and serializers is being passed into the form.,simply the form containing a input field. Please help me out guys.
Tridip
Can anyone help??
Anonymous
Can anyone help me with django rest auth?
Anonymous
I am using session auth
Anonymous
But the cookies are not getting saved in the browser
Anonymous
Its working well with postman
Mehdi
hey guys I'm just deploying my very first django project on apache2 with wsgi module, but i see this error in my log file: ModuleNotFoundError: No module named 'furniture_api' the furniture_api is my project name! how can i resolve this?
Akil
How to create multiple models with same fields
Akil
Do anyone have any idea about this
Mirco
How to create multiple models with same fields
create an abstract model as parent and inherit from it
Anonymous
How can I use a uuid or pk in class based views?
M
Just redirect to the same page
Any link example i have the same query 🙏
𝒮𝒽𝒶𝓏
Hello New to Django. My aim is to build an e commerce application Or Simply want to make an Instagram clone Any good starters?
Kaia
Hello New to Django. My aim is to build an e commerce application Or Simply want to make an Instagram clone Any good starters?
If you have a solid programming background it’s better to build ecommerce. But if u’r total newbie in programming it would be better start with simple blog
𝒮𝒽𝒶𝓏
Reframing my question!!! Can anyone let me know resources to learn Django to the fullest Starting from basic to advanced Eventually building up a blog
Doragonsureiyā
Reframing my question!!! Can anyone let me know resources to learn Django to the fullest Starting from basic to advanced Eventually building up a blog
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Crack
Anyone know about best book for chat application using channels
Suraj Rajput
Please give an idea about integration of running Django website with react. I have tried most of things but not able to do that
Bhaskar
I am building an online python interpreter(similar to the ones in hackerrank or hackerearth), but I am stuck. I want to take user input, and pass it to the API, which will return the output, then show it to the user. Individually, I can do it all, but I'm stuck combining them together. If anyone can guide me, it will be much appreciated. I'm a beginner, so forgive me for my silly questions
Anonymous
No
Take a look at it. Also.. maybe you can write the code you receive into a file and use popen to run it as subprocess and redirect its STDOUT, STDERR and return them
Bunty chhatri wala..
Suraj Rajput
ok thanks i will see
Mahdi
Hello friends I want to work on those who pay for the file Only they can download that file I know this can be fixed with mixins, but I want a sample code Can anyone help me ???
Bhaskar
you should read what a subprocess is.
i think that would be overkill for what I want to do
Bhaskar
I am already using a api for interpreting the code the user want to run, so using subprocess is not necessary
Mahdi
Restrict file downloads to each user's members
Ricky
Guys I am very stressed up at one thing , my "CSS" background image is not rendering in the websitw
Ricky
Please help me I have spent nearly 4 hours to solve that
Ricky
Yuvraj
Yes brother
Share code
Ricky
3.1
@l3j@ndr0
3.1
Did you set te folder static in the root of your project??
@l3j@ndr0
The folder inside must be called css
Chandu
Hi guys I'm new django ...Can any one explain daily activities please
HA
Can someone list some open source organizations using django
Doragonsureiyā
Can someone list some open source organizations using django
Step 1: Open a browser Step 2: Write down https://google.com or https://duck.com and press Enter Step 3: In the search box, write down the same words you asked here Step 4: Read the first results
TM
I am getting no changes detected while making migration. Please help
Mikhail
Hello. I have a problem with 404 page. When I visit not exists url I get 500 error, not 404. And I have no stacktrace in console
Mikhail
I just got this message in logs: Oct 13 21:47:38 host1 gunicorn[13448]: WARNING 2020-10-13 22:47:38,702 log 13451 140361625473152 Bad Request: /not_found3