Ario
Needs some linux knowledge
Ario
By the way , good question i had this problem too
Neo
Please don't debate this.
ابو السباع
after build i add new package in requirements.txt
I do this too when in run python programs/apps/scripts in a docker container
Rohan
after build i add new package in requirements.txt
See examples of django projects who run on docker, they place requirements.txt on top steps
Rohan
So it only rebuilds that layer when a change in requirements.txt happens
Faraaz
when i refresh my page in django form the fields are filled automatically the with the previous data i gave how to change this
Emmanuel
But I think there is an attribute called, autofill or so
Emmanuel
U can simply turn it off and to stop that from happening
Emmanuel
autocomplete="off"
Emmanuel
Check this out https://www.google.com/url?sa=t&source=web&rct=j&url=https://gist.github.com/niksumeiko/360164708c3b326bd1c8&ved=2ahUKEwj987_k6KP4AhUU_IUKHTWZBnsQFnoECBYQBQ&usg=AOvVaw0KKqnToq_h7zYodCP4aKkz
Emmanuel
Thanks mate
You're Welcome Chief
Sayan
I'm getting permission denied
Sayan
Whenever I use Python3 manage.py startapp appname
Sayan
In ubuntu 22
Emmanuel
Are using a virtual environment??
Emmanuel
i did it but it didnt work
Then it's from your browser
Faraaz
also i add it to the django forms
Faraaz
still didnt work
Emmanuel
Browsers like chrome are fond of that, I don't have any ideas on how to stop it at this point in time
Magjan
Hello guys! Is that ok to deploy django project in VPS by nohup command?
Joseph
Whenever I use Python3 manage.py startapp appname
Check where you have created your project,,, use the public folders like documents pictures videos to create your project
Ibrohim
Hi. Is there a custom file field that can support multiple files. for example if i say instance.file_field.urls it should return list of urls or something like that
shashikant
I have this requirements: 1. Store student data, school data and books data a. Create table(s) to store this information 2. Create a URL from which we can get student detailed info (Student Full Name, Student Email, Gender, School Name, School Phone, Books read by that student, Total number of book pages read by the student), provided student ID.
shashikant
how should be do model relation between student,school,book model so that we can do crud operation to all three models using single api
S
hi guys I have a question if I assign request.session to a variable and then make changes to the variable does the request.session get updated ? if yes how
Anonymous
I got an error in ubuntu while run requirements.text
Anonymous
Anonymous
× Building wheel for twisted_iocpsupport (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [13 lines of output]
shashikant
for what
For some assignment.
Shubham
{% for emp in allemp %} {% if emp.id == i.assignemp %} selected {% endif %}{% endfor%} is not working please help me
Shubham
Anyone please help me
Shazam_
How to save logs generated in django into a separate file. If can send link, please do share
Poppu
https://github.com/django-cms/django-filer/issues/1296
Poppu
https://ibb.co/ykRdpR3 also why this show error
Emmanuel
it does i checkd it
Does it change request.session to the new value of the variable ?
Rutherford
I’m getting hit with no module named cloudinaryaccounts although I’ve installed cloudinary. Please help
Gerald
Hello everyone
Gerald
I inquiring if it is recommended to deploy an e-commerce Django app on Amazon elastic beanstalk.
Sanchit
Hii everyone !!!!! Can anyone help me out I made a website in Django which has two types of users - student, teacher Now when I want to show the name of login user in nav bar ....it is showing that name which has login in admin panel of Django Not the user which I have login in login page (teacher or student) It should show the name of that user to which I have login in login page (either teacher or student) Please help me out...
Tuấn
please, help me:
Tuấn
error: " Origin checking failed - https://xxx.com does not match any trusted origins."
Tuấn
thanks all.
Tuấn
Add xxx.com to cors origin whitelist
add "CORS_ORIGIN_WHITELIST = ['xxx.com']" in settings?????
Rutherford
add "CORS_ORIGIN_WHITELIST = ['xxx.com']" in settings?????
Yes. After adding middleware Follow this https://pypi.org/project/django-cors-headers/
S
Does it change request.session to the new value of the variable ?
yes and its because its a reference to the object
Emmanuel
Noted. Quite new to me tho
Shazam_
How to save logs generated in django into a separate file. If can send link, please do share
Sanchit
Hii everyone !!!!! Can anyone help me out I made a website in Django which has two types of users - student, teacher Now when I want to show the name of login user in nav bar ....it is showing that name which has login in admin panel of Django Not the user which I have login in login page (teacher or student) It should show the name of that user to which I have login in login page (either teacher or student) Please help me out...
Sanchit
Try it on incognito window, When you log in admin with super user credentials, it saves that info
But I want to have that username , through which user has login ...not that of admin panel
Sanchit
Login in incognito mode with the user you want
I have tried this...it is not working
Doragonsureiyā
I have tried this...it is not working
If you need help, don't just say "not working", explain in detail what's not working the way you expect it to
Anonymous
how to order instances with number/integer in django filters
Ali
Hi guys i need help. I have 3 modal Author,company and Book I need to add foreignkey of Author and company in Book models But i like this : Class Book(models. Model): book = models.Foreignkey([Author,company],) Or Class Book(models. Model): book = models.Foreignkey((Author,company),) But this not work And when i use ContentType Show all models And i ilke Whene choice model name show the model objects in othor filde Choice (('Author,Author),('Company,company),) Model =models.CharField(choices=Choice,) Object=models.ManyToManyField(Model,)
Bakhodir
from the very beginning, where exactly do i create the static folder, and media folder or do they have to be at one place, and the settings.py configurations
Mohammad
Hey I wana connect my django project to keycloak whith outhlib I login to Keycloak and the response comes back, but I can not authenticate in Django Can someone help!?
Anton
Hello! I need to add to my django admin page sigle page with preferences. How it possible to do it?
Neo
Hello! I need to add to my django admin page sigle page with preferences. How it possible to do it?
I believe you need to extend admin site and make your own and inside it you need to attach the urls for your view
Anton
Oh, okay thanks.
Neo
Oh, okay thanks.
I simply achieved this by creating my own views, added the urlpatterns for them (i did not care about /admin/foo) url. In the view i simply used LoginRequired mixin to make sure the user is authenticated and in the rendered template i extend the admin templates
Neo
but for my use case, there were only superusers. No regular users, so i did not have to check for their role