Sai
In models meta
Doragonsureiyā
Django has more opportunities...
What are you talking about?
Manish
You can use db_table
db_table = "mytbl" In meta
Sai
Yw
Manish
'PATH' OR 'URL' IN 'URLS.PY' FILE.. WHICH IS MORE SAFE .. ?
cj
'PATH' OR 'URL' IN 'URLS.PY' FILE.. WHICH IS MORE SAFE .. ?
go read https://docs.djangoproject.com/en/dev/topics/http/urls/ to know the difference between them and stop screaming
Manish
go read https://docs.djangoproject.com/en/dev/topics/http/urls/ to know the difference between them and stop screaming
Yes. .. i know it... but why i join this group.. Everything available in documentation... then why join this group..
Doragonsureiyā
Yes. .. i know it... but why i join this group.. Everything available in documentation... then why join this group..
This group is to help you on specific issues you have on YOUR code, so you have to show the code you wrote and explain where and why you are stuck... as simple as that
cj
Yes. .. i know it... but why i join this group.. Everything available in documentation... then why join this group..
read that ☝🏻 and if you don't know why you joined this group, you're free to leave the group silently 🤷🏻‍♂️
Sai
What are you talking about?
Django has more job opportunities to oodo
cj
Django has more job opportunities to oodo
the OP didn't talk about job opportunities, he asked for an specific use case for an specific type of website, that's why he got an specific answer on what to use for that tasks, talking about more opportunities or job things are not involved on that conversation thread, why are you mixing things? why?
aleks-th
What about Laravel?
Better as said above for these purposes Odoo is suitable. A lot of what you have to do from scratch, even in Django, or Laravel, will work in Odoo out of the box. Although if you have the resources, budget, and time, then any of these tools will suit your goals. ---
TM
How can I make a banking system using postgres and Django All I have to show is Transaction occurred
Herman
Hello guy Please I wanted to redirect user to same page in my app When form is valid Problem is that url is localhost:8000/blog/show/8 and required parameters.... please how can we do?? Because when I tried redirect() django said that is not valid url please need help!
Ashutosh
Use return redirect(reverse("view name"))
Ashutosh
And don't forget to pass params for show_pk
Anonymous
guys logout api will get or post or delete or put ??
Fabian
i think get or post should work
bikrant
What is the full stack for django? Like there is MEAN and MERN
R.U.S.H.A.B.H
Web scrapping can be possible for Amazon website ?
R.U.S.H.A.B.H
Through django...
HA
Guys, open source organizations which use python for web ?
Michael the wolf 🐺
Anyone good at flask admin? Is there any way to display columns of different tables in same thing. I should be able to edit the details too If there is similar implementation in django , it could help too
Anonymous
https://www.valentinog.com/blog/oauth2/ Can help u
can i do it without social authentications like google? user authentication just with my api?
Sumit
Has anyone worked on django-ace? I want to integrate python code editor to my html pages. Need help.
Mirco
can i do it without social authentications like google? user authentication just with my api?
Obviously, the article talks about django-oauth-toolkit package and you can build your own authorization server Or you can just setup JWT auth , there a bunch of packages for it
sammy
from django.db import models from stock.models import product sales.py class sale(models.Model): buyer = models.CharField(max_length=30) item = models.ForeignKey(product,related_name='products',on_delete=models.CASCADE) available = models.BooleanField(default=True) phone=models.PositiveIntegerField() orderno=models.PositiveIntegerField() email=models.EmailField() stock models.py class product(models.Model): category = models.ForeignKey(Category,related_name='products',on_delete=models.CASCADE) name = models.CharField(max_length = 200) description = models.TextField(blank=True) storelocation = models.CharField(max_length = 200, blank =True) quantity = models.PositiveIntegerField() how does one access a single model field from another model like quantity in stock to sales any suggestion will be appreciated
Krunal
How to handle multiple file upload in Django
Krunal
I am getting last file name only
sammy
https://pastebin.pl/view/8227f8a0
Mirco
I am getting last file name only
There are lots of examples online
Anonymous
I'm unable to create a project in django When i typed "django - admin startproject mysite" It is saying "it is not recognised as an internal or external command, operable program or batch file."
Anonymous
I think u didnt install django
Anonymous
Alright, I'll check out
Anonymous
python -m django --version Check if it is installed
I got django version 3.0.3 as a response
aleks-th
But this is the problem
django-admin startproject mysite Maybe in this ?
aleks-th
Yeah
Do you have windows ?
Anonymous
How to make project without using django administration
Anonymous
For basic knowledge
Anonymous
How it's work
Rizki
Easy .. https://github.com/rnevius/minimal-django/blob/master/minimal.py
Tridip
Guys, which topics I need to focus in Django rest framework for industry level projects from development to production??
Krunal
I want to show pdf file from media folder on half of the page. How can I do that? I have created URL and as soon as I click the URL link for media the pad file get open on full page. I don't want to display it on full page
my
Hy I have a problem. In my project. Only some picture are loading. Other text and images are not loding. (also if I use the template preloader then stuck on that preloader). All my static files are correct
Anonymous
Hey ! Please help me I'm getting ( Incorrect AES Key length (20 bytes) error )
Anonymous
How to fix this issue
Anonymous
Whenever i write( from Crypto.Cipher import AES )
Anonymous
In Django
Anonymous
Whenever i write( from Crypto.Cipher import AES )
There must be some issue with padding
Doragonsureiyā
Hey ! Please help me I'm getting ( Incorrect AES Key length (20 bytes) error )
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Anonymous
Any one have a knowledge about rest api for django
Doragonsureiyā
Any one have a knowledge about rest api for django
Are you looking for Django REST Framework documentation? Here you have it: https://www.django-rest-framework.org/
Rangarajan
Hi, I'm trying to create a my own Author model for my blog which will be completely different from the normal user and super user. My question is how can I log in the Author like we did for user using login(request,user) and also how can I check if an Author is logged in or not. It will be really helpful if anyone answer this question.Thank you in advance!
Rizki
@LAbef you need custom user model ..
Brandon
Hello, Please i get one error in Django 2.1.5 Method Not Allowed ? What mean this error
Doragonsureiyā
Hello, Please i get one error in Django 2.1.5 Method Not Allowed ? What mean this error
Please provide a full explanation including all the details that you consider relevant. Your statement is too broad and there is no clear way to answer you, you have to explain: - what you're doing - what you're expecting - what you're using - where you're running the script - what Python version you're using - what packages and their versions you're using - and the most important thing: show the code YOU wrote (read rule 5️⃣ for that) and more details, that way your chances to get help will increase
Brandon
I want to use the class UpdateView from the Class Based View , after i finish the update and submit the form i get the error Http 405 Method not allowed below the Update inherit class
Brandon
class ArticleUpdateView(UpdateView): template_name = "articles/article_create.html" form_class = ArticleModelForm queryset = Article.objects.all() success_url = "/" def get_object(self): id_ = self.kwargs.get("id") return get_object_or_404(Article , id=id_) def form_valid(self,form): print(form.cleaned_data) return super().form_valid(form)
cj
so check the method you're using on your HTML form
Suraj Rajput
when i run command: python manage.py createsuperuser then ifound some errors ERRORS: <class 'todo.admin.TodoAdmin'>: (admin.E108) The value of 'list_display[2]' refers to 'completed', which is not a callable, an attribute of 'TodoAdmin', or an attribute or method on 'todo.Todo'.
The mint of Linux **
There are lots of examples online
not for multiple image via user in django
Mirco
not for multiple image via user in django
https://docs.djangoproject.com/en/3.1/topics/http/file-uploads/#uploading-multiple-files Django docs