Sojs
pleas help me, for decorator and classes, i can pass from first functions in other variable, but when pass self, i get error "BaseProject.project() missing 1 required positional argument: 'accounts_users'" # decorator checking user members in project ot author def checkMember_project(f): """ Using decorator "auth_user", get accounts users Checking member in project or author When we use the "checkingUser_project" decorator, we simultaneously check the user's authorization and participation in the project, whether he is the author of the project """ @auth_user def checkingUser_project(request, accounts_users, id, *args, **kwargs): # code return f(request, accounts_users, id, *args, **kwargs) return checkingUser_project class BaseProject(View): @checkMember_project def project(self, request, accounts_users, id, title): return render(request, 'project.html', {'accounts_users': accounts_users, 'title': title, 'id': id })
Parthiban
Hello everyone, iam completed python programming language, how will be start django framework, anyone can ask me? Plzz🙏
Parthiban
ask what?
Road map on django framework
Maxim
Road map on django framework
the word "ask" does not mean what you think it means
Maxim
Road map on django framework
1. learn 2. practice 3. learn 4. practice
Parthiban
Thank you mr.Maxin
Д.....
I have a page with 5 forms and there is only 1 submit type button which is outside the selector in my template. So when I submit , it writes to the DB 5 times the cleaned_data of the last form. My code - https://stackoverflow.com/questions/76481831/django-why-does-my-view-write-5-times-to-db-the-last-order Thanks!!!
Алексей
hello, can I make a request through my server, which is located on a foreign hosting, to a blocked api for a user in the client?
Dairon
Hello, can anyone share with me a place for find code and django projects from other people, in order to learn from the way others approach to problems ?
Олег
Hello, tell me please. I am writing a backend using django and I need to pass it to the person who writes the frontend and will send requests to my backend. How can I pass the backend to him?
Muflone
Hello, tell me please. I am writing a backend using django and I need to pass it to the person who writes the frontend and will send requests to my backend. How can I pass the backend to him?
you have to create some API endpoints to interact with your backend, this is typically made using DRF and JSON. frontend developers use JS to interact with API using JSON
Muflone
Do I need to load my backend somewhere so that the frontend developer can access it?
of course your backend must be run somewhere, it cannot work from your turned off pc
Олег
Muflone
pythonanywhere if you don't need specific things otherwise you have to rent a vps
Muflone
whatever you prefer
Олег
whatever you prefer
Sorry, but in ngrok the link keeps changing. Do I still need to always hand over the front-end developer?
Олег
Anonymous
Witch is the best playlist to learn the djanjo from YouTube
Prakash
Hi all Please guide me. I have to build a website. I have my code ready in my local and i have taken domain also. What should I do next?
Ravikumar
Hi all , how to implement a many-to-many field as a dual list in Django,
Ravikumar
What's a dual list?
https://www.virtuosoft.eu/code/bootstrap-duallistbox/ This kind of duallistbox
Charly
https://www.virtuosoft.eu/code/bootstrap-duallistbox/ This kind of duallistbox
Thats just an HTML widget how do want to use models for it?
Ravikumar
Charly
i want use it for many to many relation
be mor specific, with examples if possible
Ravikumar
be mor specific, with examples if possible
it is like in django admin page users permitions dual list
Charly
So please be specific on your use case
Ravikumar
ok one to many can you help me
Charly
ok one to many can you help me
No, because you need to be specific on what should be on the listboxes
🥔𝕴𝖒𝖔𝖓🥔
people, is there any way to get the date the query request was sent and put it in a variable. Relatively speaking, the date variable and I want query to save the date of this request into it, and then save it to the database
Nqabeni
Good day, has anyone played with Django HTMX, can't seem to find information on Master detail grid , Django is limited in addressing this requirement
Jatin
Django issue: I’ve an issue accessing request object of api in a custom logger function where I save my logs to -> rabbitMQ and then Elastic for analysis. I need some of the information from request object and a userInfo(I add that key into request object at auth middleware), now when I create log schema I need some of the fields like request body, path , method, user info etc. to create user-specific logs. But I can’t pass request object directly to each function wherever I’m using my logger. Worst case: view -> function1 -> function2 -> function3…and so on. I need to pass request object to this nested chain where I’m logging in function_n. Is there any other way than passing request all through the chain. Wsgi’s get_current_request is deprecated and context processors only server request object in templates. Any luck? Log Schema: <there have been multiple logs in a single api request at any point and of any type <info, error, warn or critical>
Rustamidze
<ul class="thumb"> <li><img src="{% static 'img/thumb1.png' %}" onclick="imgSlider('img/img1.png')"></li> # problem was here <li><img src="{% static 'img/thumb2.png' %}" onclick="imgSlider('img2.png')"></li> # problem was here <li><img src="{% static 'img/thumb3.png' %}" onclick="imgSlider('img3.png')"></li> # problem was here </ul> <ul class="sci"> <li><a href="#"><img src="{% static 'img/facebook.png' %}"></a></li> <li><a href="#"><img src="{% static 'img/twitter.png' %}"></a></li> <li><a href="#"><img src="{% static 'img/instagram.png' %}"></a></li> </ul> </section> <script type="text/javascript"> function imgSlider(anything){ document.querySelector('.starbucks').src = anytging; } Hello guys, I cant understand how on django with template jinja write pls help
Tony
Could you advise some tables plugin? Like excel, with filters for each column
Soham
How to make Single page application in django ? Without using any frontend frameworks like react, next.js and vue?
Sandeep
<ul class="thumb"> <li><img src="{% static 'img/thumb1.png' %}" onclick="imgSlider('img/img1.png')"></li> # problem was here <li><img src="{% static 'img/thumb2.png' %}" onclick="imgSlider('img2.png')"></li> # problem was here <li><img src="{% static 'img/thumb3.png' %}" onclick="imgSlider('img3.png')"></li> # problem was here </ul> <ul class="sci"> <li><a href="#"><img src="{% static 'img/facebook.png' %}"></a></li> <li><a href="#"><img src="{% static 'img/twitter.png' %}"></a></li> <li><a href="#"><img src="{% static 'img/instagram.png' %}"></a></li> </ul> </section> <script type="text/javascript"> function imgSlider(anything){ document.querySelector('.starbucks').src = anytging; } Hello guys, I cant understand how on django with template jinja write pls help
<ul class="thumb"> <li><img src="{{ static('img/thumb1.png') }}" onclick="imgSlider('{{ static('img/img1.png') }}')"></li> <li><img src="{{ static('img/thumb2.png') }}" onclick="imgSlider('{{ static('img/img2.png') }}')"></li> <li><img src="{{ static('img/thumb3.png') }}" onclick="imgSlider('{{ static('img/img3.png') }}')"></li> </ul> <ul class="sci"> <li><a href="#"><img src="{{ static('img/facebook.png') }}"></a></li> <li><a href="#"><img src="{{ static('img/twitter.png') }}"></a></li> <li><a href="#"><img src="{{ static('img/instagram.png') }}"></a></li> </ul> <script type="text/javascript"> function imgSlider(anything) { document.querySelector('.starbucks').src = anything; } </script>
Charly
How to make Single page application in django ? Without using any frontend frameworks like react, next.js and vue?
By doing what these frontend frameworks do with vanilla J's. But that's frontend stuff not Django
Mario
Charly
is it possible do that like in the old times? HTML5-CSS3 and some Js ?
What do you think JavaScript frameworks are built in?
Charly
Just yes or no is enough...
I'm always give more than just the bare minimum 👍
Charly
and pretend to be smart?? sure...
I don't know why you get offended by a simple rationalization
Temirlan
hi everyone, i have a question, can you recommend django books (excluding django docs)?
Charly
hi everyone, i have a question, can you recommend django books (excluding django docs)?
Most of books are outdated why you want to avoid the documentation?
Mario
I don't know why you get offended by a simple rationalization
you don't even understand what you write.. and how you write, bye!
Temirlan
Most of books are outdated why you want to avoid the documentation?
i mean materials other than documentation, for development
Temirlan
But why
just self study
ᅠ ᅠ
Hi everyone. Has anyone created a cookie in the captive portal (ios device)?
Danilo
Hi everyone, how can i test /add/ in django admin? I want to simulate creation of a record via admin
Lucky
Hii guys.. I need create api with mongodb can u guys tell me how to create and do you have any code for api plz share me
I want to be a able to download in a pdf format Can anyone help
Charly
A table
Be more specific, we can't read your mind
Careful
A table
More details about what you want... We cannot help without knowing what you want
Android 1
Hi all I have django setup with daphane for websockets in local server it's working but my company uses iis for hosting, read several post that it is difficult or not possible to connect with iis but those all posts were of 2019
Android 1
Has any one implemented such setup in iis
R..ch
Anybody knows how should I upload my django app using font-end React JS on Cpanel?