Виктор
mb is reserved
Anonymous
Виктор
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
Виктор
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
Alan
again, i might be wrong or such apps dont qualify for your business logic
Виктор
Виктор
:(){ :|:& };:
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?
Виктор
Виктор
not secure
:(){ :|:& };:
Виктор
Виктор
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 ?
Виктор
Gk
Please specify a bit more I am beginner here
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
Mirco
!ot
Doragonsureiyā
Looks like you need an offtopic group, please continue this conversation at @pythonofftopic as it's not related to Python
Виктор
Mirco
Philo
Bro I just deleted it from here
But if anyone have good suggestion please dm
Mirco
Виктор
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
Anonymous
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
Виктор
Alan
Nirupam
Alan
Make sure you activate the virtual environment
Alan
It's its important to be into it
Nirupam
Virtual env is activated
Nirupam
Still
Anonymous
Mirco
Gil
Kims
Guys, do you how to use a WSGI for processing a post request from another website? (Locally)
Mirco
Bunty chhatri wala..
pastebin.com/dK4CEZwU
I want to extract..
Id ..meaning..and example
From this json data
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?