H
Dont waste logic on stupid registration page
乌卡帕拉
from django.utils.translation import ugettext_lazy as _ default_text = _('1. ... cleaning.') text = models.TextField(max_length=500, default=default_text, help_text="Short description of this product") template: {{ product.text}} hi, guys, why the default always untranslated
乌卡帕拉
has found po file translated
Turtle_In_Hurry
I mean if anyone has made invite only app in django
Anonymous
Hi guys i need a custom user model do have ant code? With User name Email Password Is_active Last login First name Last name Is_superuser Is_staff Data_joined Id
Anonymous
extend AbstractUser and add what you want
Hi my dear mirco Do you have any example
Mirco
Hi my dear mirco Do you have any example
https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html
Anonymous
extend AbstractUser and add what you want
Now i use it but i don't konw how can i change ig
乌卡帕拉
have you run makemessages and compilemessages ?
of course, I don't know, I have fixed by changing the text var name to text2, don't know why it works.
Álex
Hi guys! Is there any way in the Django test framework to receive a fixture via test function arguments like in pytest?
007
Does anybody has idea of Django oscar
X
any Reactjs telegram group ? Please Share it
007
Actually i want to create e-commerce website using django oscar for that i have created some bootstrap template. My question is how to Use my bootstrap template in django oscar
Anonymous
Kaushal Simple use bootstrap assets in ur static files Copy the html code(element snippets) from bootstrap documents for dynamic data rendering use python django code in html template
Anonymous
Hello all does anyone have idea of uploading multiple files at once using single form field
Anonymous
Using django app
Anonymous
Actually i want to create e-commerce website using django oscar for that i have created some bootstrap template. My question is how to Use my bootstrap template in django oscar
Sachin: Kaushal Simple use bootstrap assets in ur static files Copy the html code(element snippets) from bootstrap documents for dynamic data rendering use python django code in html template
007
Sachin: Kaushal Simple use bootstrap assets in ur static files Copy the html code(element snippets) from bootstrap documents for dynamic data rendering use python django code in html template
It is hard to understand template structure for me. Because if i change the html code of oscar template then it's functionality also change
Vaibhav
Is there any android devloper currntly in Bangalore willing to participate in Airbus hackathon
Anonymous
It is hard to understand template structure for me. Because if i change the html code of oscar template then it's functionality also change
Simple kaushal just load template with block tag in html page and in middle of block body paste html snippets in that html snippets if you want to display list of products from django db render with help of for loop
Vaibhav
Okay..😅
Vaibhav
But I need one fke my twam
Vaibhav
I am the django dev in the team
Anonymous
😁😁😁 it's okay
007
Simple kaushal just load template with block tag in html page and in middle of block body paste html snippets in that html snippets if you want to display list of products from django db render with help of for loop
If i want to edit product details page ... How can i find it on oscar template. Because django oscar url is dynamically generated. It's hard to find template with relevant url
Anonymous
Ok✌️✌️
Kaushal do u know how to upload multiple files at once using single form field in django
Anonymous
Hey guys, I want to customize django user model by adding few fields in it.I tried AbstractUser but it has some migration issues( which I am not able to solve).Is there any other way to achieve customization or how to solve above problem. Issue is similar to this- https://stackoverflow.com/questions/47059198/lazy-reference-doesnt-provide-model-user
Anonymous
But I have already applied some migrations on the project.
Anonymous
But I have already applied some migrations on the project.
Then u can't achieve it dude on very first you create your django project and django app you have to use this custom user method
Anonymous
Other than this, isn't there any other alternative?😥
Sorry buddy you can't do it, if you do it by any way also it may give you bugs in production environment
Anonymous
Oh okay!! Thanks for the help bro
Anonymous
Any help or suggestion is appreciated.
Anonymous
better extend the user model
Instead of extending better to use custom user model
cj
Instead of extending better to use custom user model
just to add one char field? I'd preffer to extend it 🤷🏻‍♂️
cj
option 4 from here: https://simpleisbetterthancomplex.com/tutorial/2016/07/22/how-to-extend-django-user-model.html
Anonymous
In such case it is ok 😊😊😊
Anonymous
I have tried using AbstractUser and AbstractBaseUser
Anonymous
But they require dropping entire database and all migrations to proceed.
Anonymous
Of course
cj
But they require dropping entire database and all migrations to proceed.
you can do some tricks with Meta and migration files to avoid that 🤷🏻‍♂️
Anonymous
Tried searching them but got all the more confused.
cj
Don't know the tricks being a newbie to django
in Meta use the db_table attr to set the table name to the current auth_user one, then the migration files should be created with no problem, just try
Anonymous
Tried searching them but got all the more confused.
Don't go anywhere just refef django official docs and search for custom user manager read it carefully step by step u can get what u want
Anonymous
👍👍😊
Abel
Hello how can I make full login system using django can you send me a link
Baruc
Please not getting the Id field from DRF, even if it's specified in the Meta. I'm using QuerySet with ModelSerializer. I've tried some stuffs from the net, but it stills resultless. Can anyone help ? Thank !
Amd64
Actually i want to create e-commerce website using django oscar for that i have created some bootstrap template. My question is how to Use my bootstrap template in django oscar
Once you have django oscar running, On the main project create a folder and name it templates Then under that folder create a file base.html {% load i18n %} {% load staticfiles %} Paste your snippet here! Then again under templates folder create another folder and name it partials There you can create files to customise specific templates Eg brand.html nav_accounts.html nav_primary.html
Amd64
Html you're just changing the look of the page, urls will remain
007
Suppose i have changed ' product and add to cart' gallery according to my template. Does it affect on backend code because i have removed that oscar code and paste my template code
Amd64
What did you remove?
007
What did you remove?
I have to use different design according to client request
007
What did you remove?
How can i identify specific template according to url, because in django oscar url is dynamically generated
Aman
Hey everyone I need to create a e-commerce website in a week . Can you guys help suggest me how should I proceed and any suggestions will help Thank you in advance
Aman
And any preferred resources will be helpful