Werner
I supose yes
Manuel
but how is the config on the setting, has anyone done something
Manuel
my doubt is in there
Manuel
in here
Gedeon
Helllo pythoneers! I am working on a django project and facing this issue. I want to have transaction history of each users saved to a model called transaction so far I have done this for trwnactions happing through a view func in the template, I am looking to find a method to do the same for chnages beign done through the django admin page?? Any help please
Deleted
Hey guys, I am unable to login using normal user created by superuser in front end, but only superuser could login, why?
Doragonsureiyā
Hey guys, I am unable to login using normal user created by superuser in front end, but only superuser could login, why?
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
Milan
Tush
Deleted
I use auth_views.LoginView.as_view(), but only super user could login
Anonymous
I am trying to connect my MySQL db to my django app
Anonymous
While migration this is the issue so I asked
Doragonsureiyā
I am trying to connect my MySQL db to my django app
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
NoReverseMatch
Exception Value:
Reverse for 'job_single' with arguments '('',)' not found. 1 pattern(s) tried: ['job_single/(?P<pk>[^/]+)$'] detailo page is not opening.
Anonymous
<h4><a href='{% url "job_single" q.pk %}'>{{job.title}}</a></h4>
Anonymous
Somebody Please exlplain
Sadra
Please show me your urls.py
Anonymous
from django.contrib import admin
from django.urls import path,include
from . import views
urlpatterns = [
path('postj',views.post,name='postj'),
path('job_single',views.job_single,name='job_single')
]
Anonymous
Anyone pleasaae Help
Sadra
Sadra
You probably looking for such a thing:
path('job_single/<int:pk>/,...)
عــمــر
Hello , i want to ask how i get the value from multiple questions from this form
Html :
عــمــر
I cant send the image
عــمــر
I want to get this values and check If the answer is true or not in the views.py
I want to create a simple quiz app
Mirco
عــمــر
ok sorry this is the html code 👍 : https://del.dog/bitofuttew
عــمــر
Mirco
This is my question
first study better Python and its codestyle standard, classes start with upper case letter, not variables for Quiz in Quiz_lists is ugly
second if you keep using the same name attribute on every answer tag, on the backend side you cannot understand which is the answer so use different names
Jay
Hello all I am facing issue with grouping data with date, my current data looks like this, I am using modelserializer and my current ouput looks like https://pastebin.com/WugB8f4a this but I would like to somehow group them with date like the one here https://pastebin.com/qREfUFzV, so how will it be possible?
sᴀᴍᴀɴᴅᴀʀ
Hello everybody
Python programming language is mainly used in which direction
sᴀᴍᴀɴᴅᴀʀ
Web,android .....??
Suyog
Suyog
Used everywhere
sᴀᴍᴀɴᴅᴀʀ
Thanks
Suyog
Np 👍👍
Deleted
Hi, guys, In my Django 2.2 project (python 3.7, win10), only superuser could login(having redirect 302 response) , normal user could not login the front end(not redirect 302 response)
Deleted
I use auth_views.LoginView.as_view()
Pradyum
Am looking to monitor rest Api through grafana do anyone have any idea how should I do it?
Pradyum
Am using django rest framework
عــمــر
List1 = [“a” , “b”]
List2 = [“a” , “b”]
Score = 0
for a in range(len(List1)):
If list1[a-1] == list1[a-1]:
Score =+ 1
The output is
Score = 1
Its should be 2 why 1 ?
Sadra
charlie
Hi, anyone worked with integrating Google drive with django. Is it possible to upload a file from Google drive. Like drag the image to our file field
DJ
عــمــر
Anonymous
Anonymous
you have to consider this too
Anonymous
hello everyone)) .gitignore file / ll_env /
pycache /
* .sqlite3
if using sqlite3.
i use postgresql .how to .gitignore file
Anonymous
Mirco
Mirco
Mirco
Ok but that q object into the template is evaluated ?
share also the view
Mirco
Please use code sharing tools
Mirco
And share views, urls and template
Enes
I wnat to create a project. Can you suggest me what typr project do i create?
Khumoyun
Hello, I have 6 items in STATUSES.CHOICES
status = models.CharField(max_length=24, choices=STATUSES.CHOICES)
QUESTION: how fetch items by usernames to template/index.html?
for example: I have username "Alex". and when Alex login to site, select field need show only 3 items
P.S: sorry for my english!
Anonymous
Mirco
Anonymous
Hello, I have two global settings that need to be updated in runtime.
How can I handle this?
Mirco
The q ( please use another name ) you need to use inside the job single template
Anonymous
Mirco
There's no need to stringify the pk
Herman
Hello everyone
I want To redirect user when he submited form in my simple app but when he submit it is not work . i don' t know while it is doesn"t work def index(request):
contact_form = ContactForm(request.POST)
if contact_form.is_valid() :
print("good operation")
print("good operation")
contact_form.save()
if contact_form.save():
test(request)
return render(request,'contact/contact.html',{'form':contact_form })
def test(request):
return render(request,'contact/good.html')
Anonymous
Egehan
Anonymous
Can any one help me ?
1. Now I am getting all Json data from URL.
2. But how can I filter on only specific record in json.
Example of Json:
[{
Name: "vipul",
Age: 50,
Country: India
},
{
Name: "Aman",
Age: 60,
Country: "China"
},
{
Name: "Raghav",
Age: 20,
Country: "India"
}]
Here how can I get only those records who's country = India
Anonymous
Please remember this json data coming from some URL
The Captin
Lone
Can someone suggest me a Django book for absolute beginners, Thank you
Omair
Can any one help me ?
1. Now I am getting all Json data from URL.
2. But how can I filter on only specific record in json.
Example of Json:
[{
Name: "vipul",
Age: 50,
Country: India
},
{
Name: "Aman",
Age: 60,
Country: "China"
},
{
Name: "Raghav",
Age: 20,
Country: "India"
}]
Here how can I get only those records who's country = India
If this is an update on some already posted doubt, you might want to consider replying on the thread, shoots up your chances of getting an answer? If not, then there isnt enough context to really answer your question.
Omair
Melody
I want to implement a feature where when a customer adds a product , it shouldn't be directly visible to people instead admin should first approve or disapprove.
Can anyone suggest me how should i go ahead with this?
Mirco
Mirco
Mirco
it's like a Post on a blog, you will display only the ones that have been published
Melody
Mirco
Doragonsureiyā