Anonymous
Hey guys
Anonymous
Whenever I create an app in my local Django project, server goes off
Anonymous
I just set the URL and typed a httpresponse in the file
Anonymous
After that
Anonymous
When I save
Anonymous
It goes off
Mario
Good evening, I have django in docker and nginx on localhost, when I turn off debug in Django all media files disappear. Is this a problem in nginx or Django?
inchidi
Anonymous
Am having hard time creating comments and reply system using cbv pls if you know any easy way to do it using cbv pls let me know
عز الدين يونس
hi everyone i need help i want include html page in httpResponse how to do that
عز الدين يونس
def index(requests):
return HttpResponse('<h1>Bienvenue dans notre jeu</h1>') i want remove <h1>Bienvenue dans notre jeu</h1> by html page
عز الدين يونس
help me please
Fabian
Fabian
Send a control variable
Fabian
And if that variable equals to lets say 1 show the first message, else show the second one
عز الدين يونس
please i don't understand please give me example
Fabian
you do somethin like return HttpResponse ({'control': control})
Fabian
and in your template you can use it like so {% if control %} (insert here your html)
{% else%} (another html)
{% endif %}
George
This is not the place to ask.
⟨ Simon |
SpamWatch Grenzschutz Ban
User: dev.ke [750031721]
Reason: spam
web
Arturo
Anonymous
local variable 'user' referenced before assignment :(
web
get_context_data method
How i pass in (get_contex_data method ) more than tow values ?? For example 'title' + 'all_posts' + 'all_studets'. And filtered data!?
Anonymous
what is you problem
Anonymous
def register(request):
form = RegisterForm(request.POST or None)
if request.method == 'POST' and form.is_valid():
username = form.cleaned_data.get('username') # diccionario
email = form.cleanead_data.get('email')
password = form.cleaned_data.get('password')
user=User.objects.create_user(username,email,password)
if user:
login(request,user)
messages.success(request,f'Felicidades {user.username}')
return redirect('index')
return render(request, 'users/register.html',
{
'form': form
}
)
Arturo
web
Arturo
https://docs.djangoproject.com/en/3.0/ref/class-based-views/mixins-simple/#django.views.generic.base.ContextMixin.get_context_data
Anonymous
help me
web
What is meaning of **kwargs ?
And what is args ?
What we need for !
Why some time use Kwargs, another time use args !!
I study them but I find that Confused !🙄
Anonymous
ThePresence
Can I use passport.js with django for authentication?
Anonymous
i cann't connect mysql with django can i get help
Gil
d
Hello guys. I use WSGI as web engine. How can I set 503 timeout time, for the error accured when I upload a big file.
Anonymous
I thought gateway time out is error 504?
Anonymous
Oh nvm it's 503 for service unavailable if you cannot handle the request like upload big file.
@tele123
Hello friends i want to learn django.can anybody provide me best tutorial .
Mirco
Anonymous
John
Hello guys, just want to ask about API. Is it possible to call DELETE api function inside the POST api function?
Ashutosh
#my model
Bradypodion
Vorke
Hi all
Vorke
How can i implement a datetimepicker in a django formmodel in a straight forward manner
John
DMH-FL
Bradypodion
sheikh
A=[2, 5,3,7,9,2,9,8,7,15]
I need to iterate over the lost from 4 to 10 position and return the index of max element in the list but the index is from the full list not sublist?
Ярик
guys, can you pls hhelp me?
the question is in that stack overflow link
https://stackoverflow.com/questions/60451512/change-integer-field-value-with-update-or-create-method-for-an-inlineformset
Valery
sheikh
snk
Conn =connect.cursor()
AttributeError Nonetype object has no attribute cursor
Doragonsureiyā
🚫 Alwyn is already banned.
Moe (محمد)
How to show user last_login as “AGO” ie “5 min ago”
Moe (محمد)
Or something like this
Moe (محمد)
Mirco
👍🏻
Moe (محمد)
What should i display if the user haven’t logged in yet? What is the appropriate thing to display?
Moe (محمد)
No this view is for admins so basically they going to see their employees last log in, but lets say the employee haven’t logged in yet, what messtag should i display?
Moe (محمد)
Like “No Records”
Mirco
Display "Never"
Moe (محمد)
Anonymous
Hey guys
Anonymous
I'm in trouble with templates
Anonymous
I can't send the bug report here because sending files is limited
Anonymous
Anybody wants to help me?
Mirco
Rangaraj
Hi,
What is the best visualization strategy can be implemented in Django. I want to do various plots releated to time series analysis.... Data available in the form of pandas data frame with millions of row...
Which tool would be apt for handling lot of data
sravan
How to stream videos in django from server ?