Hello! I am an industrial engineering student and I am developing a small project with a Gantt chart. I am …
I have this dropdown that filter the year of a documents it is working fine but i want to use …
Hello everyone, i was creating api for comments in django and i submit comment then i got runtime error and …
please can anyone solve the issue. It stopped installing process after sometimes.
I posted it before but accidently …
Anyone can help me with ajax. I'm making a form and getting data from backend but my ajax is not …
Currently I am connecting 2 service via search_path and using inspectdb. I wonder if there;s a way like using a …
Hi developers, could somebody advise me how to create on-click editable table in web application in Django? I am using …
How do you foreign key an API? Like for Microservices in Django
1. Do I need to make a model …
Hai Guys, so i am using django and react. Now i need to display a search box in page-2, which …
I have 3 separate django projects and they share the same database.
1. I create a abstractuser model and everytime …
I am creating to get data from django model to excel sheet,while doing so I am getting all the data …
I am creating to get data from django model to excel sheet,while doing so I am getting all the data …
i am having a problem uploading files to my server (shareserver) in cpanel.
when I upload a file either by …
I relly want to know how to send emails from django admin panel...
Like i want to send emails to …
Waiter Task Model
'''
class WaiterTasks(models.Model):
task_id = models.AutoField(primary_key=True)
admin = models.ForeignKey(Admins, models.DO_NOTHING, blank=True, null=True)
…
i want to add currency converter to my E-Commerce website. how can i do like this?
ajax code
<button>Load Data</button>
<hr>
<script>
$(document).ready(function(){
$("button").click(function(){
$.ajax({
url: "loadtabledata",
type: "GET", //send it through get method
data: { …
I'm trying to create a json packet like the one in the first picture. What I'm getting is what's in …
I am using my custom login func. when i find the specific user whose id pass is correct i want …
Status_choices=(('True'),('False'))
Status = forms.ChoiceField(widget=forms.Select, choices=Status_choices)
in forms.py
what is difference between object and instance? any one give me some clarification with exampke.
Hi Teckiys,
I have created a newsletter app to send emails to subscribers. After adding a new newsletter and setting …
Views.py
def updatetable(request):
if request.method == 'GET' :
post_id = p_board_detail.objects.filter(board_year_id= year_id)
return HttpResponse("post_id")
I am creating an api for post to add a record into my table but the problem is that i …
Getting bellow error
InvalidRequestError at /cart/checkout/
Request req_SMZSaDduY9pgEX: Invalid string: { "addre...d": null }; must be at most 500 characters …
i have used on delete cascade and on update cascade in my database i.e, mysql. i am using django version …
i need to know if i can login more than one user in the same time because when i login …
def update(request,id):
user=Login.objects.get(id=id)
print(user.user_id)
print(user.user_pass)
form=LoginForm(request.POST)
if form.is_valid():
print("Form is valid.")
…
Hi, I want to create a website visitors counter where it shows on the website how many users visits the website. …
i am trying to update a record from mysql database. Following is my update func.
def update(request,id):
user=Login.objects.get(id=id)
…
Helloo Teckiys,
I am trying to fix the add to cart and single item remove from the cart and I …
After connecting my django project with mysql localhost database i had created an app after that run the command python …
Hi Good day Team,
I'm begginer and currently developing an eCommerce project.
I have found a tutorial on add/remove to cart …
I have a mode in which two fields one is Name and other is Image.
I upload image by the …
I am trying to link each comment to a post and to a username
I have proceeded with the logic …
I have a problem with the variations and the quantity related to it in the order summary page.
This is …
System check identified no issues (0 silenced).
May 28, 2020 - 13:23:50
Django version 3.0.6, using settings 'ecommerce.settings'
Starting development …
I wanted to add a comment section but i got a post() missing 1 required positional argument: 'post_id' ` error
class …
class TokenView(ListView):
template_name = 'home.html'
queryset = Token.objects.filter(approved='Y')
Please help me on this
I am adding a comment section for my posts, the issue is after submitting it leads to HTTP ERROR 405 …
Hi there,
Thanks to you we have found a solution for moving from PK to slug in the detailed view …
I am trying to switch from writing the id:pk of the blog to writing a function to add the post …
when i create the object manager in model its not rendering properly
Hi again friends,
The total_likes have been hashtagged/commented in the LikeView.
The count is working perfectly in the admin and …
Actually, i am trying to pass the data to template in Detail view. But its not working. What is the …
I am trying to add a like button using Ajax and & Jquery in Like Button but I keep getting the …
How to hide AWS S3 URL from front end?