Pavel
php was made just for web development and nothing more
Pavel
it is a lot easier to create web sites with php
Agent Q
php was made just for web development and nothing more
It can do both but that's up to you
Doragonsureiyā
How to easily learn django?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Anonymous
Hello guys
Anonymous
Kindly helpme guys my web app can't load images it's giving me this message . Page not found (404) Request Method:GETRequest URL:http://bemcsharingsite.herokuapp.com/media/images/county-vaccine_d7itt9s.jpgRaised by:django.views.static.serve “/app/media/images/county-vaccine_d7itt9s.jpg” does not exist You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard 404 page.
Damilola
Hello guys, is there a way to add "encoding" to response header in django breast framework?
Himalaya
Please help, I set my session_cookie_samesite='None' now I'm unable to login it redirects to login page without showing any error
When I'm setting samesite to "None", cookie is not being created anyone can help?
Damilola
Hello guys, is there a way to add "encoding" to response header in django rest framework?
How can i update my django project from 3.1.7 to 3.2?
Mohsen
Hi guys Im new in django What design pattern do you use in enterprise company for your projects? Im laravel developer and we use repository pattern for our projects I like to know the best or the most popular design pattern for django that is using in big projects If you have any tutorial videos or documents please share with me.
Damilola
Why?
Because Flutter needs to be able to decode apostrophe "' ' " is charfield without escaping
Agent Q
Read the heroku logs
Green Bear 🐻 📈
hey guys, i am trying to webscrap one index flag value from investing.com my query returning country = <span class="flag flag-germany"></span> how can i extract 'germany' from above o/p
Damilola
Why?
I need it so that server response can read as Content-type: application/json; charset:utf-8; encoding : utf-8;
Sumit
Anyone has used graphene?
Beka
https://pastebin.com/jx404vgL Anyone can help?
Chyngyz
https://pastebin.com/jx404vgL Anyone can help?
you question is not clear. Try to explain correctly
Beka
you question is not clear. Try to explain correctly
Need to assing users to specific group right on page registration..
Beka
on registration form there, I need to get groups... so users can select group. Groups might be doctors, patients.. and so on..
Chyngyz
Need to assing users to specific group right on page registration..
you need to just add a relation as foreign key and add it to your forms
Beka
you need to just add a relation as foreign key and add it to your forms
that's not working for me.. I'm using django built-in UserCreationForm(
Ruslan
Did anyone read Two Scoops of Django? Is it worth to buy the book?
P.
Did anyone read Two Scoops of Django? Is it worth to buy the book?
Yes, was my first Django book. Very well written
Wade
Did anyone read Two Scoops of Django? Is it worth to buy the book?
i read it like 8 years ago and it was solid. not idea how up to date its been kept
Chyngyz
that's not working for me.. I'm using django built-in UserCreationForm(
so that’s why I told you. your question is not clear. Show your models, forms
P.
Did anyone read Two Scoops of Django? Is it worth to buy the book?
I don't know if it is uptodate. I see on amazon they have it till django 1.8
MYIL
Django erp???
Atlas
After read "Learn Python the Hard Way", it's a good time to learn DJango? Or would you recommend to learn another stuff first?
Si
%i format: a number is required, not NoneType this error shows
Si
views.py def create(response): if response.method == "POST": form = createnewlist(response.POST) #this will create blank form and will past in html and generate the form for us if form.is_valid(): n = form.cleaned_data["name"] t = Todolist(name=n) t.save return HttpResponseRedirect("/%i" %t.id) else: form = createnewlist() return render(response,"create.html", {"form":form})
Si
I followed "tech with tim " tutorial
Assassin Creed
Which is mostly preferred class based views or function based views in industries or companies
Atlas
Have you seen Corey Schafer videos
An user here tould me about him. I'll check his channel
Sai
How can i update my django project from 3.1.7 to 3.2?
First do it on local. update the dependencies and test the app throughout
Anonymous
My friend is working on a Django app. The project is such that 15000+ users needs to be able to get some real time data. He uses Django channels for it full duplex communication capability, and celery to queue task, but he found out there are time lapses in response data that is meant to be real time, because celery queues horizontally. Now, if requests are made to the Server directly without middleware like celery, he's afraid he might run out of cloud resources. I will appreciate any better architecture recommendation.
Anonymous
how can I do a bulk_create with m2m fields?
Zey
TypeError at /message "to" argument must be a list or tuple
Zey
send_mail(subject,message ,[email],'ecommshop637@gmail.com')
Zey
Error solved
John
query = request.GET.get("query", None)
John
Guys what url address should I give to get an output
cr
I am getting error using local variable 'section' before assignment in models.py Section is one of my model
Doragonsureiyā
I am getting error using local variable 'section' before assignment in models.py Section is one of my model
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
Anonymous
Can someone help with bulk create using m3m?
Anonymous
M2m?
cr
A class can have many students Whereas a student can be only in one class Is this one to many relationship?
cr
class Standard(models.Model): #student = models.ForeignKey(Student,related_name='students_in_class',on_delete=models.CASCADE) standard_name = models.IntegerField(primary_key=True) section1 = models.ManyToManyField(Section) class Section(models.Model): section_name = models.CharField(max_length=250)
cr
Error -using variable 'Section' before assignment . Getting this error under Class standard
cr
Please help with this error
cr
Move your Section class to above Standard class
I didn't get that Could you please give details
Agent Q
I didn't get that Could you please give details
Move "Section" model class to before "Standard" model class
Agent Q
Move it up
Aman
BOOL_CHOICES = [ (True, 'True'), (False, 'False'), ] Maintenance = models.BooleanField(choices=BOOL_CHOICES,null='False')
Aman
trying to use this in models.py
Aman
but giving this error in migrate step django.core.exceptions.ValidationError: ['“” value must be either True or False.']
Aman
Can anyone help?
Si
can I add bootstrap to django forms?
VY.sh
Aman
Just add 👇🏼 default=True
still getting same error