O
im just a beginner and frontend noob
O
so I can use cdn inside my template like bootstrap
O
same logic?
Sparrow
Yep, same logic,
Anonymous
Just paste the cdn link in your template that will work
O
great man that a lot...
Sparrow
I prefer UIkit since Semantic UI has stopped development
O
I gave so much attention to backend that I suffered from frontend using bootstrap
O
Ui kit looks great
Ionut
i have this class class CategoryDelete(DeleteView): model = Category template_name = 'confirm_delete_cat.html' success_url = reverse_lazy('main:home') how can i delete the jpg file from the media folder because the category is deleted but the jpg file does not
Mirco
Doragonsureiyā
thanks
You're welcome! 😊
Ionut
You're welcome! 😊
works very well, thank you very much
Joseph
I have a model which has the fields word in db, i have for example these objects: word ------------------------- Banana Apple Coffee #banana this is my model class Wiki(models.Model): word = models.TextField() definition = models.TextField() in my code i wrote my_words = Wiki.objects.order_by('word') but the #banana doesn't come first i want it to be aranged like; #banana Apple Banana Coffee please i want help
Akshay
Anyone up ?
Akshay
I have a small doubt in django rest api framework about id
Akshay
Can anyone help me
Doragonsureiyā
Doragonsureiyā
Anyone up ?
Maybe anyone is here, yes, but they are not obliged to read everyone's message here neither to reply to everyone's message, if someone wants to reply to your message, they will do that, just don't try to draw attention to your message writing "anyone?" every 5 minutes, that will lead you to be warned for SPAM/Flood, just be patient or use Google/DuckDuckGo to research about your question instead of wasting time here waiting for people to do your work. Have a nice day 😊
Addition
i want to rearrange these objects in alphabetical order I have a model which has the field word in db, i have for example these objects: word ------------------------- Banana Apple Coffee #banana #Orange this is my model: class Wiki(models.Model): word = models.TextField() definition = models.TextField() this is my code my_words = Wiki.objects.order_by('word') but it doesn't work i want it to appear #banana #Orange Apple Banana Coffee
tushar
I have (name,group) and I want output ('Name','Group') ANY METHOD
Mayur Parmar
djnago templates in how to use set tag?
Mayur Parmar
set variable and increase this set variable
Moe (محمد)
Hello, I have a production django app for about 3 years And now i have to re-model the project in terms of foreignkeys and other stuff What’s the right method to restructure the project?
~:$
Hello, I have a production django app for about 3 years And now i have to re-model the project in terms of foreignkeys and other stuff What’s the right method to restructure the project?
I guess you have to build erd before anything else. Discuss business logic and try to understand which parts of the project get affected the most. Do a gradual change not all at once. Well it is totally depends on business logic and project requirements. Try to keep the change minimum.
emil
HI, it's my question https://ru.stackoverflow.com/questions/1343552/django-swapped-user-model-creates-user-ptr-id
emil
i can't find place where django creates this field, i think it's somewhere deep in django migrations for auth app
Arshia
I have an error No such colmun in admin panel when i creat post and click to save
Arshia
run migrations
I do but still have error
Maxim
I do but still have error
you may have broken the migrations by some interference earlier (migrations is a very complex and delicate mechanism, be extremely careful with it and don't rush to do anything)
Maxim
Now What can I do to fix it?
i emphasize that i am not asserting this, but only speculating first of all, it is necessary to understand whether there really was any interference in the mechanism of migrations
Anonymous
How can I get the number total number if instances created on a for loop in django plz help
Your
After deployment of my django app in heroku, when i am opening the link, it is showing internal server error How i can fix it ?
λ701
λ701
Not a fair advice
I was very aware
Arshia
λ701
It destroyed me for almost two days
Yeah if you are in development and just for testing purpose you can do it I do it all the time Even today
Somesh
I have an error No such colmun in admin panel when i creat post and click to save
Delete all migration file and also db.sql. rerun makemigrations and migrate..
emil
i can't find place where django creates this field, i think it's somewhere deep in django migrations for auth app
i solved, django looks if there is field with onetoone relation to user model with parent_link = true and i find out, that i didn't set it in first migration
Adhin
Is there any django beginner friendly tutorial for free
D
Hi, I'm trying to connect 3 databases to Django, I want to connect automatically to the second database if the first one fail. Someone knows how can I do it?
Shilpy
How to delete the files from media folder once it is deleted from the database?
Anonymous
You can use the file path and del path before deleting in db
Shilpy
You can use the file path and del path before deleting in db
Actually i am using os.path in windows to get the path of file but it's not working
Anonymous
The path will be media_root+filename right
Anonymous
What is the error you're getting
Shilpy
What is the error you're getting
I'm not getting any error but when I am printing the filepath it is not returning anything
Shilpy
The path will be media_root+filename right
It's solved now. Earlier file path was not correct due to forward slash.
Anonymous
Great
Shilpy
Thanks😊
Pratik
https://pastebin.com/hE84ivTR
Pratik
i want data in json format however i'm getting in ordereddict
Maxim
i want data in json format however i'm getting in ordereddict
use JsonResponse then why did you use HttpResponse?
Pratik
thanks i used Response(teamserializer.data) and it worked
Kishor
how to do social authentication
Doragonsureiyā
how to do social authentication
Read this please: http://catb.org/~esr/faqs/smart-questions.html#intro
Anonymous
I need django tutor please help