Mirco
professor
Mirco
If you have a form, for sure you will need to define a post method or check if the request.method is POST to write your logic and do what you need
Mirco
And you need also the get to show the form into your template
Mirco
But if you study, you will know there are some specific generic CBVs for lots of useful common scenario
professor
So , forms(htmls) , and other kind of making requests to html / database is the correct form instead of calling it everything even for a simple error handler msgs
Mirco
professor
example login , signup , notifications , and file upload . I think are the common things for calling method request
Mirco
Yup, but you will see that with generic CBVs Django provides you , there's no need to write some boilerplate code
For example some common things are already covered by the parent class and you don't need to reinvent the wheel, check method request and so on
professor
I mostly use POST for friendly uris , so this case is post() or CBVs or FBVs , but are they good only for forms ? I know the rest is the same as python without framework
Prateek
I want to learn angular with django how should I start?
Anonymous
Ghorz
John
cj
Prateek
Yuri
Yuri
I went from 0 knowledge of JavaScript to delivering entire sprints in a month
Anonymous
I have one question
Anonymous
Ive created two apps and I want to set Foreignkey of one app to another
#
坂田銀時
Anonymous
Anonymous
And why am I not able to post screenshot in this group ???
#
Anonymous
Hey guys,
I need guidence on creating new postgresql connector pygresql for django, as Psycopg2 have licensing issues in my company
Dharmendra
Is there anyone have real world project link that is using django rest framework?
Master
Define "real world project".
Alek
Could you please recommend existing django applications(modules) intended to prevent scraping(crawling) of website?
I have found this:
https://github.com/litchfield/django-sentinel (but it seems too old)
and https://djangopackages.org/grids/g/anti-spam/ (it's more about antispam)
I am seeking for application that is able to analyze user behavior and block web-scrapers.
Anonymous
Can I use InstaPy module to login to insta through Python... Just for insta authentication
Mirco
Mirco
Anonymous
Mirco
Thanks 😊
Anonymous
Muflone
I have a model called Host and another model called CustomFields with a FK on the Host.
How can I get all the Hosts plus (if available) a column with a value from the custom fields?
I cannot express the thing using a single queryset with annotate
Muflone
I'd like to have a list of all the hosts and in a separated column the custom field if existing.
In SQL I'd use
Select hosts.*, custom.value
From hosts
Left join custom
On custom.host_id = hosts.id
And custom.name = 'something'
Dm 🍍 tryrt🍍mDm 🍍 tryrt🍍mD
Hi experts, could anyone suggest good tutorial or method to implement user to user chat in Django? Currently playing with channels.
A
Extends is not working
A
What are the cause how can i debug
Raph
guys, im getting an error when trying to install django[argon2], bcrypt and pillow
Raph
does anyone know why? =x
Raph
Raph
Raph
https://hasteb.in/aqosemet.nginx for bcrypt
Raph
https://hasteb.in/sixigoze.nginx for django[argon2]
Mahmoud
I need a quizzes sites design
Jimmies San
Mahmoud
I need money
I look for sites inspire me to something like this i wil make it for a faculty project not to sell it
Jimmies San
R
Marvin
I have something to share, it may benefit a few though, no offence.
A while ago, I complained about Javascript then some introduced me to Transcrypt, (I can't remember who but thanks and God bless).
Conveerts python to pure JS code.
The documentation wasn't friendly so I abandoned it, this yesterday I encountered some Jquery issues, as I tried to search online, Transcript was still open in a tab in my browser, I had a quick look at it, in no time, I began to write python, transpire to pure JS, ran it on the browser, Awesome.
This could even be integrated into Django.
Whoever referred me to Transcrypt in this group, God Bless You. Thanks again. 🙏
Wait....what!....Hadn't heard of that before....Definately going there
Lugano
Hi guys
Is there a way to login in django with only a certain registration number and a password.
If its there how can i do it?
Ghorz
Ghorz
Lugano
Thanks.
Marvin
John
Hello guys, am I allowed to post or share my question here in stackoverflow?. . Thanks! really need an answer for this one.
Aemie
Prosto
Hello djangers! hope you have no crashes) I got no crashes but have a question. I need to 2 dates field in my project. start_date and end_date. With start_date there is no problems. But can i somehow make something like end_date = start_date + 1_clanedar_year?
Prosto
Here is link for my models.py
Prosto
http://codepad.org/HSNcJYiO
Master
Easy way - override save() method for calculation end_date.
Денис
Hello,
have a problem at this. https://pastebin.com/JZ869hy9
With these models.py, I create objects through admin panel. And when I click save on an Order object, the overridden save() method is called, I see it in the logs.
But... save() method doesn't see any Proposal or Payment objects in the DB on first execution. Altough I can see them if I open this object's admin page, they are successfully created and more than that, clicking Save now successfully updates payment sum and payment paid fields.
Why aren't related objects created on super().save() ? How to save them manuall? Is it a lazy process?
Денис
I can see that in the Order's save() method proposals.all() is zero length, but it would be sure more than 0 if the related objects would be saved correctly to db.
Martín
for those of you who use pycharm and cookiecutter
· how do you usually start a new project?
· do you start a new project in pycharm first and then use cookiecutter on the project's folder?
· in pycharm do you select to start a new django project or a pure python one?
· when and how do you add the repository (remote first and you pull or local first and you push)?
Yuri
Yuri
Yuri
It's very easy to setup the remote repository on pycharm
Hari
Is there any one in Hyderabad?
Real time helper for python
Martín
Anonymous
I want be expert in django from beginners to expert
Anonymous
Any help me with any best course to learn