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
DropDout
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 ?
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
:)
Anders (izzno / gooood) 🇳🇴
Anonymous
I try with return false also
Anders (izzno / gooood) 🇳🇴
code ?
Anonymous
Artyom
Anonymous
.
How to store custom fields in auth_user table
.
Please provide any example
.
Link
cj
Link
doesn't Google work? 🤔
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' "?
inchidi
Anil
inchidi
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' "?
name in django url dispatcher used for naming your path. so, when you need to pragmatically get that url, you can do this instead:
from django.urls import reverse
reverse('photos') # pass name of the url to this function
inchidi
Anonymous
Hmm... Thank you very much!
Anonymous
How can I go to another page after saving details into a form?
cj
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
Mirco
And use pastebin pls
NR
https://pastebin.com/mGzjY7Xe
Mirco
NR
@pyflare sorry, i have made it public
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
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
NR
ok will try
NR
thanks
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.
Mirco
inchidi
NR
to be honest with you i have read once but cannot get any idea
NR
will read again
Paul
Paul
How can i deal with that?
Anonymous
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
🙏
Avinash