cj
What they do then?
it creates a boilerplate for you to work with on your project
Navya
And can you send me those files if possible I'm not able to attach files
cj
And can you send me those files if possible I'm not able to attach files
send you files??... do you know how Django works? Doragonsureiya sent you some links, so you can learn how to work with Django, why don't you take your time and read those tutorial? so you'll learn how to create projects with Django
cj
Sorry but I'm messed up with projects and files
then go and read the links Doragonsureiya sent to you, and you'll learn how to work with Django... take your time and read everything
Navya
Okay sir
Игорь
Good evening. How to prohibit changing a table field in the admin panel and so that it is not displayed?
cj
Good evening. How to prohibit changing a table field in the admin panel and so that it is not displayed?
just don't add that field in your ModelAdmin class ¯\_(ツ)_/¯
Игорь
it`s bad idea
Игорь
I found
Игорь
Thanks
Игорь
with help exclude
cj
with help exclude
that's the same thing I told you and you said "it's a bad idea" ... using fields = (...) to add the fields you want to be modified/showed or using exclude = (...) to don't show/modify them is the same ¯\_(ツ)_/¯
Игорь
Thanks and you. I just started to study django and did not immediately understand
Игорь
Sorry, but I have one more question. How can I display the data of a related table in the admin panel? There is a Tests and Questions table. Many-to-many relationship. When opening a test, I want to display the questions of this test
parandhamudu
Any once share me Django restfull api source code
Score
Is there any telegram channel those who post only python projects
Doragonsureiyā
What are you talking about?
Jay
Please can anyone tell me how to set a csrf token endpoint? I want it for basic auth
Jaloliddin
Please can anyone tell me how to set a csrf token endpoint? I want it for basic auth
Hi I used in form inside templates/add.html {% csrf_token %} <input type="submit" value="ADD">
Jay
I am using Vue frontend
Jay
Backend and frontend are separate
V
I have a modal form which is used to register a user.. but after submitting that form, another modal form pops which asks the user to enter the otp send to the user's mobile entered in the registration modal form.. purpose is to verify the user's mobile phone. since the project is in starting stage, i have set the otp to a number say 3456, so when user enters it the status mobile verification becomes verified.. inorder to update the status, i need users mobile number to filter the model since when clicking on submit button user gets created . How can i pass users mobile phone from registration form to next modal? Am using rest api to create the user
Игорь
good day. Please tell me how to make the next new question appear when pressed on the button? I got questions from the database in the query set
Anonymous
How to override variables in local_settings.py?
Anonymous
@black_tiger07
V
What js framework you are using?
Am using jquery to get values from front end and to post the values am using ajax
Юра
Hello, can u help me with this question? https://www.reddit.com/r/django/comments/m8kua1/multiple_upload_images_to_post/ Or maybe u know other way
Riswandi
I dont know the rules
Doragonsureiyā
🚫 ‎Imad [443194591] is already banned.
Shubham
How can we add new field in django user model?
Enigma
How can we add new field in django user model?
U sholud code your own model and change the setting auth to that one
Shubham
I did the same,like i wrote-'accounts.User'.........but it gives error-no table "auth_user"
Shubham
Accounts is name of my app
KENNEDY
How can we add new field in django user model?
Inherit the 'ABSTRACTBASEUSER' class in your Users model.
Doragonsureiyā
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
Maset
I want to use GitHub repo for storing the uploading files through django project and deploy it on heroku
Maset
I don't know how to set GitHub repo as media directory on heroku deployment
Maset
I heard of django-github-s3 but its not working on heroku but works on local
Anonymous
I don't know how to set GitHub repo as media directory on heroku deployment
You just have to create the git repo And add a procfile so heroku run a webserver for you It's realy easy I guess you can find the exact thing using google
Anonymous
Indeed it's possible but i think you have to write the feature yourself
Anonymous
You can use so many packages that do things with images it totally depends on you
Anonymous
https://opensource.com/article/19/3/python-image-manipulation-tools https://stackoverflow.com/questions/3800925/python-2d-image-generation/3800959 https://towardsdatascience.com/image-manipulation-tools-for-python-6eb0908ed61f And also you can search on google just like i did
Jai
Hello, I'm using Django and React for a web app. I want to update the frontend if the database has changed in real time, can someone suggest me a way to do this?
Anonymous
Np
Maset
Where r the uploaded files actually stored when a django project is deployed on heroku? And how to set that to the GitHub repo itself?
Maset
Where r the uploaded files actually stored when a django project is deployed on heroku? And how to set that to the GitHub repo itself?
Becuz everytime when I commit a change in GitHub the uploaded files r lost So I want to store them with the specified media directory in the repository itself
Enigma
Application error An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command heroku logs --tail anyone had the same problem while using heroku?
Maset
Check the steps carefully I think u have skipped some steps by mistake
Jai
You can use AJAX JQuery
Can you please elaborate a bit?
Enigma
It can be anything. Run the given command. That will tell you the actual issue
code=H14 desc="No web processes running" i guess
Maset
https://devcenter.heroku.com/articles/container-registry-and-runtime#getting-started
Shaxboz
who is know how to use django any project in server production mode
Enigma
Try this one
i will tnx❤️
Anonymous
Hi, when i am adding a user with UserSerializer in a post request and response of serializer.data, i am using depth = 1 so all relation fields are visible. But problem i am not able to add groups using list of ids.
Prashant
I wanted to create Blogging web application using Django. I have already taken courses on Udemy but they just teach basic level of Django. I need link to resources to build full Blogging app (production ready) ..I need to know design and modelling part of Django. Please help 🙏🙏
Charanjit Singh
Serializer.data shows no groups added
Yes you have to add group externally
Charanjit Singh
serializer = serializerclass(data=request.data) Serializer.is_valid(raise_exception=True) # if you are taking role parameter from url then First you have to get I'd of the role to retrieve you have to import Group model Serializer.validated_data[`groups'].append(Group.objects.get(name = role)) serializer.save()
Anonymous
Hi, can anyone send me the link of any tutorial of using django rest framework with flutter?
Mirco
Hi, can anyone send me the link of any tutorial of using django rest framework with flutter?
Nothing special, you have 2 different projects and with flutter u need to make API calls
Viktor | Combased
Hello, I am app developer, learning django and backend in general. Recently I run into database design dilmena and feel stuck. I posted the question in stackoverflow: https://stackoverflow.com/questions/66726368/how-should-i-structure-my-database-entities-with-invites-and-recipients-for-e-si Perhaps someone can help? For assitance I can definitely pay 50-100 dollars. I do have a job so I can pay for assistance :) Thanks guys!!!
Vishnu
guys can anyone help me in uploading csv files in Django REST framework, thanks in advance
Tapdiq
Hello everyone, how can I change this so that after login it redirects me to another html and not to the standard admin panel? "admin/login/?next=/admin/"
Tapdiq
in codes
Editing Name
Hello guys, I'm running my django through a docker-compose and I need to see the "print" or "loggers", how do I set this up in django?