GOJO
Actually create that files in a virtualenv
cj
but if you read the documentation about static files, you'll find how to manage them
GOJO
And after that I run syntax python manage.py collectstatic..that time it shows error
Yazan
i need help with fcm-django didnt it seems its not working with me
Abolfazl
Hey guys I want to run queue with celery but queue running to many workers and disruption occurs do you have idea can i run a task in one worker or one queue
Doragonsureiyā
i need help with fcm-django didnt it seems its not working with me
If you need help, don't just say "not working", explain in detail what's not working the way you expect it to
Maksim
Good night, friends!
Maksim
Why authenticate() return None?
Kim
Are your screening criteria wrong?
~
i need to use a date field with django forms, how do i define it?
~
this is my code
~
fechafinal = forms.DateField( widget=forms.DateInput)
S
i need to use a date field with django forms, how do i define it?
class DateInput(forms.DateInput): input_type = 'date'
S
define the class initially in the forms.py as shown above
S
and then call DateInput as an when required
S
eg:fields = ['Fund_Type','From_Date','To_Date' ] widgets = { 'From_Date': DateInput(), 'To_Date': DateInput(), }
~
this is my code now.
~
https://linkode.org/#YYu0eY7aI3DAkAvtLJQwZ6
~
but is not running
Umut
I need help with django + vue. I'm having trouble with the integration
~
fetcha_final?
in my case i'm using fecha_final
S
in my case i'm using fecha_final
I mean the label is fetcha_final.while the variable is fetchafinal..does it matter?
~
I changed this because it didn't work for me, I thought it could be a character error
~
in my code is fechafinal.
S
What is the error
S
?
~
it don't show the field in the template html
mahdi
https://linkode.org/#YYu0eY7aI3DAkAvtLJQwZ6
widget=DateInput not widget=forms.DateInput
~
widget=DateInput not widget=forms.DateInput
I changed it now to see if it fixes it. thank you
Anonymous
Hello everyone.
Anonymous
I am developing Django project and I want your help in deploying in aws
Anonymous
If you have experience in that, please contact me.
Maxim
If you have experience in that, please contact me.
ask specific questions here OR at @pythonofftopic if you want to hire someone, read the rules before you post anything (read the rules before you post anything anyway)
Eli
Hi, please help. I wanna create a gauge in django and search in internet but I don't know how and where can I use those json,html,py code Please help😭😭😭
Oyindamola
Question When I turn debug= false, my code shows Error 500 , but when I turn debug=True , code works with python manage.py runserver without error. What's the cause please ? And how can it be resolved ?
Denis
how to tell celery that only one worker can be used for a certain task? (to avoid race condition ) so that the tasks are executed sequentially in the order they arrive
No
I'm facing login issue with db please help me
Doragonsureiyā
I'm facing login issue with db please help me
Not until you explain your difficulties.
No
Any one free to solve my code
Chocolate_girl
Any one free to solve my code
What's your error
Maxim
Any one free to solve my code
ask specific questions here, this is neither a job board nor a bulletin board
Ivan
I really need your help. I'm a beginner in django. I need to output a video to an html template by clicking on the link and I got it through DetailView. But I can't output all the videos in this template in a cycle concerning this course. Please help me.
Павел
Hello! I have a form with a MultipleChoiceField field. Is it possible to somehow add a text input field to this field, by which the options from the MultipleChoiceField will be filtered?
SR
How to register staticfiles
python manage.py collecstatic
SR
You can use a middleware called "whitenoise"
SR
You can use a middleware called "whitenoise"
1) pip install whitenoise 2) add it into the middleware in settings.py 3) add staticfiles_dirs and static_root in settings.py 4) run collectstatic command
Emma
Hello, how to I solve page not found even the path has been set in Django 4
Dave
Hello, how to I solve page not found even the path has been set in Django 4
Do you have a screenshot of the error and your urls.py?
Doragonsureiyā
Do you have a screenshot of the error and your urls.py?
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like: - https://dpaste.org - https://linkode.org - https://hastebin.com - https://bin.kv2.dev If you posted a wall of text, go back and delete it.
Maxim
Do you have a screenshot of the error and your urls.py?
don't give bad advice media is not allowed
Michael Vince
Hello, I'm new to Django and I don't why but I'm finding it a bit challenging Any know a better course or tutorial for me?
Doragonsureiyā
Hello, I'm new to Django and I don't why but I'm finding it a bit challenging Any know a better course or tutorial for me?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
On my store site, in the product features section, the user must add these features himself. Even new categories can be added to it. And the important thing is that each product has its own unique features. For example, a mobile phone has a feature of camera information, a dress has a feature of the material used, etc. It would be useless if I write these myself and make a separate class for each class. That's why I want my user to do this in a personalized way. It means adding more fields and attributes to the class by the user through his user panel. What is the solution?
omurzhanov
Hello everyone, I have a Post model and description field as a TextField. I’m trying to display post.description wrapped in <p> tags. And problem is blank lines being removed. What can I do ? Is there other elements than paragraph ? Thank you
Stealth
Hello. I'm trying to assign data to the model that is related by ManyToManyField, according to the data from the file. According to the data from the file, I made a dictionary, but when I specify this dictionary, when adding it, an exception appears about ValueError: Field 'id' expected a number but got 'AZ'. http://linkode.org/#oYQzaLdD9I1SbaKCSeS0B1
rtg
Question: example1 = 'EN', example2 = 'en' How can I convert the content of the variables to uppercase or lowercase letters so that it returns true? {% if example1 == example2 %}
rtg
Thanks!
S
{{ firstname|title }} for capitalizing
S
First letter
xdd
Hey, how i can make multiple pagination in django rest framework app?
xdd
I already fix it, i used wrong key in postman)
Doragonsureiyā
🚫 ‎Pintraj [737541378] is already banned.
Miguel
Hello How can I make food app?
Serhii
Hello. How I can filter posts by language? I use django-modeltranslation, and when I change language I see posts on two language. Try do this. def get_related_posts_by_tags(self): return Post.objects.select_related()
Christian
Hello Question about admin 'add model' page: how can I create custom button (e.g. "+") for dynamic adding fields? What I need - model of Task, Task has different number of questions and answers (fields). So user can add needed number of questions by pressing "+".
𝚁𝚞𝚜𝚕𝚊𝚗
How to use list of one function in other function in views.py
U need to use include() from django.conf.urls https://stackoverflow.com/questions/15885030/django-include-app-urls
Sergey
Hi I want to do custom serialisation on JSON Field if I want to have list e.g pass many=True to my custom serializer but it’s not working. Might be I need somehow change to_internal_value method. Any guess please.