Knowledge
what is the best way to create flow based web app in Django. like maker will make details.. reviewer can check and authorize and so on
Anil
Hello guys, How to access only one attribute value from phmysql database in to django
Charly
Hello guys, How to access only one attribute value from phmysql database in to django
Usaing a model, have you checked the django tutorial at least?
Krushna
I'm using celery with sqs to run some tasks asynchronously. My tasks are running successfully. When I call them in terminal i.e. with delay() or apply_async() I get AsyncResult. I'm using CELERY_BEAT_SCHEDULE to run cron tasks with supervisor. 1. My question is do we need to call the tasks function with delay() and apply_async() or not in the code. When I searched this the results showed that if CELERY_ALWAYS_EAGER = True then tasks are run synchronously. I haven't included it in settings.py 2. So my tasks are running synchronously or asynchronously?
Krushna
Without EAGER equals to true, they run asynchronously apply_async allows you to specify more stuff delay() is simpler , just trigger the task
Yep. I want to use queue in apply_async. But, do I need to use apply_async() or delay() in my code i.e. views.py or we just use them to call it in terninal?
Krushna
Start with delay() Use apply async when you need more stuff
I've used both while calling tasks. But that's limited to terminal only. What I want to ask is do we MANDATORILY need to use delay() or apply_async() to the code too? Will tasks run asynchronously without them?
Mirco
I've used both while calling tasks. But that's limited to terminal only. What I want to ask is do we MANDATORILY need to use delay() or apply_async() to the code too? Will tasks run asynchronously without them?
No, it's not mandatorly As I said you CAN use both, it depends on your need Start with delay() , then when you need and you study more, you will get when to use apply async
Mirco
I haven't used both. Still my task run.
If they are scheduled ones, it's normal they run by themselves based on your schedule The non scheduled ones cannot run without those triggers
Mirco
👍 This is the answer that I wanted. Thank you
The documentation is out there and it's good so read it as much as you can You will find answer to everything 🙂
Rohit
i am stuck in django backend
Rohit
any suggetions for me
Doragonsureiyā
any suggetions for me
Not until you explain your difficulties.
Rohit
i mean login page
Charly
i mean login page
You still need to explain what's the issue
Rohit
i cant handle querry
Charly
i cant handle querry
Still not enough details to help you
Rohit
user authentication
Rohit
error
Maxim
i cant handle querry
we cant help you
Rohit
we cant help you
thanks for your great advice
Virtuos
Hello I search the module to view PDF on django
Charly
user authentication
No code, no full error, no help for you
@
thanks for your great advice
You're supposed to drop screenshot of the error or something boss
etherbeing
Hey people somebody knows why django have not some dotnet features like static fetch with rollback and static + django template syntax... i know about web servers like nginx or apache serves statics so is seems like is not possible but it is, just a little tricky...
Mirco
Hey people somebody knows why django have not some dotnet features like static fetch with rollback and static + django template syntax... i know about web servers like nginx or apache serves statics so is seems like is not possible but it is, just a little tricky...
What's the tricky part ? Serving statics is pretty simple with Django If you don't have a CDN and wanna use ngnix / Apache to serve them, you just have to map your static root as it's the location where Django will copy all statics found in apps or where you define the finders when running the collecstatic command in a prod-like environment
etherbeing
What's the tricky part ? Serving statics is pretty simple with Django If you don't have a CDN and wanna use ngnix / Apache to serve them, you just have to map your static root as it's the location where Django will copy all statics found in apps or where you define the finders when running the collecstatic command in a prod-like environment
😅 what I mean is something is not in django core... is the ability to use django template syntax inside statics, that is not possible right now, for a lot of reasons like django engine doesn't serve statics so it is not able to process those statics into browser readable content, I am asking because I am working in that (with the hope django team will accept that inside the core 😅) but before I want to know if there is something similar...
etherbeing
Sorry about my English skills 😅 seems like I wasn't able to explain myself before...
etherbeing
If someone knows about a way to use django template syntax like for example when working with css in a separated file like... bootstrap.css ... inside something like: {% load custom_tag %} .theme{ background: {% get_defautl_color %} }
etherbeing
And also a way of doing something similar to asp-fallback o asp-rollback I don't remember right now ... that allows you in asp-net to use a cdn but if it is not available use the fallback/rollback value instead...
Knowledge
......
hi
......
dropdown not working
Doragonsureiyā
......
can you help?
Anonymous
i want to make web application that has chat rrom like telegram . Can any one help me ? ANd all chat should be store in db
Anonymous
what about flask? Can i use websocket?
Charly
what about flask? Can i use websocket?
This group is about django exclusively
Doragonsureiyā
can you help?
Not until you explain your difficulties.
......
I put my site in pythonanywhere.com and the dropdown is not working
......
please turn on the picture
Charly
please turn on the picture
No, explain the issue properly or share code/errors using a pasting service (check rule 5)
Charly
can you help?
Not until you explain here properly whats the issue
......
you saw the problem
Charly
you saw the problem
I ignore the DMs
......
i put my website on internet it has a dropdown menu it is working on my localhost but not working on pythonanywhere
......
Why its not working? I mean, what are the symptoms?
js should work when clicked it doesn't work i connected it but it works on localhost
Charly
js should work when clicked it doesn't work i connected it but it works on localhost
So if it's javascript look at the console to see if there are errors, that doesn't seem to be an issue with django
......
https://dagestangroup.pythonanywhere.com/
Charly
site can be viewed
Yes but it doesn't have a drop down menu anywhere
......
navigation menu
Charly
there is
Where?
......
My Profile
Charly
navigation menu
There is only a Sign In and a Sign Up button
Charly
please register first
No I won't, provide a user
......
please register first
......
did it happen
Charly
login
Need a user for that
......
Need a user for that
Username: Sunnatillo Password: Sunnatillo2008
......
did it happen
Charly
did it happen
jQuery failed to load because you requested it with http instead of https
......
how I cry
Charly
how I cry
change the url of jquery to be https
......
axa