Aleksandr
May I know how to store mobile number in django models
You can use char field with some validation for example
Shax
hi guys
Shax
any one to help.. creating a function that will read a document from DB and count number of pages
Manindra
Hi I am a learning hobby. want to learn Django from scratch want a few live classes in starting. Can anyone help me on zoom.
shashikant
i am using dj-rest-auth in my project and added an another own app there with some other url.why is it asking me for token in other url ?
shashikant
i have a url "description" which i have not authenticated.but when i use this url ,it ask me for token
Naresh
Hi, how we will give user lever permission for particular function in view class
Ujjwal
Hi everyone . I am stuck in the following problem . My friend has made the project using react . He is telling me to make an django rest api which can integrate to frontend react . Anyone who has been in this situation before and can help with specific resources .. It would be really great
Ashish
For creating API you will need to learn Django and drf if you want to use drf.
Zey
{{a.amount|add:11.80}} is not adding 0.80
🏁 🏁 🏁
Django site does not see the csv file, which is in the same folder as the python file with open ("ru.csv", encoding = 'utf-8') as r_file: what to do* ?
👍
Hi
Mirco
Hi
!hello
Doragonsureiyā
Hi
Please move your "Hello" and other social talk to @PythonOfftopic.
👍
Is there anyone who have some experience with setting-up bitbucket pipelines for django ?
Doragonsureiyā
Is there anyone who have some experience with setting-up bitbucket pipelines for django ?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~90,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
🏁 🏁 🏁
what's the error ?
There are no errors. If you print the array separately through the console, then everything is fine. If you run django, it doesn't see anything.
🏁 🏁 🏁
Yup but what you do with that file inside the view ?
views.py? nothing. And what you need? This is a .csv file
Mirco
views.py? nothing. And what you need? This is a .csv file
Yes but you have to put the logic inside the view If you don't use views, what do you wanna see ?
🏁 🏁 🏁
Yes but you have to put the logic inside the view If you don't use views, what do you wanna see ?
FileNotFoundError: [Errno 2] No such file or directory: 'csv/ru.csv'
Mirco
FileNotFoundError: [Errno 2] No such file or directory: 'csv/ru.csv'
you have to use Pathlib or OS module to specify the correct path from the views.py file
cj
Tried a lot thers is something obviously but I can't customize with it like with forigenkey
take a look on factories and/or fixtures for pytest ¯\_(ツ)_/¯ they work with Django too
عــمــر
Hello , how can i add field data in form.data Before save it
Mirco
i am specifying this file in python script
Again you need to specify the path from where you are calling it
mr.vip
Hey I m beginner in Jango So how can I strt learn Jango in a proper way ..?
Anonymous
Anonymous
I want to make project in django I am new to django can anyone help me out.
Anonymous
I try many
Doragonsureiyā
I want to make project in django I am new to django can anyone help me out.
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
s@123
As a beginner in Django, I want to know can i use any function of node.js in django
s@123
No
can i use react
Anonymous
Can anyone share basic models to learn to do projects in django
ꪉꫝꪖꪹᦋꪖꪜ
Why bootstrap templates are not working as shown in the bootstrap?
ꪉꫝꪖꪹᦋꪖꪜ
Can anyone pls tell in my case is not working well
Владислав
How do I properly filter a child in a ListView that has another m2m in it? If I filter this way Post.objects.filter (attachment__subcategory__slug = self.kwargs ['sub_slug']) then the posts are the same depending on the children attached to them! And it is necessary that the posts come out one by one, without their copies! I would be very grateful for any hint and help!
Rutherford
Why bootstrap templates are not working as shown in the bootstrap?
Did you configure them properly? The files for the templates(js, img) should be placed in the static directory
Rutherford
can i use react
Yes. The Django backend will serve as an API to be called by your react app You will need Django rest framework for this
Rutherford
Hello , how can i add field data in form.data Before save it
Example. if form.is_valid(): x = form.save(commit=False) x.data = 'some_data' x.save() Don't mind indentation. It's difficult typing on a phone.
Anonymous
Is accepting terms of a website, is something only front-end or back-end too?
Rutherford
I got error that: invalid literal for int() with base 10: '4683 0283 6489 2037'
Remove the spaces from it. you can put it in a variable and replace the spaces with nothing. And then convert it to an integer Sample x = '4683 0283 6489 2037' x = int(x.replace(' ', '')) Hopefully this will work
Rutherford
Hey! i am using dropdown menu in navbar in base template in django, but dropdown menu is not working can anyone help me
The error is coming from your script tag. The source of your js file. You should set up static files and then place the JavaScript file and CSS file in there. #Sample {%load static%} <script src="{%static 'bootstrap.min.js'%}"></script>
luci._
Hi, do you think fastapi will beat django and flask? I personally find it difficult against django, but flask will go overboard. What significant improvements could django have to compete?
cj
it neither makes sense to compare it to Flask either
cj
Django is a full featured web framework Flask is a web micro framework FastAPI is a framework to build APIs
cj
there's no point in comparing them 3 at all
luci._
why not ? Im new in django
cj
why not ? Im new in django
read 2 messages above, they 3 are totally different tools for totally different purposes
luci._
and what do you think about the rest?
cj
it's like wanting to compare a chainsaw vs a hammer vs a screwdriver
luci._
rest_framework *
cj
and what do you think about the rest?
REST is an architecture style even nothing to compare with frameworks 🤷🏻‍♂
cj
rest_framework *
do you mean "Django-rest-framework"? that's a library to use with django to build REST APIs
luci._
Yes
cj
Yes
so?
cj
if you want to compare it to Flask or FastAPI, that's again, nonsense 🤷🏻‍♂
luci._
I mean django rest frame work
luci._
I understand thank you very much for the clarification
Nats
I want know, is there any conflict between django's ORM and NoSQL?
Nats
such as mongodb
Doragonsureiyā
I want know, is there any conflict between django's ORM and NoSQL?
https://daniel.feldroy.com/when-to-use-mongodb-with-django.html
Nats
!djangomogondb? one package?
Agent Q
!djangomogondb? one package?
Read this https://t.me/django/155951
Nats
ok, i'm reading
Nats
If You Must Use MongoDB, Use Flask Instead