Mirco
I want to pass the form data to task.py from view
Call your task into your view by passing what you want
Shekhar
in task.py there is decorator like this @app.task(bind=True,some arg=fatch from form page)
Shekhar
@periodic_task(run_every=(crontab(minute='*/10' #fatch from user form)), name="some_task", ignore_result=True) def some_task():
Mirco
Again, share your full code with code sharing tools
Mirco
We can read better, understand better and edit it
Shekhar
https://pastebin.com/qbYGXnue
Shekhar
is it clear??
Mirco
?
Trials
?
Trials
it's in the group description 🙂
Shekhar
https://pastebin.com/9zeD0zV4
Krunal
Hi I have extended user model with one-to-one field. I can insert extra information with admin login but i want to create combined form which insert data in user table and extra field table.
Shekhar
Expired
any update
Shekhar
u can use meta class and define those extra field
Shekhar
if i understand it right
Marcos
How can I change these fields to the currency format? https://imgur.com/gCUpY0Q https://pastebin.com/0xgQL39f
Mirco
https://pastebin.com/9zeD0zV4
You can call your task inside your view with delay() method
Marcos
I made this page and the values need to be formatted in style 1.234,56
Marcos
My boss does not want me to do it through admin or forms.
Marcos
so it's going to have to be by javascript ,-,
Mirco
I made this page and the values need to be formatted in style 1.234,56
There's a package called django-currency if I don't go wrong that can do the job for ya
Shekhar
You can call your task inside your view with delay() method
how to pass parameters in task decorator??
.
how to pass parameters in task decorator??
your_task.delay(arg1,arg2,arg3 ....)
Mirco
how to pass parameters in task decorator??
Good read And study python decorators 😁
Maz
Anyone written a deploy script in shell or python?
Anonymous
What Paas do you prefer for Django apps?
cj
What Paas do you prefer for Django apps?
paas for apps, sounds funny 🙂
Anonymous
Yes haha. I only know Heraku
Shekhar
c9 is easy
Shekhar
pythoneverywhere
Muflone
Yesterday my pythonanywhere instance has changed the internal IP , resulting in 403 errors in Django app
Muflone
How do you set the settings.py to adapt to internal IP changes?
cj
How do you set the settings.py to adapt to internal IP changes?
you shouldn't rely on IPs, you should rely on domain names
Muflone
I didn't meant the allowed hosts but the machine internal ip
Muflone
My application doesn't allow the use from an internal IP different than the actual used by my PA instance
Shekhar
runserver
Muflone
My instance would only allow the access only from hosts (server, not clients) listed in the whitelist
Trials
looks like this is an 'xy' problem
Muflone
Ops Sorry wrong language
cj
*ahem*... use english only
Muflone
Yep @LeiaM0rgana. Unfortunately my application will check the internal IP that forwarded the request to my application
Muflone
And sometimes PA will change the IP that they use to forward the requests to my application
Muflone
If you protect your application towards weird forwardings you'll suffer on source ip changes.
cj
¯\_(ツ)_/¯
Muflone
Ahahah that's a different solution to a 'xy' problem
Turtle_In_Hurry
Is tgere any group for django rest framework
Turtle_In_Hurry
?
Turtle_In_Hurry
Please share with me
Fermin
Me too
Mirco
Is tgere any group for django rest framework
Don't think so, but you can ask here
Anonymous
Hello
Anonymous
there is a Django chat list?
Anonymous
in other languages?
Rangaraj
I have one queryset of the model and its output header is: Timestamp, Generation,Forecast I have another queryset of the same model and its output header is: Timestamp, Generation,Forecast Now I want to join both the query set With reference to another queryset I.e., from the first queryset it should take timestamp and generation field and another query set it should take forecast field. For comparison it should use time stamp field of both. So the final query set output header should be: Timestamp (from 1st query set), Generation (from 1st query set), Forecast (from 2nd query set)
Rangaraj
How to do it efficiently in django anyone please help me
Rangaraj
Can you please give some example how this will be useful to merge two queryset
Maz
Fabric library
Nah, I mean like a personal custom script...one you wrote yourself
Ajay
STORED VIDEO STREAMING . * One private cloud,in that v r storing videos. * Using a website students can access the videos according to their sem and syllabus. * Website will be a video player for students. * Admin has to manage videos
Ajay
Can anyone help me
Ajay
how to do this
Ajay
What technology I should use
R
Can you please give some example how this will be useful to merge two queryset
https://howchoo.com/g/yzzkodmzzmj/combine-two-querysets-with-different-models
.
What technology I should use
Django as backend, Nginx as proxy/static files server. You can restrict access to the static/media files by using X-Accel-Redirect Don't use Django itself for serving video