Muflone
<a href="yourpage?querystring">text</a>
Muflone
HTML basic concepts
R.U.S.H.A.B.H
<a href="yourpage?querystring">text</a>
Then I had used class in views.py so it'll not come there
Anonymous
Any Python/Django experts in Bangalore ?
Mirco
Any Python/Django experts in Bangalore ?
Ask your question, this isn't a job platform or freelancers search engine
Hjk
<button onclick = "abc.py" > run</button>
Hjk
<button onclick = "abc.py" > run</button>
So how to run python script with html button
Muflone
Hjk
But there is not ant code to run python script with html buttom
Hjk
Button
Hjk
How to do that
Hjk
Plz help me
Muflone
your browser knows nothing about python, it cannot run a python source you have to learn HTML basic and then develop a Django project if you want to use Django
Hjk
I have done all i know urls.py , views.py, models.py well.. bt i want to run python script with html button
Hjk
Help me brother
Anonymous
Def post :
Hjk
http://yourserver/yoururl, not abc.py
Yes bro i hve added the full path of that py file
Hjk
But do i need to add javascriot to run py file ???
Hjk
Write your code in post method
Thnx bro bt can u explain more
Muflone
But do i need to add javascriot to run py file ???
there's nothing to explain. you call the page, the page is executed.
Hjk
Dear admin plz allow us to upload images that we can show our problem
Mirco
Dear admin plz allow us to upload images that we can show our problem
You have pastebin or similar tools to share your code
Mirco
And you can use image sharing tools
Mirco
So you need to read our rules before writing or asking something to admins
Muflone
Python script how to run..
by calling your django page you execute the code that's behind it
Mirco
Could u stop typing this stuff otherwise the exit door is near for u
Mirco
The same for u
Anonymous
Thnx bro bt can u explain more
Button method =post. In html Def post : in damgo(py)
Mirco
Telegram allows you to edit the same message, you know that ?
Anonymous
Hi
Anonymous
I need a project work with django 3.
Nikita
I want to add all subject marks extracted.. to a variable(like s= s+marks) in my html file and .then just display total marks....how to do that
Vitaliy
R.U.S.H.A.B.H
I want to add all subject marks extracted.. to a variable(like s= s+marks) in my html file and .then just display total marks....how to do that
Try exporting variables in different variable with return statment and perform addition in html file
KP
In our group any body working as django developer in pune location.
Stump Lowell
Please can anyone help me out Am using celery to handle my django task And I have a two task Task1 and task2 Have successful ran task1 as a periodic task runs every 5mins. My problem now is to add task2 in the queue so after task1 runs, task 2follows periodically
Prasta
Assalamu alaikum. Any good tutorial for TDD(test development driven)
Waalaikumsalam... you could check one of free article in real python
Deepak
I created some users and i want those users access some of the pages of my django templates
Deepak
How can i do it
Deepak
Somebody help
Deepak
by default they can access templates right?
Yes those users can access all pages
ɱσσɳ
you can change privileges of the user, as admin or super user
ɱσσɳ
I think, you want to restrict users to access certain templates, am I right
Deepak
ɱσσɳ
Yes..
I also want to know about that
Deepak
I am struggling for this problem for a long time
Дауран
I also want to know about that
Let me know , are you a girl ?
Дауран
Deepak
Same problem I am facing brother
If anyone know this solution
Mirco
I created some users and i want those users access some of the pages of my django templates
Put users into a Group and then filter by that group to give access to the view that renders the template
Deepak
Put users into a Group and then filter by that group to give access to the view that renders the template
What should i do in template then i am using class based view listview in my template
Mirco
What should i do in template then i am using class based view listview in my template
You should handle permissions into the view not into the template
Mirco
The logic goes into the view
Deepak
The logic goes into the view
class ModelNameList(ListView): model=modelname template_name='template name'
Deepak
Then what logic should i use here?
Mirco
Mirco
For example you can give access to the get() that will render the template etc etc only if the user belongs to specific group
Mirco
And those permissions works on models
The groups will be saved into the database Django adds automatically this table when you start your project and migrate the first time
Mirco
Could u give me some link to use as a reference
Study how class based views works into official docs Then study Groups and Permissions
Mirco
At the end you will be able to link all the things together
Deepak
Ok...
Deepak
I will see that
Mirco
Ok...
Without studying, it's a waste of time
Deepak
Thanks bro