Sai
In models meta
Doragonsureiyā
Manish
Sai
Yw
Manish
'PATH' OR 'URL' IN 'URLS.PY' FILE.. WHICH IS MORE SAFE .. ?
Manish
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?
Sai
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
Héctor
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 ?
Bunty chhatri wala..
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
Sumit
Has anyone worked on django-ace? I want to integrate python code editor to my html pages. Need help.
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
Omair
Omair
Anonymous
Krunal
How to handle multiple file upload in Django
Krunal
I am getting last file name only
sammy
https://pastebin.pl/view/8227f8a0
sammy
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
aleks-th
Anonymous
Alright, I'll check out
Anonymous
Anonymous
Anonymous
Anonymous
aleks-th
Yeah
Do you have windows ?
Anonymous
How to make project without using django administration
George
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
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
my
Anonymous
Any one have a knowledge about rest api for django
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
cj
so check the method you're using on your HTML form
Brandon
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 **
Mirco