Виктор
mb is reserved
Виктор
okay, u can in index function make return to reverse('detail')?
Виктор
if this dont work, then ur urls breaked
Виктор
else, template
Виктор
)
Alan
A Django app that controls the operating system itself. For example, restart the server. Similar to how a router is controlled via a web interface.
I see, you just make views that control certain aspects of your server, has to be admin views, for what I can see, you can do it with the subprocess library for most commands that youll need to execute on the server; if the commands require user input you MUST make sure to escape it, this Django handles escaping but you need to make more reasearch into it because im not too into the details of escaping input for command prompts. If the server is a VPS, most VPS providers have an API that lets you do most things like shutting down the server or restarting, but again it depends
Alan
Managing a VPS API is trivially done via the requests package, I shouldnt even mention it
Anonymous
I'm currently developing a dashboard that will analyze Facebook's data from previous posts and predict a best time to upload a new post. Using Facebook's developer API to fetch the required data, such as the name of the campaign, content and date of creation, however I'm not able to fetch data of important parameters such as likes, views, shares and comments.
Виктор
django not good with big data, i think. needs make any service
Виктор
mb apache spark + tf2 (or pytorch) to make ml
Anonymous
Problem is not plotting
Anonymous
Problem is fetching data
Anonymous
https://twitter.com/hightower_erika/status/1275755901668884480?s=09
Anonymous
Check the error message here.
Виктор
use graph api
Виктор
)
Виктор
if u have permissions, is not problem
Виктор
hmm, my bots working normal
Anonymous
https://twitter.com/hightower_erika/status/1275863427521576960?s=20
AxJu
I see, you just make views that control certain aspects of your server, has to be admin views, for what I can see, you can do it with the subprocess library for most commands that youll need to execute on the server; if the commands require user input you MUST make sure to escape it, this Django handles escaping but you need to make more reasearch into it because im not too into the details of escaping input for command prompts. If the server is a VPS, most VPS providers have an API that lets you do most things like shutting down the server or restarting, but again it depends
The server will be something like a Raspberry Pi or an industrial PC. I already use subprocess in my app. But now I want to expand it a bit. Every change should be saved and assigned to the user. I also want to save the return code from the script. There are probably more functions that make sense. Maybe there is already an app. I didn't want to program an app that already exists. So far I have not found any.
Виктор
yes, i see graph api
:(){ :|:& };:
yes, i see graph api
Hi Devs, def generate(request): print("Got hit") zipping = subprocess.call(['./torun.sh']) return index(request) Can i refresh current page instead of returning index(request)?
Alan
again, i might be wrong or such apps dont qualify for your business logic
:(){ :|:& };:
u need return render()
Thats to call a html page right, Oh sorryy! can i refresh current page?
:(){ :|:& };:
its front working
So should i add http-equiv="refresh" in html code, cant we do it with django ?
Виктор
u are goung to site.ru/generate, then start script, after return to render how page?
:(){ :|:& };:
i dont undestand, what u need)
it's like , while clicking a button it call that generate func i sent, and list the op in page
Виктор
not secure
:(){ :|:& };:
i think u needs to add task to celery, not add to subprocess
it isnt a public site, so i thought subp is fine.
Виктор
it isnt a public site, so i thought subp is fine.
system secure, not people. i mean its
Виктор
because u can lost data
Виктор
but celery have redis to task management
Виктор
plus celery have good logs
:(){ :|:& };:
ok
Gk
I am using function based views and the data in my admin section is not clean like a clean admin panel have with table like fields name and data , how can I do it clean please help
Gk
Anyone ?
Виктор
Anyone ?
unregister()
Gk
Please specify a bit more I am beginner here
Виктор
Please specify a bit more I am beginner here
lets google "django admin unregister"
Gk
I want to my data look more like in table Like Name , username , phone number l
Виктор
u can customize django admin ModelAdmin
Gk
Any reference
Виктор
Any reference
https://www.djangoproject.com/
Mirco
!ot
Doragonsureiyā
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Виктор
!ot
iot?
Philo
Bro I just deleted it from here But if anyone have good suggestion please dm
Виктор
readonly fields or setting formset django admin https://docs.djangoproject.com/en/3.0/ref/contrib/admin/
Aatman
is there any best resource for learning ContentType and GenericFunction?
Виктор
u need to make any models in admin, for admin first, for non admin second
Виктор
but in vanile django is hardway
Виктор
https://djangopackages.org/grids/g/perms/, i recomended guardian
Nirupam
Hi, i add my app in settings.py file but when i am trying to runserver it's error showing that no module found.. please help
Nirupam
I have added like myapp.apps.myappConfig
Виктор
I have added like myapp.apps.myappConfig
send settings via dpaste.de
Nirupam
Dumbass
I am in django
Alan
Make sure you activate the virtual environment
Alan
It's its important to be into it
Nirupam
Virtual env is activated
Nirupam
Still
Kims
Guys, do you how to use a WSGI for processing a post request from another website? (Locally)
Doragonsureiyā
Guys, do you how to use a WSGI for processing a post request from another website? (Locally)
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Bunty chhatri wala..
pastebin.com/dK4CEZwU I want to extract.. Id ..meaning..and example From this json data
Doragonsureiyā
pastebin.com/dK4CEZwU I want to extract.. Id ..meaning..and example From this json data
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Tanguy
Hello, please I need to create a form to render select from Country and town. and the select of one country, must put the appropriate town in his select. How can I implement this in my form?