Pk
hey guys... Can anyone tell me how to achieve forloop break in django template ?
~:$
Django app is configured to connect with localhost database in settings.py but all queries goes to remote database..... ( localhost database is clone of remote database). Why is this happening?
Si
I added crispy forms to my form
Si
but it doesn't work as the tutorial : when I make some mistakes it doesn't show red box (as the video)
Si
eventhough I added load crispy forms and {{forms|crispy}}
Gk
I have created a form and in that form I have field phone number on submit I want to generate otp on that particular phone number I tried google but all I got is registration and login which I don’t want I just want to get form data move into table Can you give any reference, it will be great help Thanks in advance
Nikhil
Guys how to access camera through browser using opencv when hosted
Nikhil
I haved used opencv in localhost and its works fine but when hosted
Nikhil
I doesn't have any camera access
Dharmu
I am creating an e-commerce website Home , where I am want to show product carousel (catagory wise) where catagory name on the top of carousel. Plz tell me the logic for models and views In django/python
Mirco
Suggest some technique to debug the queries routing...
Just check your settings Everything is related to it
~:$
Just check your settings Everything is related to it
Everything seems perfect. Now i am trying something to debug that how this routing is happening. Settings.py pointing to local database but every change happen to local database is reflected in remote database as well.
~:$
Nope, never had something like this with correct settings configuration
Yes you are right but why the changes go to remote db. Db connection shows that the HOST is localhost.
~:$
If you do not share your settings is impossible to help u
{'ENGINE': 'django.db.backends.postgresql', 'NAME': 'defaultdb', 'USER': 'doadmin', 'PASSWORD': '1234567a', 'HOST': 'localhost', 'PORT': '5432', 'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'OPTIONS': {}, 'TIME_ZONE': None, 'TEST': {'CHARSET': None, 'COLLATION': None, 'NAME': None, 'MIRROR': None}}
Zerat
I have a fairly simple django blog, and I want to add "related blog posts" to the Detail view i have, how can I do it?
Zerat
By using tags
Tags is the only way? But can I do lets say 🤔 for related products in a djando e-commerce based on category and product name?
Gk
Have a look at django-otp
I want to send the data into the table on single view there is no registration and login but i want to just confirm that they data is filled by some person is validated using mobile number otp
Gk
Seriously?
Gk
Alternate for this ?
Mirco
It's impossible as far as i know
yup and I think has no a real sense The user experience can be so bad just run validations before saving into the db and it's enough
Alternate for this ?
You should authenticate your user
Gk
Ok
Gk
Other way to validate the form
Anonymous
Hi
Mirco
Hi
!hello
Doragonsureiyā
Hi
Please move your "Hello" and other social talk to @PythonOfftopic.
Gbenga
Goodday, please is there a resource for integrating coinmarketcap API with Django?
Anonymous
I am getting some problems in vs code
Anonymous
I want create app
Anonymous
So I used python manage.py startapp home
Anonymous
Command
Anonymous
But command is not run properly
Mihir
What is the error message ?
Anonymous
Python is not recognised as an internal or external command
Anonymous
So what should I do
Anonymous
Yes python 3
....
So what should I do
python3 manage.py... and so on I guess that is your issue
Anonymous
Just a min
Anonymous
How to change path or directory
Anonymous
C:\users\deep
Anonymous
Then?
Anonymous
Cd
Nikhil
1) this pc 2) right clck 3)advance settings 4) environment settings
Peppe
Hy, can i share my code here?
Nikhil
How to change path or directory
5) add path than copy paste pr python path
Peppe
I have a problem
Dharmu
So what should I do
Share your screen shot
Anonymous
Can not share screenshot on telegram
Anonymous
https://youtu.be/KFnE_0D_IxA Polls app Creation
Peppe
@login required Def wallet_new(request): wallets= Wallet.objects.all() If request.method == “Post”: form=WalletForm(request.Post) If form.is_valid(): new_wallet=form.save() new_wallet.profile=request.user new_wallet.save() For wallet in wallets: If new_wallet.profile == wallet.profile: new_wallet.delete() return to a page elif new_wallet != wallet.profile: New_wallet.save()
Peppe
But it’s no right
Anonymous
When use migrations nd migrate command
Peppe
?
Anonymous
When will use migrations nd migrate command
Peppe
When i write the model
Peppe
To migrate the model in the database
Anonymous
Have u created a project
Peppe
Yes
Anonymous
On django