zor
Impossible to know as we don't have any details also celery is best used for async task so you don't need to wait for the result
Using the example written in the Celery docs, I'm giving input that should have output, but I'm not getting output !!
zor
There are many examples in the celery docs, you'll need to be more specific
As a beginner in Celery I repeat everything they do in the tutorial but I don't get results, I don't know what the problem is!!
zor
Show the tutorial you are following and the error you get!
https://m.youtube.com/watch?v=hvNt2bRgllg&t=887s
Charly
https://m.youtube.com/watch?v=hvNt2bRgllg&t=887s
And you said you where using the docs!
Charly
https://m.youtube.com/watch?v=hvNt2bRgllg&t=887s
I don't undestand a single word
Charly
Did you read the documentation?
Charly
runt he script?
zor
What OS you on? If windows, celery is no longer supported
Yes, Windows, thank you for your help❤
Kene
Yes, Windows, thank you for your help❤
You can still get it to work though. Use it with gevent a
Hasan
hi I have some data in my table each data has date_time I want to delete the records which passed more than 2 minutes from storing date time how can I do that? MySQL django
Berkan
How can I add to cart without refreshing the page in my django project, now the add to cart process is working, but the whole page is suddenly refreshed.
Vasily
Hello, could you help me with jinja2, I have a dictionary like this: Context = { 'title' : 'Main page', 'apps': {'blog' : ['1', '2','3'], 'user' : ['4','5','6']}, } I'm trying to get: blog 1 2 3 user 4 5 6 But i Have: blog b l o g user u s e r So, the problem is no access to list, methods items(), iteritems() Don't work. My code is: {% for app in apps %} <p>{{ app }}</p> {% for item in app %}   <p>{{ item}}</p> {% endfor %} {% endfor %}
Vasily
why jinja2? also it should work with: {% for app in apps.blog %} <p>{{ app }}</p> {% endfor %}
Thx, I'll check it later. But i see a problem, if i don't know my app name, i need take element without it's name
cj
Thx, I'll check it later. But i see a problem, if i don't know my app name, i need take element without it's name
the something like: {% for key, value in apps.items %} <p>{{ value }}</p> {% endfor %} but that's DTL, I guess in jijna2 will be the same or something similar... why are you using jinja2 when you have DTL?
KD
how to create custom login authentication? samplecode send me
Doragonsureiyā
how to create custom login authentication? samplecode send me
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
Jamie
100000 data is in my database at the time rendering temple its taking so much of time
Jamie
What should I do
Nazim
add custom media storage
Jamie
Okay
Abdulrasheed
Good day my co django-developers I have a project going on for my client and he want a features where users will be able to upload a word documents file and he/she will be able to edit the documents in our app just like editing in msword and save it back to our database. How can i acheive that? I have try Many WYSIWYG but it is just only displaying the html format without the sytles included eg. Ckeditor,Tinymce. Thanks in advance 
Abdulrasheed
What kind of styles do you want that’s not included in those?
we want it to display the document with the default styles but it is just displaying the pure html of the docs
Anonymous
Is it available to use multiple languages with multiple domains? like this en.superproject.localhost de.superproject.localhost fr.superproject.localhost
Rohan
How do I function a download button in django to send an image file from a url
Jayanthi
https://linkode.org/#orNSRD2LjoEhL5qzBIGo64
Jayanthi
// pagination problem i cant use queryset there is no forign key relation ship i am getting the data but only for first page and it takes more time like 6 sec please modify the code
.
we want it to display the document with the default styles but it is just displaying the pure html of the docs
Not sure if I get you correctly, but have you tried using the safe filter? This should make the results display the styled content instead of pure html. Like this: {{ styled_text|safe }}
Farooq
Hi I am from Mumbai India I need help in django Actually I am working in hotel booking app where is all going good. But I want implement hotel location map for customer means when the customer book the hotel on booking page i want to hotel location map
Farooq
So how can I implement this
Farooq
DjangoMaps
Any doc of this
Vas
Any doc of this
GeoDjango. One minut
Vas
Any doc of this
https://docs.djangoproject.com/en/4.1/ref/contrib/gis/
Doragonsureiyā
Джафар
Does anyone have any lectures on django? Where are all the moves listed and could be used as a pocket guide?
Rutya
How create django firebase notification API
Vasily
Why? Seriously... Why? 🤔
Because I just started to LEARN. What should i do for using DTL instead of jinja2 for my case? https://docs.djangoproject.com/en/4.1/topics/templates/
Riad
Because I just started to LEARN. What should i do for using DTL instead of jinja2 for my case? https://docs.djangoproject.com/en/4.1/topics/templates/
Why you are giving so much stress in template rendering? Learn API first by core django/ DRF, today's web development are driven by api
Vasily
Why you are giving so much stress in template rendering? Learn API first by core django/ DRF, today's web development are driven by api
I want to do side bar where Will be my apps and models, for example app - blog, models : post, People and etc. So in my function I'm recieving data and transfer Context to Base.html. Do i Have another way to do this?
Vasily
Ya. Make separare frontend and call api from backend.
Sorry, its too hard for me right now.
Anonymous
Hello
Anonymous
how to get the number of comments for each post
Anonymous
class Post(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) content = models.TextField(blank=True) time_create =models.DateTimeField(auto_now_add=True) def __str__(self): return self.name def get_absolute_url(self): return reverse('pols:post', kwargs={'post_id': self.pk}) class Comment(models.Model): user = models.ForeignKey(User, on_delete=models.CASCADE) post = models.ForeignKey(Post, on_delete=models.CASCADE) content = models.TextField(blank=True) time_create = models.DateTimeField(auto_now_add=True)
Anonymous
def home(request): form = AddPostForm() posts = Post.objects.all() id = Post.objects.get() comments = Comment.objects.filter(post_id = id) summa = len(comments) if request.method == 'POST': form = AddPostForm(request.POST, initial = {'user':request.user}) if form.is_valid(): post = form.save(commit=False) post.user = request.user post.save() try: return redirect('pols:home') except: form.add_error(None, 'error') context = {'form': form, 'posts': posts, 'summa': summa} return render(request, 'home.html', context)
Anonymous
but it throws an error
Rohan
How can I delete a table from models in django?
.
Hello how we can override local apps
.
What ?
I have to modify saleor platform.. Saleor is django based framework.. So need to override default app
Mirco
I have to modify saleor platform.. Saleor is django based framework.. So need to override default app
I know what saleor is But to do what you wanna do, you have to fork it
Lena
Hi, why Django Rest Framework set_cookie not Working on browser?
Lena
It sends Cookie Definition in Response but does not save Cookie.
Mirco
Hi, why Django Rest Framework set_cookie not Working on browser?
if it's cross domain, cookie won't be saved
Lena
if it's cross domain, cookie won't be saved
Why? I use localhost but still not registered.
Mirco
Why? I use localhost but still not registered.
which frontend is listening ? on another port ?
Mirco
5173, React/Vite.
so different port = different origin for DJango = cookie not saved
Lena
so different port = different origin for DJango = cookie not saved
So do I need to define Cookie with React on the client?
Lena
And Access/Refresh Token.