Beka
Now you're getting material design from cnd? Or you download whole library?
Anonymous
Hello I will append audio file So, cmd => " python manage.py makemigrations"- to write. But it is turns out " no changes detected"
Umar
View page source and check if icon is present there or not
âshîsh
Because u r dealing with static files.
âshîsh
When you want to use static files then must define static root inside settings.py and use like follow- <img src={%static 'filename.png' %}>
ahmed
hello guys
Umar
Just view page source check there the link click on it
Umar
Did you check page source
ahmed
What is the solution
ahmed
^media/(?P<path>.*)$
Ahmed
python manage.py runserver didn’t work any solve??
âshîsh
Then, it might be server error from the <i> side, sometimes when server is down , Django not able to fetch the request. You only have to wait for sometime.
Tukhtamurod
if an icon is not defined in the css file it results in rectangle, the css file you imported might depend on the other assets as well and you are importing only css file, try cdn or download all the necessary assets not only css file itself
Владислав
Hello everyone, but how to make a condition depending on the link in the form of if nexus.com/url, if steam.com/url:. I'm making a parser, and let's say the user has inserted a nexus or steam, then you need to parse using different bs4 templates. How to do it? Thanks.
Harish
Hello everyone, when configuring multiple databases, tables of django migrations, sessions and content type are being created on all the databases. Is there a way to specify a certain database to be used?
Harish
The problem I'm facing is that contenttype is not being created for one of the databases A - contenttype exists B - missing
Harish
And it's throwing me an error
𒂵𒐊𒍝𒊏
Ya I hosted
can you help me to hosted my project🙏
Den
Hi. Is it possible to add a template tag to the article model?
Beka
Hi. Is it possible to add a template tag to the article model?
Your own template tag with your own logic?
Den
Your own template tag with your own logic?
I need to add a form to a page.
Beka
then why you need template tag?
Beka
I need to add a form to a page.
create create your form in forms.py
Den
<form method="post" novalidate="novalidate"> {% csrf_token %} {{ form }} <input type="submit" value="" class="submit-button w-button" /> </form>
Beka
what is your problem?
Den
If I add the tag to the template then it works. But I also need to add this tag to the article.
Beka
what tag?
Den
{{ form }}
Den
on the site you can see - {{form}}.
Beka
I can't get it.. Let understand the situation.. Why you need form? Do you nee form to add article?
∆$¶u
Den
Jinja2
explain please
Beka
yes.
Do you have ArticleForm in forms.py?
∆$¶u
{{ form }}
this template tag name is jinja.
Beka
Do you have logic in views.py to handle form data?
Den
Do you have ArticleForm in forms.py?
coz. Its work with template but doesnt with article
Den
I could show, but can't upload photos here
Beka
Den
this template tag name is jinja.
no, this tag from django
Beka
Look.. first you need to identiffy what form fields needed for Artile model in forms.py 2. Write logic to handle form requests 3. create form in html
Den
https://www.dropbox.com/s/1lcp3108j3pdmsr/Screenshot_20210316_115017.png?dl=0
Den
https://www.dropbox.com/s/s73a5mmvi67kft7/Screenshot_2021-03-16%20%D0%A0%D0%B5%D0%BC%D0%B1%D0%B0%D0%B7%D0%B0%20%D1%81%D0%BF%D0%B5%D1%86%D1%82%D0%B5%D0%B7%D0%BD%D0%B8%D0%BA%D0%B8%20%E2%80%94%20%D0%A0%D0%B5%D0%BC%D0%BE%D0%BD%D1%82%2C%20%D0%BE%D0%B1%D1%81%D0%BB%D1%83%D0%B6%D0%B8%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20%D0%B8%20%D0%B7%D0%B0%D0%BF%D1%87%D0%B0%D1%81%D1%82%D0%B8%20%D0%B4%D0%BB%D1%8F%20%D1%81%D0%BF%D0%B5%D1%86%D1%82%D0%B5%D1%85%D0%BD%D0%B8%D0%BA%D0%B8.png?dl=0
Den
This works if I add to the template
Den
https://www.dropbox.com/s/y6k2kdvfxihulhs/Screenshot_2021-03-16%20Change%20post%20Django%20site%20admin.png?dl=0
Beka
show me your views.py
Den
https://www.dropbox.com/s/d4zart0xcibc93e/Screenshot_2021-03-16%20%D0%A0%D0%B5%D0%BC%D0%B1%D0%B0%D0%B7%D0%B0%20%D1%81%D0%BF%D0%B5%D1%86%D1%82%D0%B5%D0%B7%D0%BD%D0%B8%D0%BA%D0%B8%20%E2%80%94%20%D0%A0%D0%B5%D0%BC%D0%BE%D0%BD%D1%82%2C%20%D0%BE%D0%B1%D1%81%D0%BB%D1%83%D0%B6%D0%B8%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5%20%D0%B8%20%D0%B7%D0%B0%D0%BF%D1%87%D0%B0%D1%81%D1%82%D0%B8%20%D0%B4%D0%BB%D1%8F%20%D1%81%D0%BF%D0%B5%D1%86%D1%82%D0%B5%D1%85%D0%BD%D0%B8%D0%BA%D0%B8%281%29.png?dl=0
Beka
@ZatenatskiyDenis Here is my views.py for creating Task for example: https://pastebin.com/jQmKq13f
Den
https://pastebin.com/gGK26Zpc
Den
forms.py
Den
https://pastebin.com/AM66Vggx - views.py
Beka
Quesiton. Why you're doiing with init method? If it's ModelForm?
Beka
yes https://pastebin.com/vAdeHk82
Try to understand this form. I'm looping all frields here. https://pastebin.com/b7CWcVYa
Beka
So, you do not have kinda this thing..
Beka
or you can print out your form fields in order to understand if you are getting all the fields.
Beka
is it template or article&
in my case.. I used that form to create Task.
Den
in my case.. I used that form to create Task.
Thanks for the help. I got some ideas on how to solve this
Beka
Thanks for the help. I got some ideas on how to solve this
I don't know if I was helpful. But I'm glad you had ideas.
Veeresh
Myntra Clone using Django Myntra Clone is an e-commerce website,as name indicates it's clone of popular e-commerce website here in India Myntra.Myntra Clone Web application built using Django as back-end.Html, CSS and Bootstrap as front-end. Myntra Clone has a floating button when one clicks on it it takes clients voice as commands and performs the operations such as opening men's category and women's category. The search by Voice functionality is not limited only for men's or women's category even we can search for particular product and see thier description too. This is a prototype , just thought to share with you guys made a video of it https://youtu.be/5BMmbmZfAdc
Anonymous
היי, יש כאן משהו שיכול לעזור לי בג׳אנגו, בתשלום?
Anonymous
אני התחברתי לפןסטגרס בג׳אנגו, ויש לי נניח מודל של ״פרויקט״ אני רוצה להוסיף לו עמודה חדשה ולראות את זה מעודכן בפוסטגרס
Anonymous
משהו יודע איך עושים את זה?
Renal Eki
hello everybody, can raspberry pi zero w handle django as server locally ?
Vxvek
Is it possible to create auto increment Id like Emp001 ,Emp002 ?? In Danjo models?
Vxvek
By default it does for you.
By default it will like 1 2..
Vxvek
I need it like Emp001,Emp002..
Azat
Why do you need it though?
Tukhtamurod
Is it possible to create auto increment Id like Emp001 ,Emp002 ?? In Danjo models?
only integers can be auto-incremented, you have to do it manually, but in fact what is the need of emp001, emp002, just 1, 2 suffice as long as it doesnt mean smth important