Omair
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?
Dosanz
Hey anyone doing Django on virtual environment ??
Sadra
Dosanz
I wanted to know how to install and login through heroku I am getting an error
Sadra
Opps.. Hi 🤪
Sadra
Dosanz
Heroku not recognized as an internal or external command (Windows)
Dosanz
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. :)
Sadra
Dosanz
You mean William Vincent ?
Sadra
Dosanz
Yeah I am using his book
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
Dosanz
Sadra
Dosanz
Sadra
Dosanz
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
Dosanz
Sadra
Thanks
Expecting a longer message.. 😂
Anyway, good luck.
Dosanz
Dosanz
Thanks again
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
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
Anonymous
Anonymous
Suggest
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
Mirco
Sai
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
ShiDhiN
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
Anonymous
jamal
Bunty chhatri wala..
Хикматилло
Хикматилло
Bunty chhatri wala..
Roman
Hi guys, is it possible to generate PDF template with javascript inside and charts ?
Amado