Maxim
plese chech pm
please read rules
Anonymous
please read rules
sorry i am Beginner i have trouble to solve this help me bro
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
Anonymous
<!doctype html> <html lang="en"> <head> <title>Server Error (500)</title> </head> <body> <h1>Server Error (500)</h1><p></p> </body> </html>
Anonymous
Python error message, not this
No python error comes
Anonymous
change your valiable DEBUG = True on file settings.py for get where error code
i change this it will work but i have this site for production purpose
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 ?
Anonymous
where i saw this error
Maxim
where i saw this error
idk. find out this
Anonymous
wher i fount idk
Nilou
i use GeoIP2
Do you know references to learn it ?
jeager
Do you know references to learn it ?
https://docs.djangoproject.com/en/3.2/ref/contrib/gis/geoip2/
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
How to post current time in blog in django
auto_now=True is better then default=datetime.now
Maxim
No such table:home_contact
read about migrations
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
Michael the wolf 🐺
https://stackoverflow.com/q/68253012/16045462
try changing the function name or the orm object name..both are same now, i am thinking its causing error
Pandit
https://dpaste.org/LB4X
can nyone help ?? me a noob :)
Pandit
can nyone help ?? me a noob :)
if i cant use loader !! then what should i use? and the attribute with it?
𝑅𝑜𝒻𝒾𝑒𝓋
Guys I ve learned python lately and now wanna master Django. Can anybody recommend one best source for a beginner like me?
𝑅𝑜𝒻𝒾𝑒𝓋
𝑅𝑜𝒻𝒾𝑒𝓋
I was searching udemy
𝑅𝑜𝒻𝒾𝑒𝓋
𝑅𝑜𝒻𝒾𝑒𝓋
Pandit
Hahaha yes😅
lol see this 😂😂evn with flwng courses im gettings bugs https://t.me/django/168312
Pandit
Thnx buddy✌️
i can provide link if u want
𝑅𝑜𝒻𝒾𝑒𝓋
can anyone help :)??
I cant help u yet that's for sure 😅😆
𝑅𝑜𝒻𝒾𝑒𝓋
i can provide link if u want
That d be nice of u)
Pandit
That d be nice of u)
cool see u in dm
𝑅𝑜𝒻𝒾𝑒𝓋
🙆
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)
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 need switch my code in django, if http requirement is true, you can see, if dont you cant
well from what im reading django-flags is used to execute blocks of code in your view depending on certain conditions being met(flags)
Anonymous
i can see many use-cases for this but i don't know what you are talking about 'if http requirement is true'
Furious
I want learn django, anyone can help me?
kuzmich
I want learn django, anyone can help me?
just do some tutorials then make a project and you'll be good
Vladislav
i can see many use-cases for this but i don't know what you are talking about 'if http requirement is true'
and where can i see example or video how its work)) because documentation i cant understand totally
Anonymous
and where can i see example or video how its work)) because documentation i cant understand totally
https://cfpb.github.io/django-flags/ Check the quick start example provided, and try it out on your own
Anonymous
i don't think they provide any other demo of it other than that but should be really simple to recreate
kuzmich
Which tutorial is best?
up to you but i like Dennis Ivy
Anonymous
Which tutorial is best?
The poll app on the django documentation is a good place to start
Furious
Ok thanku for both 🙏
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