Rajjix
Or add this above card <div class=“col-md-3”>
Rajjix
right click reload
Anonymous
no it don't effects i tried before this for style it don't take it
Rajjix
press on network tab and check disable cache
Anonymous
if apply style in card it won't change
Anonymous
press on network tab and check disable cache
i always do that before relode chrome always save😄
Rajjix
ok u put ur style in the wrong div
Rajjix
And you didn’t even type it as i did
Rajjix
the card div
Rajjix
style=“margin:0 10px;”
Rajjix
ma-5 next to card should also work
Anonymous
ok i'll do that
Anonymous
and how to use usercreationform for edit profile i followed some tutorial but i can't do it any tutorials for that??
Anonymous
tnx Rajjix i put div above card-grouop div and it worked
Rajjix
search for userchangeform+updateview
Anonymous
k tnx
Anonymous
read bootstrap documentation and "card m-3" also worked
Rajjix
Oh idk why i added the ‘a’ there, bad memory
Googlom
Is there a better way to handle authorization in django rest with JWT auth than decoding payload every time I get a request?
Anonymous
Api response is a file. How to save this file into my project??
Mirco
I'm talking about pushing data modified or updated by one client (spa) from a backend to another client
yeah now you are clearer , so django-channels could be your right way
Mi
yeah now you are clearer , so django-channels could be your right way
But does django rest framework support django channels? I read drf team is still planning to work on improving real time support
Mi
OK, this is from version 3.7
Mirco
yep , I've seen it have a look at this project too
Mi
Thx a lot!
Mi
Mmm I've already seen that thanks to Google
Mi
But channels are not still supported
Mi
I can't find it in the drf site
Mi
Only plans to do it
Mirco
yep, me too
Anonymous
Hello guy, I have a wierd error, I hosted my application online on heroku. Locally, I have been using sqlite3, but in production I am using Postgresql as my Database. I have a Datefield. While populating the data to the datefield, I have this error,
Anders (izzno / gooood) 🇳🇴
I have tried to explain my question here. Please take the time to have a look: https://community.simpleisbetterthancomplex.com/t/choice-dependent-dynamic-attributes-model-setup/185
Anonymous
ohh, thanks, next time I will do so, but presently is there any way to solve this ??
Anders (izzno / gooood) 🇳🇴
column "time_limit" is of type time without time zone but expression is of type date
run postgresql in a docker locally and try and solve it there.
Anonymous
okay thanks will do it
Modou-dev
I use rasa to build my bot can someone help me please?
George
Hi, how would you solve, saving a temp file to send to frontend and not having name colision? I add a millisecond timestamp to it, but i dont think that will solve it.
George
I just saw, uuid generation. Also when i put users i can add the user to the filename. Also there is a temporary file library
David
Hi all, can smbd tell me few wysiwyg editors for django ofc
cj
Hi all, can smbd tell me few wysiwyg editors for django ofc
I guess you want it for HTML 🤔 I'm affraid there aren't, at least not as they used to be before (like Bluefish or dreamweaver)
cj
Ckeditor converts to html, but obviously is not to design a front end
ckeditor is a good plugin to use in a web page, you're right maybe he wanted that and not a front-end editor to build a page 🤔
the dark
i need help
the dark
can anyone tell me how can i develop my django website live on my server
the dark
i can't understand can explain what i do
Anonymous
Out of curiosity I have taught myself Python but I don't know where I can use or apply for jobs with it considering my background is meteorology
cj
i can't understand can explain what i do
nginx is a reverse proxy, gunicorn is the http server for the wsgi wsgi is the web server for your django project
cj
i can't understand can explain what i do
read this: https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-18-04
R
Out of curiosity I have taught myself Python but I don't know where I can use or apply for jobs with it considering my background is meteorology
You can do almost anything, considering your background probably you could be interested in machine learning or data analysys, but you can also use it to build web sites, scrapers, gui applications, automate thing from your job like documents generation, etc
Anonymous
I have base html like <body> <!-- base html --> {% block content %} </body> And N templates that do extends from base. What good practice to render data from someexternalurl.com/someitem/count in base html? I see three ways: - take it with js - add url response data in every view that render templates extends from base - add custom tag with request to url (it is legal?) But these ways are unwanted. Is there a beautiful way out? If not, which one is better to use?
Lzdev
You can use templatetags
sergio
Hi, my English is bad, but I wanted to ask how this is done: DateTimeField = DateField + TimeField https://gist.github.com/sdcasas/a5e9e386f8ac885d1502058a702dad13
Vishnu Prasad
and last question guys what sites you find best to search for a job?
Linked in... And follow Oleg. He can try help you get a job
Lzdev
Hi guys. I need a way to minify css/js. Can suggest me a way?
Rajjix
it’s called bundling
Lzdev
thanks you
Rajjix
if your looking for performance enhancement, you might also wanna use site testers such as twilight (a chrome extension) , they give you good feedback (frontend only)
Lzdev
👍
Lzdev
Can you give me link of twilight extension? I didn't find
Rajjix
shit, it’s called lighthouse my bad 🗼
Lzdev
😂 I found
Abdulaziz
Hello everybody
Anonymous
i give background in base.html but background only shows in home what about other pages?? here is the code <body style="background:url(media/42.jpg);">
Rajjix
u need to let those pages extend from home so they can share same background, any search on django template extension will answer ur question
Anonymous
i gave to all pages navbar is loading but backgrount doesn't load
Rajjix
my guess is they are in other folders, and ur media link is hardcoded next to ur home.html
Rajjix
u need to use static instead to load the background img so it stays consistent on all pages
Anonymous
ok
Anonymous
Hey, I tried tgo work with the postgres locally. I have a DatetimeField in one of my models. Whenever I am trying to run migrations. I get the same error that I got yesterday on heroku server (i.e django.db.utils.ProgrammingError: cannot cast type time without time zone to date) and postgres raises the error, psycopg2.ProgrammingError: cannot cast type time without time zone to date
Anonymous
I googled a bit and found these links https://stackoverflow.com/questions/35704795/django-db-utils-programmingerror-cannot-cast-time-without-time-zone-to-timestamp and https://stackoverflow.com/questions/43965016/column-date-cannot-be-cast-automatically-to-type-timestamp-with-time-zone-djan
Anonymous
But can't solve the actual problem with that
Rajjix
1-does it work with sqlite? 2-have you tried remaking migrations 3-what about ur django time settings in your main settings file, i have a feeling u messed something up there
Rajjix
Because django uses ur timezone to make those fields, i don’t think it has a default if you removed that, or probably miss-spelled ur timezone
Anonymous
Thanks @Rajjix I have a problem with my previous migrations, I have changed the field from datetimefield to datefield. When I try to run I guess all are running. I just deleted all my migrations, tables and made migrations again, now it's working fine.