Mirco
Fil
who needs to create all kinds of pdf files with python and django .. I'm here
Muflone
Fil
share my experience
Muflone
Something less vague
Artyom
Anonymous
hello everyone
could you help me with solving one mistake in the django
Anonymous
I have an error related to registration with forms
Anonymous
I can not display my forms using html
Dennoh
Anonymous
i don't get any errors
Anonymous
my forms do not appear
Anonymous
else:
user_form = UserForm()
profile_form = UserProfileInfoForm()
return render(request, 'registration/signup.html', {
'user_form': user_form,
'profile_form': profile_form,
}
)
using this code i'm going to send my forms
Artyom
Your HTML should look like this:
{% block content %}
<h1>New post</h1>
<form method="POST">
{% csrf_token %}
{{ form.as_p }}
<button type="submit" class="save btn btn-default">Save</button>
</form>
{% endblock %}
Anonymous
Hello
Lugano
Hello guys,i created a virtual environment on cmd and installed django unfortunately i logged out on my pc. I was asking on a way to continue working in the virtual environment i created.
Anonymous
Pip3 install virtualenv
Dennoh
Anonymous
Python -p env env
Алишер
Lugano
Алишер
then type
./your_venv_name/Scripts/activate.bat
Anonymous
Source bin/env/activate
Алишер
Алишер
Sami
hello
Sami
anyone here
Anonymous
Yep
Anonymous
Алишер
Pankaj
How to run powershell script in vm(windows) using pyvmomi
Sami
<form class="Clinets" method="post">
{% csrf_token %}
<input type="text" name="" id="" value="">
<br>
<button class="EnterButton" type="submit"><img src="{% static 'ClientRecored/images/EnterButtonLogo.png' %}"></button>
</form>
Sami
class ClientQuerry(forms.Form):
ClientName = forms.CharField(max_length=30)
Sami
def NewClient(request):
if request.method == 'POST':
form = ClientQuerry(request.POST)
if form.is_valid():
ClientName = form.cleaned_data['ClientName']
print(ClientName)
contaxt = {
'form': ClientQuerry()
}
return render(request,'ClientRecored/NewClient.html', contaxt)
Dennoh
use pastebin.com
Sami
how can I associate HTML form with View and form. py
Sami
<input type="text" name="" id="" value=""> HTML
Sami
class ClientQuerry(forms.Form):
ClientName = forms.CharField(max_length=30)
Sami
form.py
Anonymous
Hello guys, I need a developer for a startup. If anyone interested , then DM me.
Fil
i don't get any errors
in your html
<h1>New User</h1>
<form method="POST" action ="">
{% csrf_token %}
<div class="1">
{{ user_form.as_p }}
</div>
<div class="2">
{{ profile_form.as_p }}
</div>
<button type="submit" class="save btn btn">Save</button>
</form>
Fil
how can I associate HTML form with View and form. py
in your view imports the form class
def NewClient(request):
form = ClientQuerry(request.POST or None)
if request.method == 'POST':
if form.is_valid():
ClientName = form.cleaned_data['ClientName']
contaxt = {'form': form}
<form class="Clinets" method="post" action ="#">
{% csrf_token %}
<div class="1">
{{ form.as_p }}
</div>
<br>
<button class="EnterButton" type="submit"><img src="{% static 'ClientRecored/images/EnterButtonLogo.png' %}"></button>
</form>
Sami
Anonymous
?
Anonymous
hay
Anonymous
i need a help
Anonymous
my profile form is not saving info to db
Anonymous
who can helm me ?
Mirco
Everyone can help you if u share your code 😊
Mirco
Use pastebin or similar
Mirco
Read the rules please
Anonymous
Anonymous
https://pastebin.com/fXLPqYBf
Anonymous
https://pastebin.com/fXLPqYBf
in this cod i tried to create extra info forms i mean profile form with include one field ( user images )
Anonymous
when i'm registering user forms saving me but profile not
Anonymous
Anonymous
I'm learning Vue.JS currently.
I want to know how can I make things realtime in it?
Vaibhav
If anyone is working on Django frame work the please tell me how we can process a .CSV file in backend and display output on html page
Mirco
Vaibhav
Actually I had tried but it shows an error that the particular csv doesn't exist and I kept that csv file in same folder where views.py exist
Mirco
Anonymous
Mirco
Mirco
And study
Anonymous
https://pastebin.com/fXLPqYBf
Anonymous
this my cod
Anonymous
this is my cod
Mirco
Study class based views 😊
Less code and you don't have to reinvent the wheel
Anonymous
Anonymous
thanks admin 😉
Mirco
Anonymous
Hey guys can Django tell if the user is authenticated via an Ajax request ?
Venkatesh
hi
Fernando Jorge
Hi
Fil