Vxvek
Beka
Now you're getting material design from cnd? Or you download whole library?
Vxvek
Anonymous
Hello
I will append audio file
So, cmd => " python manage.py makemigrations"- to write.
But it is turns out " no changes detected"
Anonymous
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>.*)$
Anonymous
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.
âshîsh
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?
Charanjit Singh
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
Harish
Den
Hi. Is it possible to add a template tag to the article model?
Beka
Den
Beka
then why you need template tag?
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
Den
Beka
yes.
Do you have ArticleForm in forms.py?
Beka
Do you have logic in views.py to handle form data?
Den
I could show, but can't upload photos here
Beka
Den
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
Beka
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?
Den
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.
Den
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
Beka
Vxvek
I need it like Emp001,Emp002..
Azat
Why do you need it though?