Alex
so how can i find a product with slug in this view ?
I'm assuming you do have Product model. Then Product.objects.get(slug = slug)
Alex
it's still show me that error
Did you saved the code in your editor? Did you wait till django dev server reload?
Doragonsureiyā
😐y bro im a junior not a idiot
I'm not your bro, bro; we weren't hatched from the same egg 🐍🥚
Alex
😐y bro im a junior not a idiot
Show me your current version of that view.
Mirco
!paste
Doragonsureiyā
To share code or error tracebacks please use an online pasting service, here is a list of suggested sites: - https://del.dog - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev
Dni
its working now
Dni
ty
Alex
ty
!yw
Doragonsureiyā
ty
You're welcome! 😊
OnlyGod
how do can I use a superuser to edit the profile of users created from a AbstractUser model using my templates not the django admin dashboard
Anonymous
Hello everyone
Anonymous
Can anyone tell me how to deploy django project in easiest way
B419045_Rashmi Ranjan Das
Pythonanywhere*
King Kite
I added a new model in my app but when I run makemigrations it says no changes detected. P.S : I'm running Django 3.1
King Kite
I did
Alex
I did
Is it in app/models.py? Does it inherit Model class?
King Kite
It does
King Kite
Yes it is
Alex
Yes it is
run python manage.py showmigrations and share the output via pastebin
King Kite
It working now. I changed the name at settings from 'core' to 'core.apps.CoreConfig' and ran makemigrations core
Aditya
https://docs.djangoproject.com/en/3.1/ref/applications/#django.apps.AppConfig
Aditya
Here, reference for getting better information
Anonymous
Hi, I'm trying to integrate Facebook login api with django rest framework. I have app id, secret key direct url. When I'm doing manually it's working ....but stuck how to integrate in drf. Any reference would be great...any article or doc
Anonymous
I have searched in Google but didn't get anything
Aditya
And read document carefully
EscanOr
IM TRYING TO INTEGRATE BRAINTREE PAYMENT GATWAY IM HAVING ERROR I ODNT FORM IT IS SHOWING AND WHY??
EscanOr
HERE IS THE CODE https://del.dog/facysopegu
EscanOr
PLEASE
Mirco
There's no need to write in uppercase
EscanOr
My keyboard was in caps lock sorry
Mirco
My keyboard was in caps lock sorry
Share the error you have inside your console
EscanOr
https://del.dog/ewinobiruk
EscanOr
it is showing python type error about string concatination im not able to get which contactionation is this talking about..
EscanOr
im follow Django 3 by example Book
EscanOr
following
Mirco
https://del.dog/ewinobiruk
The full traceback pls
EscanOr
https://del.dog/osafacohut
Mirco
https://del.dog/osafacohut
I don't know braintree but you need to set that merchant_id
Mirco
And it must be a string
EscanOr
i have set that im following their documnetation im not able to understand error why it is happening and where
EscanOr
can you suggegst other payment gateway that i can try
Mirco
can you suggegst other payment gateway that i can try
Try to understand it instead of changing payment gateway
Mirco
Okayyy
braintree.Configuration.configure( braintree_env, merchant_id=settings.BRAINTREE_MERCHANT_ID, public_key=settings.BRAINTREE_PUBLIC_KEY, private_key=settings.BRAINTREE_PRIVATE_KEY, )
Mirco
Did you congiure merchant id ?
Mirco
It looks like you didn't hence it's None and braintree generates the error when you call the sale() method
Eguakhide
Hello all, please how do i redirect, together with a context to a different view?
Anonymous
Guys which most matters now in certification azure or aws
AKASH
Anyone know how to use froala editor license key. I tried in settings.py but didn't work on server
Anonymous
Anyone pls help I stuck in django program
Doragonsureiyā
Guys which most matters now in certification azure or aws
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Aditya
I just moved from Django 2.2 to Django 3.1.3 , and one of my views is rendering html code on the browser, while it works fine on 2.2.. what could be the issue here ? I am using render function to load the template as the URL get accessed. Please help
Aditya
I also have tried changing the template to find if its an issue with html, but the result is same, So I assume that it might be something to do with the View handling itself.
Aditya
If you can answer this please do https://stackoverflow.com/q/64831558/11867816
Aditya
Hello all, please how do i redirect, together with a context to a different view?
You can pass the context in form of a dictionary if you want to utilise some parts of it. return redirect('/<your urlpath>/',{'key':value,'key1':value1}
Aditya
IM TRYING TO INTEGRATE BRAINTREE PAYMENT GATWAY IM HAVING ERROR I ODNT FORM IT IS SHOWING AND WHY??
It seems your brain tree configuration has some value that is taking in a None value is your can provide a snap of your settings.py where you setup braintreet config or check for yourself
Mirco
The traceback is clear
Antonnifo
Hey can anyone look at my question here any ideas are welcome https://stackoverflow.com/q/64832379/8900863?sem=2
Sachin
I want to update django filefield which is stored on S3. Please help me with this
Jack
I want to update django filefield which is stored on S3. Please help me with this
https://youtu.be/oAn7isP5Osg In this video they have shown how to store the static files in s3...in ur case the procedure is pretty similar.
Anonymous
I need to deploy pls help
Saiteja
How to create and map to admin AbstractUser in django
whoami
Hello there members I need a library that help me to build a sip server via python (Django...Flask)
Adilet
Hi everybody. How can I set a new path for FileField of model? Without uploading a file to memory.
Adilet
When I used this code: my_model.file.path = new_path, I got the next exception: AttributeError: can't set attribute