Mr. D @
hello, I am trying to pass a value from view to forms and filter queryset with that value. I tried several option all with different errors. for example I tried this: https://stackoverflow.com/questions/13539358/django-model-forms-filter-queryset I get: name 'current_user' is not defined . using django 3. what is the right way?
Gil
What do you mean by a full mesh model? If you talking about normalizing the database, your application will have slower reads, because of joins but faster writes/updates and the size of your database will be relatively small. Similarly with denormalizing database you will faster reads but slower writes because you will be updating redundant columns.
I find it hard to explain, but I thnink is not about NF How to deal wiith A ——— B —————— C model, when you whan to do querys from A filtering about C...... Default manager from django contemplates models from realted_twice? For this reason, I'm thinking about make a FK for A to C , and for B to C..... Or maybe I must wirte my manager from A, for this propuses...?
Dosanz
Hey anyone doing Django on virtual environment ??
Dosanz
I wanted to know how to install and login through heroku I am getting an error
Sadra
Opps.. Hi 🤪
Dosanz
Heroku not recognized as an internal or external command (Windows)
Sadra
How did you deploy?
Sadra
Was it successful?
Dosanz
Yes
Dosanz
I signed in from the non-virtual environment but in the virtual env this error is occurring
Dosanz
😂 sorry for my language
Sadra
Heroku not recognized as an internal or external command (Windows)
It probably comes from the running commands list. You've (maybe the project) tried to run a command starts with "Heroku" which is not a valid program and command. Otherwise, I suggest you to get a backup from your db and redeploy your django app.
Sadra
From another reference. Vincent's solution might work in this case. :)
Dosanz
You mean William Vincent ?
Dosanz
Yeah I am using his book
Sadra
Yeah I am using his book
So, I've already read his book and everything was ok!
Sadra
You better to review your steps. make sure you are taking every single step one by one with no conflict.
Dosanz
Were you using babun because an older version suggests to use it and the project has stopped now
Sadra
Dosanz
Nothing happened?
I am referring to the new version do you have ebook to William Vincent for Django 3.1? . I am using the free sample 😂 please send if possible
Sadra
I am referring to the new version do you have ebook to William Vincent for Django 3.1? . I am using the free sample 😂 please send if possible
I just read the 2.2 version. It's available for free. There are a million ways in order to deploy on Heroku. People talk about deploying on AWS, Azure, and GCP. :)) Never miss them.
Sadra
Thanks
Expecting a longer message.. 😂 Anyway, good luck.
Dosanz
Thanks again
Sadra
If you come to know why am I not getting heroku I n venv please let me know
these might help. (It looks coming from the PATH flags) https://stackoverflow.com/questions/42170691/heroku-not-recognized-as-an-internal-or-external-command-windows https://github.com/heroku/cli/issues/1255 https://github.com/heroku/cli/issues/600
Sadra
Јован
Hello guys, do anyone have any idea how to make a class based form view (CreateView) when I submit and then go back via the browser button (back) to clear the form so I can't resubmit the old data?
Јован
class ContactView(CreateView): """ FormView to display contact information and form. """ model = ContactModel template_name = 'contact.html' success_url = '/' fields = '__all__'
Алина
Hi guys!
Алина
Tell me this task. I have a database with 10,000 images, I need to quickly find among them the most similar to the transferred image. At the moment I have done this all through celery using chord, on windows. All this takes 5 minutes, I would like it faster ... and it seems for some reason tasks in celery are not executed in parallel in chord, but in turn To compare pictures I use imgcompare lib How to speed up your search? Are there any ready-made solutions for image search? It is imperative that there are similar slightly edited images Sorry my bad English!
Алина
Hi guys!
Алина
Tell me this task. I have a database with 10,000 images, I need to quickly find among them the most similar to the transferred image. At the moment I have done this all through celery using chord, on windows. All this takes 5 minutes, I would like it faster ... and it seems for some reason tasks in celery are not executed in parallel in chord, but in turn To compare pictures I use imgcompare lib How to speed up your search? Are there any ready-made solutions for image search? It is imperative that there are similar slightly edited images Sorry my bad English!
Алина
Hi guys! I muted now?
Sai
Hi guys... I am building a website similiar to stackoverflow in that i have upvote and downvote buttons. Using ajax and jQuery i provided the functionality but my point is how can i restrict one vote per one user. Please help me guys
VIJAY
Hi guys... I am building a website similiar to stackoverflow in that i have upvote and downvote buttons. Using ajax and jQuery i provided the functionality but my point is how can i restrict one vote per one user. Please help me guys
Using many to many fields And if else condition if the user in upvote he can't add in downvote if he push downvote and he in upvote he automatically remove from that upvote table
VIJAY
Create a variable upvote and give it's condition true or false that change on press unvote and downvote its make easy for u
Anonymous
Suggest
Украинский
Which books preferred for django please
I often read the 'Django 2x by Example' by Antonio Mele and Official Documentation
Tridip
How to implement voice and video calling in Django??
R.U.S.H.A.B.H
How to display null filefield on html with jijna format
R.U.S.H.A.B.H
I'm getting error like file not found
Anonymous
hi guys could you tell me a good book for learning Django from scratch
Doragonsureiyā
hi guys could you tell me a good book for learning Django from scratch
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Украинский
How to implement voice and video calling in Django??
hmm, good question! Why not to google 'WebRTC with python'
Tridip
hmm, good question! Why not to google 'WebRTC with python'
I tried, but hardly any good tutorial is there. Can you suggest me one, where video feature is also added??
Ismael
Hi all, I'm having troubles with REMOTE_USER with rest-framework on IIS. I activated the middleware and backed acording to the documentatio, but I get this error: authenticate() missing 1 required positional argument: 'remote_user' Did anyone how to manage it? thanks
Ismael
C:\...\venv\lib\site-packages\rest_framework\views.py in perform_authentication request.user … ▶️ Local vars C:\...\venv\lib\site-packages\rest_framework\request.py in user self._authenticate() … ▶️ Local vars C:\...\venv\lib\site-packages\rest_framework\request.py in _authenticate user_auth_tuple = authenticator.authenticate(self)
ShiDhiN
https://youtu.be/F5mRW0jo-U4
This would be helpful
Kumar
Is pinax helpful ? Any review ...has someone used ?? I have to add social media features in my website.
Star
Hey I'm new to django can anyone help me out The admin page is not loading any static files . And it's displayed with no css or layout at all. I have the following code in Settings.py STATIC_URL = '/static/' STATIC_DIR = os.path.join(BASE_DIR, 'static') And have run the command collect static which made a static/admin folder with all css inside my project
Хикматилло
Hi guys , I am new in python world, I just learned the syntax of python, and I am going to learn the backend side of django, because i am not intersted in front-end , please share your knowledge , what should i do ??
Хикматилло
maybe useful tutorials ?
Anonymous
Hello. I need work from django
Anonymous
I know html, python and django
Star
Go to googe Search * static files django * Open official docs site.. Follow the whole step. And boom..it will work like a magic.
Boom it didn't Ive been following the docs and I have been working with static files following different tutorials But my problem is that the admin page and only the admin page is not loading with any css or proper layout
Roman
Hi guys, is it possible to generate PDF template with javascript inside and charts ?