Fil
who needs to create all kinds of pdf files with python and django .. I'm here
Fil
share my experience
Muflone
Something less vague
Jimmies San
share my experience
write a tutorial or medium article :)
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
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
Lugano
Pip3 install virtualenv
I arleady installed it
Anonymous
Python -p env env
Dennoh
See Django tutorial that pretty easy https://tutorial.djangogirls.org/en/django_installation/
go through this and you will be good, you will see guide on working with virtual environment
Lugano
cd to working dir type in cmd: ./your_venv_name/Scripts/activate
Is not recognise as an internal or external command
Алишер
then type ./your_venv_name/Scripts/activate.bat
Anonymous
Source bin/env/activate
Алишер
Алишер
then type ./your_venv_name/Scripts/activate.bat
for windows this should be correct
Sami
hello
Sami
anyone here
Anonymous
Yep
Anonymous
then type ./your_venv_name/Scripts/activate.bat
А по русски говорите?
Алишер
А по русски говорите?
да, но тут англ чат
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.
Dennoh
how can I associate HTML form with View and form. py
Update your template to https://pastebin.com/TnkJAmpj
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>
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
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
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
sorry i just new here.
That's why we have a pinned message
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
Anonymous
Mirco
bro i need really help
Share your code
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
thanks admin 😉
Anonymous
Hey guys can Django tell if the user is authenticated via an Ajax request ?
Venkatesh
hi
Fernando Jorge
Hi