Anders (izzno / gooood) 🇳🇴
!insult
Anders (izzno / gooood) 🇳🇴
Had to try... 🤷‍♂️
Anonymous
Hi Guys
Syam
Hi all, could anyone please tell me the steps to upload my local django project to GoDaddy server. I am using MySQL database and django version 2.0
Anonymous
Hi All, I am creating my own custom dashboard. In that as a super admin, I should create a user with the role and group. Can any please help me how to do the user management. I am struck here.
Osvaldo
I would recommend using a VPS instead of godaddy
Yes, this is the best way to deploy a service. Better price, better performance and more control...
Osvaldo
Can any please help me with this?
You have to read about Django, Nginx and Gunicorn
Osvaldo
Vijay https://dzone.com/articles/how-to-set-up-django-with-postgres-nginx-and-gunic
~Kishor~
Anonymous
I have a problem on adding product on admin panel of Django That shows OperationalError: no such a table What should I in order to solve ?
Anonymous
Run migrations
I did But still not working
Ghorz
Have anyone generated pdf from django project
Ghorz
JsPDF don't keep CSS format
Ori
There's weasyprint for simple documents and wkhtmltopdf for more complex ones
Ghorz
No way to select a div
Ghorz
It's resource intensive
Ghorz
Wkhtmltopdf don't quite cut aswell
Ghorz
Need a way to generate invoice
Arulmurugan
Need a way to generate invoice
I'm using Weasyprint to generate invoices and as you said it is resource intensive. Still looking for a better solution. Please let me know if you find any.
Andrew
Hi, guys, can someone give me a good example or advice how I can save my images on AWS S3 via django, because I don't wanna to save this images local, I just wanna save in db url for this image
Andrew
Django-storages
yeah, I know that I must use it, but I can't find good information how I can do it via this package
Muflone
Have anyone generated pdf from django project
I use xhtml2pdf t generate PDF from HTML with CSS
Anonymous
Ya..i used fpdf
Erick
yeah, I know that I must use it, but I can't find good information how I can do it via this package
Have you read the documentation? Also there are many tutorials about how to implement this
Andrew
thanks
Aaron
Is there a utility that will construct a link to a particular view?
Aaron
Like say I'm trying to get the link to the user_preferences page
Aaron
Thanks
Aaron
Let's say I have a form driven by a model
Aaron
And I have a widget from an external site. So, model Foo which has BigintegerField external_id, and the external site has a widget that can run whatever js function you want when you enter info in it
Aaron
I'm trying to figure out the best way to do some validation of the widget contents on the python side before setting the external_id in the form.
Aaron
Kinda stumped.
El
I have a API in DRF with relation ForeignKey but return me Album Object (1)
El
The method def str(self) not working
Anonymous
I did But still not working
Remove migrations and run migrate again
Anonymous
The method def str(self) not working
Doesn't work on foreign key i think 🤔
Anonymous
You can do this though https://stackoverflow.com/questions/46286776/django-defining-str-for-nested-foreign-key
Aaron
Do form fields need the same name as model fields?
Aaron
As in, can I have a field in a form that's not in the model
Aaron
and use it to set a property of the model, based on business logic?
Aaron
Also, what's the value type of HIddenInput?
Aaron
If I want a textarea that's hidden, what's the best way to do that? Just set type="hidden" in the template?
Aaron
How?
Aaron
If I don't want it to disappear from self.cleaned_data on the form?
Aaron
So, say I have form foo. It has field bar that it gets from the model Foo. I want to have a field baz not reflected in the model, so that I can check baz before allowing bar to be set.
Anonymous
How can I upload a media files to a specific folder without using model in rest api
barry
Hi guys I am a graduate and I would like to learn Python from the basics . Can you suggest me some textbooks for reference
Doragonsureiyā
S.Çağla
Hi guys, i have a problem with the database (i think). I get "IntegrityError at /lisans/create/" error and Exception Value: NOT NULL constraint failed: lisans_lisans.l_sene. I delete l_sene from database but doesnt work. Please help 🥴
Dhave
Hi Django users, May I ask how was your exerience with Django. Should I use django or codeigniter. I am planning on creating a web app that is connected to SAP Business One.
godmode
If you got several classes in a input , then in the modelForm can you pass this classes as widgets = { 'textArea': forms.TextArea{attrs = 'class': 'form-control bg-success'} ?
godmode
thank you!
godmode
well my syntax was wrong, but you resolved my answer!
godmode
question*
godmode
Why {% if page_obj.has_next == False %} active {% endif %} doesn't work... when the page has no more pages... it doesn't do whatever it gotta do...
godmode
?
godmode
resolve!!!! {% if not page_obj.has_next == False %} active {% endif %}
ಶಶಾಂಕ್
Is there any alternative to run migrate other than CMD
ಶಶಾಂಕ್
Like writing in views or creating other file
cj
Is there any alternative to run migrate other than CMD
why? what's wrong with ./manage.py migrate?
ಶಶಾಂಕ್
why? what's wrong with ./manage.py migrate?
No wrong but I wanted alternative
Jimmies San
No wrong but I wanted alternative
you can create an "hook", a view that trigger the command maybe?
Jimmies San
never done that before. i'm just speculating
ಶಶಾಂಕ್
why?
Bcz everytime I can't type so even whatever time I can easily runa
cj
Bcz everytime I can't type so even whatever time I can easily runa
do you want to automate the migrate command running?
Jimmies San
Bcz everytime I can't type so even whatever time I can easily runa
protect the view or you can easily fuck up if "anonymous" people can trigger that