Anandababu
Any pointers to develop drag drop workflow kind of control in django?
Anandababu
I need to develop a web app where we can customise the workflow by using drag drop controls
DropDout
Its better if you use react with django. 👍
Anandababu
Oh.. okay tnk you
Anandababu
Any tutorial?
Hesen Nivas
https://www.youtube.com/playlist?list=PLillGF-RfqbbRA-CIUxlxkUpbq0IFkX60
Anandababu
Thank you
Hesen Nivas
🤝
🤝
Artyom
Hi devs! I need for an advise. Could you give popular approach for generating multiform with objects from diffrient models (diffrient DB tables) in excel && pdf && csv formats? So I need for creation documents in django. thanx
Anders (izzno / gooood) 🇳🇴
This makes no sense for me, can you try and refrease the question ?
Artyom
This makes no sense for me, can you try and refrease the question ?
Ok, sorry, Could you give an example of objects of Django or DRF which generates flexibly customisable excel and pdf documents? If django and DRF can't could you give an advise what i have to use (library)?
Anonymous
when the url send to the django and the funtion will give me an image to such directory, and a new problem was appear
can some help me? The problem is page refreshing after this calling from Js to django module (the give me an image )
Anders (izzno / gooood) 🇳🇴
:)
Anonymous
e.preventDefault()
yes I try with that and the page still reload
Anonymous
I try with return false also
Anders (izzno / gooood) 🇳🇴
code ?
.
How to store custom fields in auth_user table
.
Please provide any example
.
Link
cj
Link
doesn't Google work? 🤔
cj
How to store custom fields in auth_user table
.. Here you have a useful link: https://duckduckgo.com/?q=How+to+store+custom+fields+in+auth_user+table
Anil
Hi , everyone I’m new to Django I have download project from GitHub . How can I deploy in my system ? Any help in this regard
Anonymous
I created a project in Django. I have 1 app and a template. Inside the app I created a urls.py file and typed the following code: from django.urls import path from .views import HomePageView urlpatterns = [ path('', HomePageView.as_view(), name = 'photos'), ] I deliberately typed "name = 'photos' ", so that, I thought, if I go to "http://127.0.0.1:8000/photos" I would be able to view my template. After running the server and accessing "http://127.0.0.1:8000", I accessed my template rightaway though but whenever I go to "http://127.0.0.1:8000/photos", that would raise 404. So, what is the meaning behind typing "name = 'photos' "?
Anonymous
Hmm... Thank you very much!
Anonymous
How can I go to another page after saving details into a form?
NR
hi, i am using following inside form to edit
NR
<input class="form-control mr-sm-2" type="text" placeholder= "{{ note.note }}" value="{{ note.note }}" aria-label="Edit Note" name="note">
NR
i want it to replace with text area. i tried to use <textarea class="form-control", placeholder= "{{ note.note }}" aria-label="Edit Note" name="note" ></textarea>
NR
but once submit getting following error
NR
The view notes.views.notes_edit didn't return an HttpResponse object. It returned None instead.
NR
any suggestions
Mirco
And use pastebin pls
NR
https://pastebin.com/mGzjY7Xe
Mirco
https://pastebin.com/mGzjY7Xe
Private , make it public
NR
@pyflare sorry, i have made it public
Mirco
@pyflare sorry, i have made it public
all_notes needs parenthesis when you write .objects.all()
NR
still same, if i use <input class="form-control mr-sm-2" type="text" placeholder= "{{ note.note }}" value="{{ note.note }}" aria-label="Edit Note" name="note"> it works fine
NR
<textarea class="form-control", placeholder= "{{ note.note }}" aria-label="Edit Note" name="note" ></textarea> generate error
Mirco
You can still pass bootstrap classes via widgets
NR
never used that as i am following a udemy course
NR
just tried to change input text to text area
Mirco
never used that as i am following a udemy course
It's easier, follow official docs
NR
ok will try
NR
thanks
Mirco
just tried to change input text to text area
Have you changed it also into your forms.py ?
Mirco
Share your NoteForm
NR
class NotesForm(forms.ModelForm): class Meta: model = MyNotes fields = ["note"]
NR
its very simple
NR
models
NR
class MyNotes(models.Model): note = models.TextField(max_length=500)
inchidi
https://pastebin.com/mGzjY7Xe
you get this error because your form.is_valid() return False, so your code never reach your return and so your function return None instead.
inchidi
you get this error because your form.is_valid() return False, so your code never reach your return and so your function return None instead.
you should know how to fix this if you read the official doc about django forms (basically what mirco said)
NR
to be honest with you i have read once but cannot get any idea
NR
will read again
inchidi
to be honest with you i have read once but cannot get any idea
hint: you can find how to print the errors (things make your data invalid) and fix that part.
Paul
How can i deal with that?
Anonymous
please
Anonymous
..
Avinash
How to make form field as readonly ?
Anonymous
Someone here can give me some some example code Using dinamics models in Django
Anonymous
Please
Anonymous
🙏
Firdaus
How to make form field as readonly ?
https://docs.djangoproject.com/en/2.2/ref/forms/fields/#disabled
Avinash