Day
Hi guys, my <img src="photo.jpg"> really does not display the photo
is the picture in the same directory as the html file? Because src="photo.jpg" suggests that.
Day
Can you show your project tree?
Elvin
i think i cannot add photo to channe;
Doragonsureiyā
i think i cannot add photo to channe;
To share code or error tracebacks, use a pasting service, like: - https://linkode.org - https://dpaste.org
Elvin
how am i supposed to copy-paste project tree
K(RANA)
Guys can you guide me how to send mails to user in library management before 3 days of book renew deadline.
Doragonsureiyā
anyone?
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work. Have a nice day 😊
Mirco
I want to receive data from html from in array. does django have anything equivalent for this?? <?php echo json_encode($_POST);
Obviously Everything you do in a weird way in PHP, you can do it better in Django Take a basic tutorial, study and you will learn how to do it The equivalent of it is request.POST in a Django view
Imagination007
@Sathyapramod hey have u able to implement SSO
Doragonsureiyā
May i dm you?
Can i send you a private message? No. We do not provide one-on-one tutoring, hire someone if you need it. Questions are better answered in public so that everyone can learn.
Kripanshu
Anybody here who can guide me to learn django... I know django but trying to figure out the ways to polish my skills....
Kripanshu
?
Doragonsureiyā
Anybody here who can guide me to learn django... I know django but trying to figure out the ways to polish my skills....
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Natalia
Hello! Can someone help with this, want to do meeting list but mustake in function class ToMeet(models.Model): person = models.CharField(max_length=100) phone_number = models.SmallIntegerField('Телефон', default=0, unique=True) data_of_meeting = models.DateField('Дата', null=True) is_closed = models.BooleanField(default=False) is_favorite = models.BooleanField(default=False) def add_tomeet(request): form = request.POST person = form["tomeet_text"] tomeet = ToMeet(person=person) tomeet.save() return redirect(meeting)
Adhil latheef
How to gave rank to user on there points..? Or get sorting position of each user...?
RXRX
Obviously Everything you do in a weird way in PHP, you can do it better in Django Take a basic tutorial, study and you will learn how to do it The equivalent of it is request.POST in a Django view
i have tried # data = request.POST # mylist = dict.items(data) # print(mylist) but it is not the correct way to do it. all the data coming in this format : { "csrfmiddlewaretoken": "w6g73ZkUkHgQP1GDFsQHPBTNTayXnic7zBq8wnn2AMB5epXVY81ZsfEKJrHJXxAk", "1[id]": "5", "1[title]": "1", "1[description]": "Lorem Description", "2[id]": "5", "2[title]": "2 this is second", "2[description]": "Lorem Description", "3[id]": "5", "3[title]": "3 this is third", "3[description]": "Lorem Description", "4[id]": "5", "4[title]": "4 this is 4", "4[description]": "Lorem Description", "5[id]": "5", "5[title]": "5 this is 5", "5[description]": "Lorem Description" }
Aravind
Any project ideas using django rest frame work
Aravind
Advanced level
Doragonsureiyā
Any project ideas using django rest frame work
Adding the word Django to your Off-Topic question doesn't magically turn it to a Django related question, so move to @PythonOfftopic group and ask there.
RXRX
thats what i am doing, in case you got it first then please share your knowledge with us
Mirco
thats what i am doing, in case you got it first then please share your knowledge with us
It's useless because you need to understand by yourself how Django works
Pavel
Hi everyone. Could anybody help me with inlineformset_factory with ManyToMany relation I have the following structure: class User(models.Model): pass class UserEmail(models.Model): email = models.Charfield() users = models.ManyToManyField(User)
Day
study Django Rest Framework and in a couple of lines of code u will have the endpoint up and running
Currently doing that but my approach is quite different. I don't have any model in my app as I'm expected to work with the API's model. DRF seem to require a model from my end. I just want to be able to post to the endpoint and query the API
Day
Nope, you mean ModelSerializer The normal serializer does not require any model
Alright. So normal serializer? And will I have something like <form method='post' action='https://someendpoint.com'> in my sending template?
Hunde
I am want to use specific response from django rest auth registration like weak password,duplicated email and etc rather than registration failed or remain silent during registration,how can i do like that?
Braimah
Can anyone guide me on how to implement a chained dropdown , say for instance if I select a county the state field should contain only states in that country and when I select the state the city field dropdown should display only the cities relating to that state. Thanks in advance guys
Mirco
Ok. Thanks
https://codesource.io/build-a-crud-application-vue-and-django/ I don't know if u know Vue but this is an example of CRUD APIs with DRF and Vue
Mirco
I haven't used Vue before but thanks
it's always javascript so it should help u anyway
Day
it's always javascript so it should help u anyway
Ok. I suppose jQuery can come in handy too.
Mirco
Ok. I suppose jQuery can come in handy too.
Yup, but you don't need it as vanilla JS now can do whatever jQuery does Or you can use Alpine.js
Devang_12
Hey, does anyone know how to implement SQL in Django ?
マクスイム • グセブ
Hey, does anyone know how to implement SQL in Django ?
Raw SQL queries in Django ORM is what you need https://docs.djangoproject.com/en/3.2/topics/db/sql/
Anonymous
E-commerce products recommendation, Which library use in django
Fan / Ac
so i have this django model https://dpaste.org/ZNt8 there is a small issue here Customer has a foreign key Facility CustomerDailyStatus has a foreign key Customer and Room here Room will connect to Facility after some relationship So here Facility is stored twice, (customer whose primary key is not in CustomerDailyStatus are the customers who dont have any room) so here a redundant data is stored in the case of customer who has a room should i fix it by adding a new model which stores customers who don't have any room ?? any other suggestions
इमरान عمران Imran
hi, am using ckeditor, i've added highlighter js in my templates for code snippet, i've also mentioned code snippet theme 'monokai' in config but it's showing the default theme, what should i do
Boi
I'm Using Mysql for and I Have One Question For Connection i have To install Mysqlclient in virtual Environment or it is okay to install it on outside
Boi
Of environment
Boi
you should always use virtual environments
Yes I'm Using it But I Have Install mysql and For Connection with django i have To use Mysqlclient but I'm Confused about installing it in outside of Virtual environment or inside the virtual Environment
Boi
again... you should always use virtual environments
I have Activated my virtual Environment
Boi
But when i try to install it in virtual environment
NaamMainKyaRakhaHai
I have Activated my virtual Environment
Yeah, you have to Activate the environment and then install all the packages which you need for you project even mysql
NaamMainKyaRakhaHai
NaamMainKyaRakhaHai
if possible DM me , your issue with print screen
Boi
I'll dm
NaamMainKyaRakhaHai
Luffy
I want to learn realtime messasing in django rest.... But I found nice tutorial with django. Should I do it or not?
Luffy
Will it be helpful if i learned it using django first then try to use drf?
Luffy
yeah off course
Ok thanks.... Have u implemented messaging feature before?
Luffy
What's the best professional way of doing it
Alex
go with django + channels
Azamat
I want to learn realtime messasing in django rest.... But I found nice tutorial with django. Should I do it or not?
Channels has good docs, learn it from there. I'm too created real time chat with them helping
Anonymous
Hey am new and i have started to learn django.Anyone with a good tutorial for an absolute beginner?
Doragonsureiyā
Hey am new and i have started to learn django.Anyone with a good tutorial for an absolute beginner?
Looking for Django tutorials? you can follow these three recommended ones: * Official documentation and tutorial * Tutorial from MDN * Tutorial from django-girls
Braimah
Use Ajax
Thanks
Amin
Hello I am creating a Signup in django I have to use field only phone number and otp for login I don't have to use email username and password Anyone help with code or tutorial Thanks in advance
Cramer