Rushabh
Or Inside the settings file
Akash
https://docs.djangoproject.com/en/3.1/ref/settings/#std:setting-TIME_ZONE Pass the value as env to each app
Rushabh
Ohk thank you.
Rushabh
https://docs.djangoproject.com/en/3.1/ref/settings/#std:setting-TIME_ZONE Pass the value as env to each app
settings.configure(myapp_defaults, TIME_ZONE='Asia/Makassar') and same as the other applications...is that right..?
Anonymous
I m getting this error
Anonymous
How to resolve this
Agent Q
Is that all? It looks cut off.
Agent Q
What's in your registry.py?
Anonymous
Agent Q
By default file
Show me line 91
190030260
Anyone suggest me a YouTube video for visualization in admin.i.e user analytics in admin page
Vishnu
Guys can anyone help me with model translation for DRF
Vishnu
Thanks in advance
Vishnu
Internationalization and localizations
Agent Q
Internationalization and localizations
https://docs.djangoproject.com/en/3.1/topics/i18n/
Vishnu
I have referred it bro it's for static contents mostly
Agent Q
I have referred it bro it's for static contents mostly
https://docs.djangoproject.com/en/3.1/topics/i18n/translation/
Vishnu
I wanna translate dynamic contents
Vishnu
Like translating models automatically
Agent Q
Like translating models automatically
Seriously bro its in the docs. https://docs.djangoproject.com/en/3.1/topics/i18n/translation/#lazy-translation
Vishnu
Thanks let me check with it
Zey
To save radio button value what we can do?I have to pass that value on next page
Shreehari
Hi im using django-filter library for filtering a choicefield. The query parameter will be like this - ?difficulty=hard,easy I have to query all those with hard or easy difficulty. Can someone please help me how to do it.
Randy
UNIQUE constraint failed: blog_post.slug VIEWS: https://dpaste.org/kkTf MODELS: https://dpaste.org/BnDK
Anonymous
I'm trying to apply javascript on an iframe that contains html from s3
Anonymous
But it gives blocked a frame with origin from accessing a cross origin frame
190030260
Hi guys ! I am working with a django project. I want to display the visualization/graphs of user model in admin panel. Does anyone have idea how to implement will be helpfull. Thanking you in advance.
Tukhtamurod
Hi guys ! I am working with a django project. I want to display the visualization/graphs of user model in admin panel. Does anyone have idea how to implement will be helpfull. Thanking you in advance.
what are you asking exactly? you want to display graphs ok you can do it, if you know how to, if you dont know learn the graphs/visualisation first, then try it
Tukhtamurod
Yaa for displaying graphs suggest me a tutorial video or documentation
google it dude) this place is not for meta questions
Tukhtamurod
moreover ask questions only related to django, not graphs or smth else
Prince
Yaa for displaying graphs suggest me a tutorial video or documentation
go for matplotlib or bokeh (more powerfull) for graphs
Shreehari
Use Q objects
thanks for the reply. Yes that could have been used But i found a approach in django-filter itself.
MS
Is Django good for Web Blogs?
Shreehari
What is that plz tell me also?
extended BaseInFilter, CharFilter in a new class.
Shreehari
extended BaseInFilter, CharFilter in a new class.
had to do this according to my usecase
Ravi
how to include visualization charts and graphs in Django template
Ravi
with dynamically change graphs and charts how
Randy
from math import inf ImportError: cannot import name inf Python 3.6
D
hello guys does anyone have school project tutorials on django for beginners (video)
T
Hello
T
I have one query halp me
T
My navigation bar is not working
Prince
from math import inf ImportError: cannot import name inf Python 3.6
try inf = float('inf') neg_inf = float('-inf')
Akshat
Hey I am a beginner in django using pycharm I am getting error manage.py not found although i changed the folder location i am getting this!
Харисов
show the project cmd and error
Мурат
Hello, can you help me?
Doragonsureiyā
Hello, can you help me?
Don't ask meta questions like: "Any user of $x here?" "Anyone used technology $y?" "Hello, I need help on $z" Just ask about your problem directly! With ~90,000 people here, the probability that someone will help is pretty high. How to ask smart questions: http://catb.org/~esr/faqs/smart-questions.html
Мурат
I can't connect it static file in django.
Mirco
I can't connect it static file in django.
this means nothing Share your Django settings, share code and explain better the issue and the context
Мурат
this means nothing Share your Django settings, share code and explain better the issue and the context
STATIC_URL = '/static/' MEDIA_URL = '/media/' STATIC_ROOT = os.path.join(BASE_DIR, 'static_root') STATICFILES_DIRS = (os.path.join(BASE_DIR, 'static'),)
Tukhtamurod
and all your assets there?
Tous
Hey Can anyone tell me What should be the exception handling for custom admin if something fails while saving
Tukhtamurod
yes...
then problem is in your templates, you didnt correctly initialize static assets there
Мурат
then problem is in your templates, you didnt correctly initialize static assets there
{% load static %} <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <link rel="stylesheet" href="{% static 'css/style.css' %}"> </head> <body>
Мурат
It means when you prescribe a normal path, it does not look for it when you make a mistake, it works...
Anonymous
anyone know how to use decorator proper
Harsh
How can I use open source project in my project as it contains template based views while I need rest api view
Chyngyz
Hey everyone. Please could you kindly review my question. Appreaciate any help https://stackoverflow.com/questions/66885057/change-database-cached-data-django-while-model-is-updated
Anonymous
how can i perform location related task on django? like autometic fetching someones location search a location from database etc..
John
Helloo guys how can we do multiple languages translation on models in DRF
John
Thanks in advance
Huzaifah
Helloo guys how can we do multiple languages translation on models in DRF
https://docs.djangoproject.com/en/3.1/topics/i18n/translation/