Anonymous
object maybe a reserved keyword
Its working but the page is not redirecting
Anonymous
object = Patient.objects.get(pk=pk) object.delete() return render(request,"pages/patients.html")
S Sidharth
Anonymous
its struck on http://127.0.0.1:8000/remove/35
Aneesh
<a href ="{%url 'index'%}">Home</a>
Aneesh
In the urlpatterns the name given is also index
Sheshadri
return HttpResponseRedirect('/patients/')
Sheshadri
Anonymous
return HttpResponseRedirect('/patients/')
Its working like charm ,thanks..can You explain why I was facing error
Aneesh
          <li class="breadcrumb-item">             <a href="{% url 'index' %}">               <i class="fas fa-home"></i> Home</a>           </li> urlpatterns=[     path('', views.index, name='index'),     path('about', views.about, name='about'
Aneesh
This is the code
akbarov
Hello guys! Maybe anyone create telegram bot on Django?
Aneesh
It is not going to that page
Sheshadri
what is there in your views.index function?
Sheshadri
https://pastebin.com/
Aneesh
from django.shortcuts import render from django.http import HttpResponse def index(request):     return render(request,'pages/index.html') def about(request):     return render(request,'pages/about.html')
Aneesh
If I type on the top 8000/about it direct successful
S Sidharth
          <li class="breadcrumb-item">             <a href="{% url 'index' %}">               <i class="fas fa-home"></i> Home</a>           </li> urlpatterns=[   path(' ', views.index, name='index'),     path('about', views.about, name='about'
S Sidharth
Have u put the spaces in between?
Aneesh
Where
Aneesh
Yes
S Sidharth
Ooh. Then have u included the temp dir in settings.py?
Aneesh
Yes included
S Sidharth
All seems right. What is the error then🤯
Aneesh
Thanks for your support
SG
Help to deploy django project on heroku
SG
Please DM me....
Aneesh
Thank u Soo much for ur support
Anonymous
I am facing a bug in user auth... Users can register by entering space ' ' , how can I debug this cuz some user can also use multiple space ' '
Vasanta
Is there any way to update the database with data fetched from rest api, without http template
Vasanta
In Django 3
Dmitry
Hello! Anybody using this https://django-star-ratings.readthedocs.io/ ? I am unable to change language of this widget even when I do translation.activate in view where it used.
Аброр
Hey Team! In my django project, I try to run the server and get ImportError: cannot import name 'six' from 'django.utils' . I googled already, but nothing solved this problem. Maybe someone has already tackled this? Btw, I use corsheaders, drf in my project
Аброр
Update corsheaders
I tried, but I get the same error..
Muslim
I tried, but I get the same error..
Then u should share logs
Аброр
I get error in following file: venv/lib/python3.7/site-packages/django/utils/__init__.py
Amen
Remove white noise middle ware if you have it
It happens when you change static storage with whitenoise conf.
Аброр
Amen
Nope, I don't have it
Send you setting.py
Amen
Or paste bin
Аброр
https://pastebin.com/gspvmXCY
Аброр
logs: https://pastebin.com/YQUwSx7k
Presence
Hi all while adding simplejwt I'm getting this error
Presence
[SolverProblemError] The current project's Python requirement (^3.8) is not compatible with some of the required packages Python requirement: - djangorestframework-simplejwt requires Python >=3.6,<3.9 Because no versions of djangorestframework-simplejwt match >4.4.0,<5.0.0 and djangorestframework-simplejwt (4.4.0) requires Python >=3.6,<3.9, djangorestframework-simplejwt is forbidden. So, because nolimitsapi depends on djangorestframework-simplejwt (^4.4.0), version solving failed.
SG
/
SG
how to solve error ::
SG
sorry to many clients already
SG
in django
Anonymous
I moved all my files django files to a one up folder ... Now my server is not starting .. no module named 'doc help'
Shreehari
hey guys im creating a custom user auth model in which im want to use email instead of username for registration and login. but im getting this error: raise MigrationError(f'Table {collection} does not exist in database') djongo.sql2mongo.MigrationError: Table authentication_user does not exist in database can someone please help me with this
Presence
Hi guys can I install some dependencies via pip instead of installing it in virtual environment?
Presence
And will it work?
Presence
Hi all while adding simplejwt I'm getting this error
Like I'm unable to install simplejwt via poetry but I'm able to install it via pip
Nitish
hi i am creating an api for post req but when i am submiting a post request it showing an error 'WSGIRequest' object has no attribute 'data'
Nitish
my post req is http://127.0.0.1:8000/api/?name=nitish
Anshul
Recently found this Django master guide on LinkedIn for anyone started with web development, this guide is very helpful. This guide contains all topics from beginner to advanced level. https://www.linkedin.com/posts/dataflair-web-services-pvt-ltd_learn-django-from-master-guide-become-a-activity-6623435226213384192-jdZg
Aditya
While opening admin page It's showing
Aditya
Server is closing
Nitikesh
Trouble in writing testing code for Question without Choices as given in django documentation tutorials
悪魔
hi, my django project searching images in my app folder
悪魔
i need it to search in static files
Rajesh
Hi
Rajesh
I'm new to django
Rajesh
Can anyone help me creating migration in django
Rajesh
python manage.py makemigrations employee
Rajesh
Giving error ' no installed app label employee'