Divyansh
Install Django
Divyansh
Newest version
Himalaya
How to join another model data in Django Generic ListView. And how to filter the data for each each object in of list.
Mmbop
ok. i cant get it, STATIC folder only for real static and not changing files? If my script creates file (for ex image) i must store it in MEDIA, right?
D
Hi guys
Hikmet
Hi everyone. I have deployed my django rest api on pythonanywhere.com service. And now I want to make some changes in models. The question is, after I added the changes manually in deployed project itself, how should i make migrations and migrate? If through bash, then how? Can anyone redirect me to some source on internet maybe?
D
Can u help me install posgresql database
Hikmet
Can u help me install posgresql database
I have a video guide for windows, but it's in russian language. Just follow the steps -> https://www.youtube.com/watch?v=e1MwsT5FJRQ&t=1s
Hikmet
Doragonsureiyā
thankyou
You're welcome! 😊
𝒮𝒽𝒶𝓏
Hello Can someone explain NGINX/Ubuntu 413 forbidden
Divyansh
I am getting problem in integrating rich text editor in django admin panel I am stucked at there please
Akash
How can I map request.session to its session entry in django.contrib.sessions.models.Session ?
Mohammad
Hi
Mirco
Hi
!hello
Doragonsureiyā
Hi
Please move your "Hello" and other social talk to @PythonOfftopic.
Mohammad
!hello
I'm iranin What are you from? What's your name?
Doragonsureiyā
I'm iranin What are you from? What's your name?
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
Akash
How can I map request.session to its session entry in django.contrib.sessions.models.Session ?
I have a code line that checks request.session['actor_id'] which is returning key error, where as all my entries inside models.Session has actor_id in it.
Mohammad
! offtopic
Yes I'm sorry 🙏
Anonymous
hi...everyone:) Someone would have some home exercise for hiring? Django backend
Anonymous
to share with me ? please
Divyansh
How to add TinyMce editor in django admin panel to edit posts
Divyansh
I need to improve textfield with rich text editor like TinyMce. Can anybody help out
Mirco
Can you send me the logic please?
Try to do by yourself first
Arezoo
Hi.when i use baton template .after change languagr of django panel admin into fa-ir ..template occure problem..why?
Divyansh
I am trying to inject TinyMce by JavaScript
Divyansh
You can use ckeditor .
How can I do that?
Arezoo
How can I do that?
https://pypi.org/project/django-ckeditor/
Divyansh
Thanks a Lot
Arezoo
Thanks a Lot
Your welcome
Arezoo
Thanks a Lot
see this site: https://dev.to/madhubankhatri/how-to-use-ckeditor-in-django-2igi
Divyansh
👌
Khumoyun
Hello, I can't change DataTimeField to IntegerField it returns error after run migrate command P.S: in my table has not data
âshîsh
I have a dictionary - myDict={'key1':[1,2,3,4], 'key2':['a1','a2','a3']} I used- {% for key, value in myDict.items %} {{value}} {% endfor %} But getting output of key1 & key2 together, I want output only for key1. Any reference for this one ?
âshîsh
{{value.key1}}
Not working.
âshîsh
use condition
What condition... ??
Ulan
hey guys
Arezoo
What condition... ??
{% if key== 'key1' %} {{value}} {%endif%}
Ulan
basically turnin list of dictionaries to one dictionary
Ulan
having troubles with this
âshîsh
Ulan
class CategorySerializer(serializers.ModelSerializer): goods = FlowerSerializer(many=True, read_only=True) class Meta: model = Category fields = ('title', 'isActive', 'goods',) def to_representation(self, instance): response_dict = dict() response_dict[instance.title] = { 'isActive': instance.isActive, 'goods': FlowerSerializer(instance.goods.all(), many=True).data } return response_dict
Ulan
this is my serializer
Artyom
Who to fix this error - "unhashable type: 'set'"?
Artyom
code - https://pastebin.com/c27tK0Av
Akash
Should views only be created if we are exposing it as Api ?
asterix
How shall I achieve automation for django migrations in production?
.
How shall I achieve automation for django migrations in production?
U want your users to add a column to your model?
.
it depends where and how you deploy
What does he mean by automation for migrations
Mirco
What does he mean by automation for migrations
when u deploy your Django project usually you don't do steps manually
Anonymous
i have question, gentelmens
Mirco
i have question, gentelmens
don't ask to ask just ask
asterix
I don't want to run migration by going inside container. Container would be on aws ecs and database will auroro server less. Once my image is deployed, migration should happen
.
when u deploy your Django project usually you don't do steps manually
Oh that makes sense, so when he makes changes to his model while on production, he'll have to run makemigrations command which he wants to automate
.
Nvm
Mirco
Oh that makes sense, so when he makes changes to his model while on production, he'll have to run makemigrations command which he wants to automate
makemigrations must be run locally On Prod only the migrate command must be ran automatically before running Gunicorn or uWSGI
.
Ohh I see. Sorry it's just been since I've started learning Django hahaha
.
A month*
Anonymous
how to remove the word "None" in DataFeld
Mirco
how to remove the word "None" in DataFeld
don't allow to save null values if you don't wanna have None dates