Anonymous
Rajjix
Have you tried searching manually ?
Rajjix
If you want put ur code on github 2mrw i’ll clone it n find a fix for it
Anonymous
https://stackoverflow.com/questions/53393032/django-selection-field-value
Sh
Pls help with PyCharm
Sh
11/21/18 10:31 AM Unable to save settings: Failed to save settings. Please restart PyCharm 10:32 AM Unable to save settings: Failed to save settings. Please restart PyCharm
None
Есть 3 контейнера, джанга, редис, селера. Селера брокер = редис. По идее когда инициализирую таску она летит в очередь и должна быть в редисе, но KEYS * ничего не показывает, куда смотреть ?
Mirco
english pls
None
I have three docker container with Celery, Redis and Django. Celery brocker is redis. When I initialize a task it should be put in redis but when I go to redis-cli and do KEYS * there is nothing. How and Where can I check my queue?
Akash
Ok I have gone through multiple django tutorials and followed tutorial projects. Now I a building my first real website. What things I must take care of for a real project. (Tutorials usually ignore some practical parts) And one imp question is what's used more in real life projects. Class Based Views or Function Based Views
Akash
11/21/18 10:31 AM Unable to save settings: Failed to save settings. Please restart PyCharm 10:32 AM Unable to save settings: Failed to save settings. Please restart PyCharm
Do what it says. Restart pycharm. Do it again if it doesn't work on first go. (Make sure to close all different windows of pycharm)
None
If I don't go wrong there are inspects commands with celery
Celery inspect also doens't show anything
Mirco
Mmm strange, there's something wrong with your tasks
None
Mmm strange, there's something wrong with your tasks
Oh nonono, In Celery log it shows. That it was initialized and executed
None
I need to check the queue
None
Need to check all tasks in queue
None
and find specific in it
Mirco
you can use elery inspect() to inspect workers and acitve, registered etc. tasks
None
It doesnt show. I already have found the answer
None
I need
None
PUBSUB CHANNELS *
None
It shows all tasks
Rajjix
Do what it says. Restart pycharm. Do it again if it doesn't work on first go. (Make sure to close all different windows of pycharm)
they both get things done, it’s not a matter of who uses what, it’s just a fact that class based views require you to write a lot less code with same results, there’s only one use case of function based views in my opinion that is if your looking for performance enhancements, u might not need the whole class ancestors to render a welcome page with no dynamic content maybe save urself some seconds here and there idk how much this is viable in python as a backend as it is when working with frontend painting
Andrii
guys! Need a solution I have a form, i.e. adding items in form how can I make it change dynamic? For exampe : I open form with one row where are : name and ammout Than I want one more row(the same one) and so on.. Do u know smthing?
Rajjix
guys! Need a solution I have a form, i.e. adding items in form how can I make it change dynamic? For exampe : I open form with one row where are : name and ammout Than I want one more row(the same one) and so on.. Do u know smthing?
my logic would be making a snippet of the input tags, and make a counter for each time the add more is pressed the counter increments by one then a for loop to render your snippets inside your from, u’ll need a small js script if you using django templates to not have to refresh the page every time fields are added
Andrii
yeap, I thought about this,
Andrii
but I am also thinking about formset
Andrii
and also js
Andrii
how do u think, will it work better?
Rajjix
idk 😐, I don’t use django templates
Andrii
ok, thanks
Mirco
You can do it with js , it's just frontend stuff
cj
but I am also thinking about formset
formset with JS, that's the answer
Andrii
thanks guys!!
Luis
I found this post usefull: https://medium.com/@hakibenita/things-you-must-know-about-django-admin-as-your-app-gets-bigger-6be0b0ee9614
Luis
May be offtopic, but I think everyone should read these post
Anders (izzno / gooood) 🇳🇴
Is it still valid for 2+
Luis
I think some of the content is valid, but some code examples are for older versions
Luis
I'm working on admin site, and logging the SQL queries made by the ORM, I found some tips to enhance these queries.
Anders (izzno / gooood) 🇳🇴
im looking at my list view and see join being used, 2.1
Luis
Mainly JOINs
Luis
im looking at my list view and see join being used, 2.1
Yes, when you have related objects, ORM makes a JOIN for each row (by default). You should set list_select_related property to get more performance
Anders (izzno / gooood) 🇳🇴
Yes, I saveed the article for later. I dont have 100 000 users ;), but it's a good read it looked like, thanks
Anonymous
If you want put ur code on github 2mrw i’ll clone it n find a fix for it
I managed to solve my error, the problem is that there was another app with a file "base.html" and for some reason that was causing error and generating things was not to make sense, hehe.
Anonymous
now inside the app i created /templates/blog and /templates/blog_bases
Anonymous
and i use blog_bases dir to extends and include htmls
Rajjix
Great, to avoid naming hiccups, u can make one templates directory in the root directory and branch out ur apps’ templates from there, becomes easier to manage
Anonymous
i want to work a view function automatically in the background what did i do for that? i heard about celery.
Anonymous
TypeError: autodiscover_tasks() missing 1 required positional argument: 'packages'
dynamic
Hello guys, can someone help me with understanding where TestCase should not be used when compared to TransactionTestCase.
Anonymous
[2018-11-22 07:24:11,153: ERROR/MainProcess] consumer: Cannot connect to amqp://guest:**@127.0.0.1:5672//: [Errno 111] Connection refused. Trying again in 2.00 seconds... any one please help me for this error
Adonis
Hi
Anonymous
Yo
Anonymous
Ni hao ma?
Mirco
english pls
Sergei
Hello, everyone! Could anybody suggest a database to store only key-value pairs?
Anonymous
firebase
Sergei
What about pickleDB?
cj
What about pickleDB?
if you already knew, why did you asked?
Sergei
I might have made the wrong choice . I ask to check May be you have better solution
Anonymous
What is different version python, between web-base and executable, embeddable?
Luis
Guys, I'm working on admin site and created two AdminSite classes. How can I create another AdminSite containing the others ?
Luis
I created the two AdminSite classes. But if I register both under same url it show only one of them
Luis
Sorry for my english...
Luis
Then, I'm looking for a way to centralize them whithout overwrite index
Luis
May be I'm doing things wrong way...
Luis
Ok, will overwrite/extend the admin index...
Anonymous
firebase
I am really not sure about it ( but just asking to know). Is it possible to run the django in firebase ?? ( I guess no right ?)
R
Don’t think so
R
Redis can also be used to store key-value pairs
amit
How long does it take to build a notifications specifically in Django for social media alike site ? Also how long does it take to build a chat using channels in Django ?
Akhil
How can I create a custom user field for user ? Using abstarct base class