Diya
please help me
Diya
How I create a mail template - to collect feedback
Diya
On Django
mel23
Hey guys, why not django support math for decimal fields?
Mohammad
hello can you help me??? #get info from user user_id = request.POST["id"] phone_number = request.POST["number"] price = decimal.Decimal(request.POST["price"] ) user = User.objects.get(id=user_id) #step1 submit order order = Order.objects.create( user_id=user, phone_number=phone_number, price=price) order.save() error : IntegrityError at /sell/home/registerorder/ NOT NULL constraint failed: transaction_order.price_currency
Mohammad
Include null&blank = True....in your price-currency
i hasn't price-currency field in my project
Pedro
Hello
Pedro
Group
Pedro
HELLO ONE QUESTION? CAN I DO A TESTCASE TO AN ORM QUERY
GLuko
'Settings' object has no attribute 'ADMIN_LOGIN' https://sourceb.in/9v6UiZiS5O thats last I think I make 2 custom backend
GLuko
help someone
Kelvin
Has anyone used django-summernote?? I need help.
Fab 🌈 🐇🕸
any good replacement for django-select2 for autocompletes? Something that provides some kind of widget for forms
Fab 🌈 🐇🕸
Has anyone used django-summernote?? I need help.
I'm happy with tinymce, I'm sorry I can't help
Dipali
Can anyone tell me how to learn django from scratch ? I am new in django
Doragonsureiyā
Can anyone tell me how to learn django from scratch ? I am new in django
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Rajat
i hasn't price-currency field in my project
Remove price currency field from model.py
Ulug'bek | Python Developer
Hello guys. How to make 1 CRUD serializer from 2 or 3 models in Django RF? Those who know, please help me, if there is a source, please show me
Ulug'bek | Python Developer
cbv or fbv?
I am sorry, what is cbv and fbv ?
Alex
class or function based view
Ulug'bek | Python Developer
Alex
oh then you can do something like this https://gist.github.com/Vibhu-Agarwal/8f71bbef7072f1deea05c75abfb3c941
Harry gorilla
How can i share a photo of my django output in here?
Harry gorilla
How can i share a photo of my django output in here?
I was learning memcache in django and i successfully completed the learning. The problem is the output of my memcache in the admin site shows the bar graph as red and on the percentage part it does not show 100 percent. Is this how it should look like?
Doragonsureiyā
I was learning memcache in django and i successfully completed the learning. The problem is the output of my memcache in the admin site shows the bar graph as red and on the percentage part it does not show 100 percent. Is this how it should look like?
We know the rules are quite long, but read them, because on average, hundreds of users are banned from this network every week. Reading the rules will help in avoiding this pitiful fate.
AℤℐℤℬℰᏦ ☝️
from flask import flask app = Flask(__name__) @app.route('/'): def index(): return 'Hello!' if name == '__main__': app.run(debug=True)
AℤℐℤℬℰᏦ ☝️
File "application.py", line 5 @app.route('/'): ^ SyntaxError: invalid syntax
Doragonsureiyā
from flask import flask app = Flask(__name__) @app.route('/'): def index(): return 'Hello!' if name == '__main__': app.run(debug=True)
Your question is not related to Django. If it's a Python related question go to @Python group, otherwise please move to @PythonOfftopic group and ask there.
Mykhailo
Hi guys!) I lost my .env file which contains the secret key of the django project. Now I need to create a new project and move the code into it?) Or is there a simpler method? UPD. I just needed to generate a new secret key. This page helped me do it. #lost_secret_key
Abhishek
hi, i need help I've customised django admin form to make chained select functionality but problem is that when i save it I'm getting Enter a list of values, please help me
Не выходи из комнаты.
Hi. Why I get 0.0? qs = Supplier.objects.annotate( goods_with_sales=Count('goods', filter=Q(goods__history__sales__gt=0)), ).annotate( goods_sales_percent=(F('goods_with_sales') / Value(500)) * Value(100), )
Не выходи из комнаты.
Hi. Why I get 0.0? qs = Supplier.objects.annotate( goods_with_sales=Count('goods', filter=Q(goods__history__sales__gt=0)), ).annotate( goods_sales_percent=(F('goods_with_sales') / Value(500)) * Value(100), )
SELECT Count("wb_good"."id") filter (WHERE "wb_stockshistory"."sales" > 0) AS "goods_with_sales", ((count("wb_good"."id") filter (WHERE "wb_stockshistory"."sales" > 0) / 500) * 100) AS "goods_sales_percent" FROM "wb_supplier" left outer join "wb_good" ON ( "wb_supplier"."id" = "wb_good"."supplier_id") left outer join "wb_stockshistory" ON ( "wb_good"."id" = "wb_stockshistory"."good_id") GROUP BY "wb_supplier"."id"
Amnas
self.UserModel._default_manager.db_manager(database).get_by_natural_key( AttributeError: 'Manager' object has no attribute 'get_by_natural_key'
Amnas
I can't create superuser after email it show this
Amnas
any idea
Naveen
ImportError: cannot import name 'ssl' from 'urllib3.util.ssl_' (C:\Users\Admin\anaconda3\lib\site-packages\urllib3\util\ssl_.py) getting this error while eb init deploying django app through aws EB
Harry gorilla
I was learning memcache in django and i successfully completed the learning. The problem is the output of my memcache in the admin site shows the bar graph as red and on the percentage part it does not show 100 percent. Is this how it should look like?
https://www.oreilly.com/library/view/django-2-by/9781788472487/58cf3210-cd72-4083-b436-09ac3f7abb9e.xhtml This is the procedure i used though am in the latest version of django and also in the latest version of django-memcache-status. I also added : # use memcache admin index site admin.site.index_template = 'memcache_status/admin_index.html' to my admin.py file
Kelvin
yeah
When last did you use it? I've been trying to use it in my Django project but it's not showing.
Abdulrasheed
Hi guys Please I am looking for a soccer Live stream api that I can use in my django website or embed linkbut I have search everywhere on Google I can't find one Please help me out If you know one
Abdulrasheed
Kelvin
it requires little tweaking
Like what?? Tell me about it.
Alex
Alex
go through checklist if all things are configured properly, like form widget, migrations and installation etc.
Kelvin
go through checklist if all things are configured properly, like form widget, migrations and installation etc.
Yes they are. I've tried it in two different projects but it still didn't show
Navroz
Hi everybody🖐️ I have a problem. django.db.utils.OperationalError: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory How to fix this, in WINDOWS
Harry gorilla
error: subprocess-exited-with-error × python setup.py egg_info did not run successfully. │ exit code: 1 ╰─> [25 lines of output] Anyone understands this error while trying to install django dependencies?
Shivaay
Hey group members, I am relatively new to Django. Can anyone guide me how can I learn this framework
Anonymous
There are many django courses on youtube
Anonymous
Also you should practice
Doragonsureiyā
Hey group members, I am relatively new to Django. Can anyone guide me how can I learn this framework
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
ignatius
I'm trying to use Google cloud API like map for my project, I'm able to login but not able to access any feature of Google cloud. Any suggestion pls.
Happy days
How to get all code related to HTML and CSS in django
Happy days
How to connect and use mysql with django
Doragonsureiyā
How to connect and use mysql with django
These single steps will help you a lot: 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
Maryam
Hey everybody , I want user to be able to register to my website either by email (send them verification link) or by their phone number and otp , can anyone help me how to do so?
Harry gorilla
https://stackoverflow.com/questions/24319558/how-to-resolve-django-core-exceptions-improperlyconfigured-application-labels I was going through this django error and i find the second solution to be more easier for my problem. I wonder why it was not given many votes as compared to the first solution which seems to be more complicated