Anton
Hello! How i can check in template dose my request.path == url 'order' if url has pk parameter
B
how to save Date with AM and PM through postman any special settings ?
Alok
I am adding mongodb atlas using djongo engine as database.
It is showing SSL: CERTIFICATE_VARIFY_FAILED.
certificate has expired
Maxim
Alok
Where is that certificate?
Mr. Azaad
Hello Guys I just create a form using "UserCreationForm" and now I want to add HTML class to "UserCreationForm's" attributes
Do anyone knows how to do it
Mr. Azaad
class SignUp(UserCreationForm):
class Meta:
# password1 = forms.CharField(widget=forms.PasswordInput(attrs={'class': "form-style"}))
model = User
fields = ('username','email','password2')
widgets = {
'username': TextInput(attrs={'class': 'form-style', 'placeholder': 'User Name'}),
'email': forms.EmailInput(attrs={'class': 'form-style', 'placeholder': 'Email'}),
}
Mr. Azaad
password1 is defined in parent class (UserCreationForm)
Mr. Azaad
I want to give class name to it
Roman
Hello! What is a proper way to do regular tasks in Django related to ORM? For example, if I want to add a new user every 10 minutes based on some local txt.
Roman
Meer
For frontend using html css js jquery and react js and for backend using django Is it good for fullstack development Or It's a perfect combo or Not please help me.
Meer
Meer
Anonymous
Guys can anyone know how to set
Banking system api with django rest framework
ARBAAB
Pravin
Please refer a video or blog for deployment in django
ARBAAB
Mr Sourav
Mr Sourav
<div class="hero-wrap js-fullheight" style="background-image: url(static/images/xbg_5.jpg.pagespeed.ic.ciLQ73c4ji.jpg);">
Meer
Mr Sourav
but as this is not a complex website till now so i haven't use that reverse method...
Meer
Meer
Meer
Mr Sourav
Meer
Denis
index.html
ddddddd {{ id }} dddddddd
views.py
def detail2(request):
template = loader.get_template('index.html')
context = {'id', str(id)}
return HttpResponse(template.render(context, request))
Denis
why i'm geting Exception Value:
context must be a dict rather than set. error?
Maxim
Denis
Maxim
thanx :)
in general, i would recommend using dict(id=str(id)) instead, but that's a matter of taste
Aegon
Hi everyone, I'm just learning django.
I'm building an app where users will have to pay per post ( there will be different plan) and I'm not sure how to go about it. Please help. Thanks
ْ
convert django code to php code for larval
Is that possible??
Please forward the answer to me
Charly
Mirco
Aegon
Mirco
Aegon
Lol
Марфа
Hlo
Марфа
I am trying to send headers in Django rest framework but getting error can any one help me
Марфа
raise InvalidHeader("Value for header {%s: %s} must be of type str or "
requests.exceptions.InvalidHeader: Value for header {wsgi.input: <django.core.handlers.wsgi.LimitedStream object at 0x0000029E514A7580>}
must be of type str or bytes, not <class 'django.core.handlers.wsgi.LimitedStream'>
Anonymous
Please enter the correct email and password for staff account .note that both fields may be case sensitive ..show after successfully create superuser..please help me ..cannot login in admin panel
123
Anonymous
path('api/', include((router.urls, 'restaurant'), namespace='restaurant'))
please explain
i haven't created any router app or urls inside it, etc. Please explain all parameters used her
Bibek
remote procedure call in django??
Bibek
anyone here who work in django microservice?
Kishor
anyone know to use chartjs in django
Doragonsureiyā
anyone know to use chartjs in django
Don't ask meta questions like:
"Any user of $x here?"
"Anyone used technology $y?"
"Hello, I need help on $z!"
Just ask directly! The better you are at explaining the problem, the more likely you are to get help.
Asking smart questions
Kishor
how to take chartjs data into django html page
Kishor
how to pass dynamic data in chart in django
Anonymous
When using djangorestframework-camel-case package, how do you handle a case where the response needs a key like appSessionID as opposed to appSessionId which would be what the parser really generates.
Klepshydra
Hi! I want to extend the built-in method EmailMessage.send(), i need to execute code after each send, is that possible?
Alex
ꪉꫝꪖꪹᦋꪖꪜ
ꪉꫝꪖꪹᦋꪖꪜ
It's just a coincidence i guess😅
Alex
Alex
You can use refactoring tools of you IDE for that.
Klepshydra
I know, but this can be source of errors
Klepshydra
so it is not possible to extend a builtin method :(
Alex
Then you had to write unittests before that. It's how software is developed
Klepshydra
I am a developer for this company, i did not start this project
Anonymous
Always a good idea to wrap code like that in a function. Then all you need to change is the function itself.
Klepshydra
Anonymous
also helps with testing too ig
Klepshydra
Klepshydra
and now this is the situation
Alex
Klepshydra
in my mind sould exist a CustomMail wrapper object
Anonymous
If you need to change how emails are sent you can write your own email backend. The EMAIL_BACKEND setting in your settings file is then the Python import path for your backend class.