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
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?
cj
I want to learn angular with django how should I start?
start learning django itself, and angular itself, later, when you know how each of them works independently, you will realize how to make them both work together
Prateek
if you're just starting to learn a front-end library, I recommend you to go for VueJS instead
Actually I have started doing job ...and the requirement is of django and angular
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
#
Ive created two apps and I want to set Foreignkey of one app to another
So connect their model through Foreignkey fields. But u shall see Django model docs
坂田銀時
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
Anonymous
You wanna use this kind of auth with Django ?
No, just I have to login to my insta account through python.
Mirco
Mirco
Thanks 😊
Anonymous
Thanks 😊
Thanks sir
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'
Alex
I made Post as a fk
Solved your issue or still debugging?
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
Ghorz
Extends is not working
What extends, show your code using
Raph
guys, im getting an error when trying to install django[argon2], bcrypt and pillow
Raph
does anyone know why? =x
Anonymous
guys, im getting an error when trying to install django[argon2], bcrypt and pillow
Without seeing the error message, we can't give a solution to your problem. :) Send the error message as a link of online pasting service like hasteb.in, del.dog, pastebin.com .
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
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
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.
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)?
Martín
- I usually use the cli from the framework of choice except for the flask projects - I create the folder with cookiecutter - I just open the project folder created by django-cli - local first and push
just to clarify, I understand the framework here is django so you: 1) Create a django project with django 2) Use cookiecutter-django *in the previously created* folder 3) Then create the repo (git in my case) right?
Yuri
It's very easy to setup the remote repository on pycharm
Hari
Is there any one in Hyderabad? Real time helper for python
Anonymous
I want be expert in django from beginners to expert
Anonymous
Any help me with any best course to learn