Doragonsureiyā
Can anyone help
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain:
- what you're doing
- what you're expecting
- what you're using
- where you're running the script
- what Python version you're using
- what packages and their versions you're using
- and the most important thing: show the code YOU wrote (read rule 5️⃣ for that)
and more details, that way your chances to get help will increase
Harsh
Clg project
Need to use the payment gateway
Django 4.0
Vs code terminal
Python version3.9
Packages:-Pycryptodome
Enes
Hi I need a tutorial for Django Rest Framework except for the documentation. I already have and know documentation. The reason of asking for a tutorial is because I will see the DRF with examples
Anonymous
Hi. As I dig, each row of the database table is my model class's instance?
kiash
Genemator
kiash
Coding entrepreneurs
Also coding entrepreneurs are the best here is the link also
https://youtu.be/RGor6fssp6c
Cabrel Tchomte
Shazeb
Can someone help me. Why i'm not able to get this model data? this is my view
class AdvertisementListView(generic.ListView):
queryset = Advertisement.objects.all()
Shazeb
this data inside my template?
Shazeb
{% for advertisement in object_list %}
<div class="lg:w-1/4 md:w-1/2 p-4 w-full">
<a class="block relative h-48 rounded overflow-hidden">
<img alt="advertisment" class="object-cover object-center w-full h-full block border-solid border-2 border-yellow-500 rounded-2xl" src="https://dummyimage.com/420x260">
</a>
<div class="mt-4">
<h2 class=" text-gray-900 title-font text-lg font-extrabold">{{advertisement.company_name}}</h2>
<h3 class="text-gray-500 text-xs tracking-widest title-font mb-1">{{advertisement.description}}</h3>
</div>
</div>
{% endfor %}
pavan
list=[["a",1],["b",1],["c",4],["d",1]]
how to get duplicate list pair if values are repeated more than 1 time
required output:[["a",1],["b",1],["d",1]]
Doragonsureiyā
Clg project
Need to use the payment gateway
Django 4.0
Vs code terminal
Python version3.9
Packages:-Pycryptodome
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain:
- what you're doing
- what you're expecting
- what you're using
- where you're running the script
- what Python version you're using
- what packages and their versions you're using
- and the most important thing: show the code YOU wrote (read rule 5️⃣ for that)
and more details, that way your chances to get help will increase
Anonymous
Which package is suit for single page application Djoser or dj-rest-auth ?
Doragonsureiyā
list=[["a",1],["b",1],["c",4],["d",1]]
how to get duplicate list pair if values are repeated more than 1 time
required output:[["a",1],["b",1],["d",1]]
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.
GG
guys, I want to store large lists of unique words, appending a counter if it apears again on my logic, for large list of words stored with any relations and three columns as maximun, what is better? sql or nosql? pgsql or mongoDB
Doragonsureiyā
GG
mm yep but my model for authentication and API operations is based on django, models and pgsql
GG
is only for this specific logic my question about best storage system
Damir
GG
😱thanks!, so i'm keep with pgsql haha thanks for aclaration,
I intend to store less than that amount
Mika
Update the amount is +4 million
After that the time of query might be 5 seconds to response and it is slow
ali
what to do if django sees the css file but not the wiltt code and does not read it. Styles don't work I found out through devtools
cosmo
Damir
Sopan
Any Open Source CRM you suggest? Based on Django.
Sir
How to make a href profile?
Doragonsureiyā
How to make a href profile?
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
Sir
Didn't help
Sir
but...i spent 3 hours
Sir
And didn't find
Sir
Because, i have slug address
Sir
And i don't understand how to make link in another templates
The
Good day.. What's the best way to use celery in production.. I want all my .delay() to run as soon as possible.. I don't want the data to Queue.. They should run immediately irrespective of the numbers. . thanks.. I want it to work like an unawaited promise in JavaScript
Mirco
Sir
Mirco
But i use classes
And ? Everything you are saying has no sense and it's a clear mark of confusion
My strong suggestion is go back studying Django basics and then you will find everything much easier
Sir
ok
Sir
but i'll make it
Kirill
Good afternoon. I'm trying to make an annotation using ArrayAgg. Field ArrayField(enumerate()). postgresql db. He swears that he cannot add arrays of different lengths using arrayagg. How can the problem be solved?
Aneesh
I have created ssl certificate for mqtt paho connection. Connection established correctly on Linux but not on windows .
Getting this error on windows
WinError 10054 An existing connection was forcibly closed by the remote host
😒😒
I have a formset setup to allow users add items to the db.
When the first user logs in and adds item, it saves successfully but when another user logs in to fill the same form, the data of the previous user appear on the form for the current user, and when I save to the db, it takes the data from the previous user and assign it to the new user
This is my form.py
class addItemForm(forms.ModelForm):
class Meta:
model = Item
fields = ['itname', 'quantity']
This is the code to initialize the formset,
itemformset=modelformset_factory(Item, form=addItemForm, extra=0, fields=['itname', 'quantity'])
itemform = itemformset(request.POST or None)
Tony
guys
what is the best field model to store both number and char ?
like a car's plate
Д
Tony
Д
Tony
Shabbir
How can i pass a form in... {% include %}
Sayidbek
Hey guys, ckeditor is not working?
Mirco
k9
Sayidbek
Why?
I did following
pip install django-ckeditor
1,imported RTF
2, in the models
text = RichTextField(),
3, then migrations
But, in the end it's giving bunch of error lines in terminal
k9
Doragonsureiyā
Sayidbek
emran
Hello
I have problem in my website
I have a massage
In the STATICFILES -DIRS setting does not exist
Aaditya
Enes
Enes
STATIC_URL ='/static/'
STATICFILES_DIRS = [
os.path.join (BASE_DIR, "static"),
]
Enes
don't forget to import os before run the server
Enes
in Django 4 you need to specify staticfiles_dirs instead of static_root
Mirco
Enes
are you sure?
Mirco
Doragonsureiyā
cj
cj
STATICFILES_DIRS and STATIC_ROOT are two totally different things
Sir
Yes
WTF?!?! Are you sure, BOT?!
cj
WTF?!?! Are you sure, BOT?!
don't you know?
go read:
- https://docs.djangoproject.com/en/dev/ref/settings/#static-root
- https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-STATICFILES_DIRS
trust the bot
Enes
Yaquier
Yaquier
Use pathlib instead
Enes
okay dude I am gonna listen you