Anonymous
I have ecommerce project .When i hosting in pythonanywhere my product not displayed in homepage.pls help
I am working on ecommerce website too I have some problem with my page is not displaying any thing after clicking the target link
.
!res
Doragonsureiyā
Check out PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.
.
Can someone provide me with resources to get started?
sheikh
Any django channel expert here?
Kiran
hi guys I have some questions there is on_delete argument models in django. and there is cascade, set_null and another in on_delete. my question is what is the mean cascade, set_null,.....
Cascade deletes the dependent table if you delete the table that is being used as a foreign key.. Set_null sets the relation to null if you delete the table related as a foreign key.. I'm not sure what "another" does.
Michael the wolf 🐺
Hi , dumb question ...i want to call my backend with javascript from template , but the api has login required decorator.. i dont want to use token or some other stuff..anyway around this ? I couldnt think of any solution
Dev
how to connect firebase datbase django project
Neo
any suggestions on how to implement soft delete wit cascade in django or any better libs for that.
Ranken
Please anyone with some useful books for the django rest framework
Benjamin
Good morning pls I wanted to how to make radio button on django and this is what I have tried
Shubham
Good morning pls I wanted to how to make radio button on django and this is what I have tried
Use django forms CHOICES=[('select1','select 1'), ('select2','select 2')] like = forms.ChoiceField(choices=CHOICES, widget=forms.RadioSelect)
Riddhish
Please anyone with some useful books for the django rest framework
It's official documentation is good for learning DRF
Riddhish
Good morning pls I wanted to how to make radio button on django and this is what I have tried
You can simply use Django's model choice field and on html side radio button no need to use Django's form
Raga
Anyone help me out not able to run my Django server
Raga
django.core.exceptions.ImproperlyConfigured: The included URLconf '<module 'calc.urls' from 'C:\\Users\\asus\\projects\\raga\\calc\\urls.py'>' does not appear to have any patterns in it. If you see valid patterns in the file then the issue is probably caused by a circular import.
Macurrent
most tutorials teaching django don't use generic views lol
Anonymous
Can i pickle it?
✙Yaroslav
hi, how to apply new migration file on prod server?
Complex_101
Hey I have a django form that updates a users profile. So when I update the profile , I want the form fields to be already filled up with the previous values and then edit them. I tried using initial keyword in forms.py but it is returning the object rather than the value. can anyone tell how to do this?
Shubham
Will I make migrations
No I don't think so, since it's inside the forms
Rinta
Anyone help me in python django interview questions. Pls
Ranken
It's official documentation is good for learning DRF
I actually need like a pdf version of it or something
Deleted
https://stackoverflow.com/questions/67859036/uncaught-in-promise-syntaxerror-unexpected-end-of-json-input-for-json-data-pr error occurs when processing JSON data sent by Django
John
Hey guys can we show related products using the recently searched products in Django in an e commerce website
John
Can anyone help me out with this
Complex_101
Previous values ?? Do forms objects not saving while submitting ?
It is saving on submitting, I meant the values I submitted earlier should come up in the fields
Complex_101
You have to pass user instance in form
Umm creating a view? Or something else?
Complex_101
You should pass an instance to your form
Can you share the code or how to do it?
HEISENBERG
Can you share the code or how to do it?
form = YourForm(request.POST , instance=object)
HEISENBERG
Does anyone have any idea on this ?
Do you have any field for differentiating products
Shubham
Hello guys Does anyone know how to host django website on Hostinger?
Есбол
Hello guys Does anyone know how to host django website on Hostinger?
https://support.hostinger.com/en/articles/1583678-can-django-be-installed-here
Shubham
Anonymous
Hi All, I came across a platform last month which helped me to shortlist evaluated candidates to refer for the job roles in my company. I loved it as I was able to refer evaluated candidates to my HR instead of referring random forks. You must check it out refer-me.netlify.com
mansour
I have a Jason file how to build an url based on an object example: [{"name" : "John" , "age" : "30"},{"name" : "david" , "age" : "45"}] examplple .com/<name>
Dev
pyrebase
Send me any project bro
Anonymous
Send me any project bro
I think you should search on google or github
Dev
ok
Henil
Hii All, I have a problem in CSS... When I have changed debug False in production at that time....my project has dropped CSS and images....so how can I solve this problem??
Abhishek
python manage.py collectstatic
Abhishek
python manage.py collectstatic
Henil type this command
Devils Servant
Hi guys, not sure that it's the right place to ask such question, but it's related to Django
Devils Servant
So, I'm deploying my app, not many users rn, but in future there will be a lot, maybe 2000 requests/per second
Genemator
So..
Devils Servant
At first I tried heroku, liked it quite a lot fast and simple, now I'm trying to set up Dokku on AWC EC2(not much success achieved yet xD) So, can you suggest the best way for production deployment, first big project
Devils Servant
What issues u r currently facing?
well, I do everything from guide https://dokku.com/, everything installed successfully(no errors at least), then I proceed to EC2 instance public IP to finish the configuration, but it simply doesn't load
Devils Servant
It is not working even with single user?
The problem is that in official guide it says that I have to proceed to public ip to finish Dokku's configuration
Macurrent
In django generic views, is it possible to use listview more than once??
Macurrent
class BlogListView(ListView): model = Post template_name = "blog/blog_details.html" class DetailView(DetailView): model = Post template_name = "blog/post_detail.html" class PostListView(ListView): queryset = Post.published.all() context_object_name = 'posts' paginate_by = 3 template_name = 'blog/list.html when i use this, it brings me errors though. But i was just asking if it's possible to use more than one listview and the rest views like i have used here
Genemator
guys, im learning django. Could you recommend me videos or books?
georges
I need some help with django and chart js
georges
I have the following class view:
georges
class ChartAbProgress(APIView): authentication_classes = [] permission_classes = [] model = Project def get(self, request, format=None): labels = ['SPENT', 'REMAINING'] chartLabel = "AB DRAWINGS" chartdata = [] queryset = Project.objects.order_by('-project_number')[:5] for project in queryset: chartdata.append(project.progress_abdrawings) chartdata.append(project.abdrawings_remaining) abProgData = { "labels":labels, "chartLabel":chartLabel, "chartdata":chartdata, } return Response(abProgData)
georges
it iterates through objects and returns data from all objects (quite obvious)
georges
but I need it to only return data from the current object
georges
I mean the current Project I'm visualizing in browser
georges
is there a way to apply a filter?
Vamshi
Cannot import name 'view' from 'django.views.generic'
Vamshi
Any please say.. How to over come this...