Bagas
I want disable inside, not by arguments
Sadra
Each time you change your code, you need to update your image and the only way to make it happen is to rebuild your docker image. It does update the code directory.
Alex
Thank yoy
Here is my solution: have a few separate Dockerfiles and docker-compose. For local development I simply "share" project directory with the container app: build: context: . dockerfile: Dockerfile-test volumes: - ./:/usr/src/app
Sadra
Thank yoy
❤️❤️
Vxvek
Can anyone help me to edit model from the template any one?
enansi
Hi all, does anyone know of any non-trivial DRF projects on Github/Gitlab that use the guardian library for permissions?
Anonymous
hi everyone. i am new to django. i’ve read the docs about customizing user i am trying to figure out how to add one (avatar) field to the default user model whats a better way of doing it? should i create a profile app or create a custom user manager?
enansi
hi everyone. i am new to django. i’ve read the docs about customizing user i am trying to figure out how to add one (avatar) field to the default user model whats a better way of doing it? should i create a profile app or create a custom user manager?
You just do a custom user model, the best resource is the official Django documentation: https://docs.djangoproject.com/en/3.1/topics/auth/customizing/ or check this if you want a step-b-step tutorial: https://testdriven.io/blog/django-custom-user-model/
Temitayo
Hi Everyone, who can walk me through to deploying Django application? please
Doragonsureiyā
Hi Everyone, who can walk me through to deploying Django application? please
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
Pablo
hello guys, could someone help me, i'm using Django with wizard view, i have 4 steps, i would like to do a validation on the first step, if this validation fails i redirect to a page.
Yolo
I want to study django can you suggest some materials
Doragonsureiyā
I want to study django can you suggest some materials
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
A
can anyone help with this question please ?https://stackoverflow.com/questions/64801126/map-user-and-board-in-django
Hossein
Hi guys i'm new to django i'm creating a shopping cart and i have a problem .can any one help me??
Hossein
https://stackoverflow.com/questions/64788173/how-to-change-django-views-into-django-rest-farmework
Hossein
this is my question
Accel
First of all know the difference between all this jargons
Anonymous
I want to display student scores from day 1 to day 10 in a html table using django. How do I write the view and the table, please its urgent for my project. Thank you
Shresta
Hi...I want to start wid django
Shresta
Anyone help me to become as django atleast for good level😅😅
Anonymous
Jinja template
Please help me, I wanna use it for my project
Hossein
Any one can answer this question? https://stackoverflow.com/questions/64808435/how-to-create-a-view-for-nested-comments-in-django-rest-framework
Hossein
What???
Anonymous
What???
Which database are you using ?
Hossein
Tukhtamurod
Any one can answer this question? https://stackoverflow.com/questions/64808435/how-to-create-a-view-for-nested-comments-in-django-rest-framework
what do you mean nested comments? if you mean replies to a particular comment together, you can use oneToMany foreign key relationship to comment itself
Hossein
what do you mean nested comments? if you mean replies to a particular comment together, you can use oneToMany foreign key relationship to comment itself
Yes i want to clients can reply comments i used foreign key because a comment can have many replys but a reply couldn't be for many comments just can be for one
Tukhtamurod
that is a trick
Hossein
I just creating the api .the front end is for my colleague
Hossein
I must create a view to clients can add their comments
Hossein
I don know how
Jasvender
I need to convert that image to 5 different image with different resolutions eg 100*100, 200*200, 300*300, 400*400,and 500*500, and then I want to add watermark of 10*10 to each of the above 5 image
Jasvender
Please help me
Jasvender
I am saving an image in the django model, at the time of creation of that object I want to fire two event I need to convert that image to 5 different image with different resolutions eg 100*100, 200*200, 300*300, 400*400,and 500*500, and then I want to add watermark of 10*10 to each of the above 5 image. I need to send a notification to the browser without refreshing the page.
Jasvender
Full question is this
OnlyGod
can anyone help. how do I use a superuser to edit the profile of users from a AbstractUser model
Manuel
has anybody done any authentication by email?
Manuel
can I see it please,
Doragonsureiyā
Manuel
I just want to see the code to check it with mine , to see what's wrong , because I allready did mine but it doesn't work
Doragonsureiyā
I just want to see the code to check it with mine , to see what's wrong , because I allready did mine but it doesn't work
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Hossein
In the end it has an example it can help you
Anonymous
Good day everyone, please I want to create a django site that shows each student recorded scores from Day 1 to Day 10 in an HTML table. I want to be able to add students scores of each day from my admin dashboard and it gonna display in template. I've created Model for Student and Result and I need more information especially the business logic to achieve this. Thank you
OnlyGod
can anyone help. how do I use a superuser to edit the profile of users from a AbstractUser model using my templates not the django admin dashboard
Anonymous
How to do? Clear form fields after submit successfully In django form to html modal(bootstrap4)
jk
Hi, evreybody. I'm using [intl-tel-input] library to take international phone number from user during registration but i don't know how to store the phone number in database. I need your help
jk
Usually they are stored as strings.
Thank you for your answer. Please can you help me with some code i'm quite bit confused.
jk
Nope. Learn it.
I'm trying to do it since yesterday
Dni
hi guys
Dni
def singleProduct(request, slug): product = product.objects.get(product, slug = slug) return render(request,"single-product.html",{'product':product})
Dni
this is my view ... i use get absolute url method
Dni
but i have an error
Dni
UnboundLocalError at /shop/fandake-dovom local variable 'product' referenced before assignment
Dni
"fandake-dovom" is slug
Alex
UnboundLocalError at /shop/fandake-dovom local variable 'product' referenced before assignment
> product = product.objects.get(product, slug = slug) > product, slug = slug Yes, here product is undefined. Actually you should remove it here.
Alex
And even much much better - learn python before get into django.