Anonymous
please read rules
sorry i am Beginner
i have trouble to solve this help me bro
Maxim
Anonymous
you need the error message
System check identified no issues (0 silenced).
July 05, 2021 - 03:51:40
Django version 3.2.5, using settings 'backend.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
[05/Jul/2021 03:51:46] "GET / HTTP/1.1" 500 145
[05/Jul/2021 03:51:47] "GET / HTTP/1.1" 500 145
[05/Jul/2021 03:51:47] "GET / HTTP/1.1" 500 145
[05/Jul/2021 03:51:48] "GET / HTTP/1.1" 500 145
Maxim
Anonymous
<!doctype html>
<html lang="en">
<head>
<title>Server Error (500)</title>
</head>
<body>
<h1>Server Error (500)</h1><p></p>
</body>
</html>
Maxim
jeager
Anonymous
Anonymous
jeager
Switch to maintenance mode
Nilou
Hi guys,
I am freelancer in Python
I have an online shop project
It has a part that is tracking GPS after customer buys something,
I don’t know how do tracking with Python
What should i study to learn GPS and tracking
Can you introduce some references to me ?
jeager
Maxim
Anonymous
where i saw this error
Maxim
Anonymous
wher i fount idk
Anonymous
https://stackoverflow.com/questions/68251127/get-the-value-of-a-specific-key-from-django-queryset-json-data-and-pass-to-javas
Nilou
Thanx a lot
Nilou
🌺🙏
Champak Lal
No such table:home_contact
Champak Lal
Help
Maxim
John
class TemplateAdminForm(forms.ModelForm):
def init(self, *args, kwargs):
super(TemplateAdminForm, self).init(*args, kwargs)
self.fields['user_id'] = UserChoiceField(queryset=User.objects.all())
.....
Hey guys I'm using this form in the admin panel but I want to do a autocomplete on this in the admin panel based on user_id.
how to do it ???
Deleted
https://stackoverflow.com/questions/68251127/get-the-values-of-a-specific-key-from-django-queryset-json-data-and-pass-them-to
Deleted
how to get the values of a specific key from Django queryset json data and pass them to vueJS
?
Jack
I login to web page using user that is stored in admin/users.
I use MySQL for storing different person details.
Now, How can I show only a single person details while I login to the page?
If I login using user name Jack then I should only see the info about jack that is stored in MySql database.
Faraday
from django.shortcuts import render
from .models import Film, Review
from.utils import average_rating
def index(request):
return render(request, 'base.html')
def films(request):
movies = Film.objects.all()
filmlist = []
for film in movies:
reviews = film.review_set.all()
if reviews:
film_rating = average_rating([review.rating for review in reviews])
number_of_reviews = len(reviews)
else:
film_rating = None
number_of_reviews = 0
filmlist.append({'film': film, 'film_rating': film_rating, 'number_of_reviews': number_of_reviews})
context = {'filmlis': filmlist}
return render(request, 'reviews/films.html', context)
Faraday
hey why I'm I receiving a unresolved objects reference on the above code?
Keshav
Hlo I am created a page using Django but I am not able to add data from user but I can add it through admin
There is no error showing in my code can some help me
Keshav
https://stackoverflow.com/q/68253012/16045462
Pandit
𝑅𝑜𝒻𝒾𝑒𝓋
Guys I ve learned python lately and now wanna master Django. Can anybody recommend one best source for a beginner like me?
Pandit
𝑅𝑜𝒻𝒾𝑒𝓋
Pandit
𝑅𝑜𝒻𝒾𝑒𝓋
I was searching udemy
𝑅𝑜𝒻𝒾𝑒𝓋
𝑅𝑜𝒻𝒾𝑒𝓋
Pandit
Hahaha yes😅
lol see this 😂😂evn with flwng courses
im gettings bugs
https://t.me/django/168312
Pandit
𝑅𝑜𝒻𝒾𝑒𝓋
𝑅𝑜𝒻𝒾𝑒𝓋
Pandit
𝑅𝑜𝒻𝒾𝑒𝓋
🙆
sim
anyone has python full stack web project
Asad
hi there, if i change my model and do makemigrations and then migrate, my postgres db stops responding. neither django shell, nor psql cannot work work with table which altered on migrating. what do you think how i can avoid it?
Asad
But i lose my data?!
Doragonsureiyā
Rule 5️⃣: To share code or error tracebacks, use an online pasting service like:
- https://del.dog
- https://dpaste.org
- https://linkode.org
- https://hastebin.com
- https://bin.kv2.dev
If you posted a wall of text, go back and delete it.
Vladislav
hey everyone, who use django-flags?
Vladislav
don’t understand how its work)
Anonymous
Vladislav
Its too vague
i need switch my code in django, if http requirement is true, you can see, if dont you cant
Anonymous
i can see many use-cases for this but i don't know what you are talking about 'if http requirement is true'
Vladislav
Furious
I want learn django, anyone can help me?
Vladislav
Anonymous
i don't think they provide any other demo of it other than that but should be really simple to recreate
Furious
Furious
Ok thanku for both 🙏
kuzmich
kuzmich
But personally I find it easier to follow the video
kuzmich
When it comes to basics ofc
kuzmich
As a start
Anonymous
to each their own))
Furious
Yes
Keshav