Alisher shamuratov
Alisher shamuratov
William
How can I do this?
Write query and add the variable in the context. That's It. Use the context data in template
Alisher shamuratov
Erik
Guys whats better? Make all fields of a model blank=True or fill them with NULL in case of a special mistake???
Mayank
Hi friends, i want to use google location in my django project..
So suggest me how can i do this
" by using which api... Or library"
Charly
Mayank
By using this will we able to compare distance between two location??
Roger
https://developers.google.com/maps/documentation/directions/quickstart
You can use directions api from google maps
Baqer
Hi guys , what's your suggestion for self-learning and free practice for improving Django skills ?
Charly
Mayank
Roger
Excuse me Charly, do you know if with Postgis, can I get if a ubication is inside a polygone?
Mayank
Charly
Roger
Can I send DM for help?
Charly
Doragonsureiyā
Can I send DM for help?
Can i send you a private message?
No. We do not provide one-on-one tutoring, hire someone if you need it. Questions are better answered in public so that everyone can learn.
Roger
:0
Charly
:0
So whats the issue with asking in the group?
Roger
Well, I want to save polygones and show it with google maps (Using google maps api for create polygons), but i dont know if postgis can make a query for searching this
Roger
I dont know too much about it
Mayank
Mayank
Charly
Roger
I will try! Thank you
Fan / Ac
when should i use python manage.py migrate --run-syncdb
instead of python manage.py migrate
Charly
Fan / Ac
have you checked the docs? it says is not recomended
doc says it can be used when migration is too slow and this will just to create tables,
does that mean this will not apply constraints ?? but thats not clear to me
ah ok so i got what this means now, it is used when tables in db needs to be updated but without creating new migration for the changes, this is not recommended but its done when creating migrations is very slow
Shoxrux
Hi guys how to write alternative for class EntryModelTest(TestCase):
def test_string_representation(self):
entry = Entry(title="My entry title")
self.assertEqual(str(entry), entry.title) this one in pytest
Lupino 🇮🇹
Man, I can't get my Django site running with an Apache server :\ keeps saying my project module can't be found
Lupino 🇮🇹
Anyone good with production servers? :D
Chaitanya
Lupino 🇮🇹
What do you mean requirement?
Lupino 🇮🇹
As in why I need it?
Lupino 🇮🇹
Well, I'm wondering how to setup a Django site with Apache and WSGI
Lupino 🇮🇹
I tried the Django page on it and a few other sources but I keep getting weird errors. I'm thinking my python packages aren't being mapped correctly
Chaitanya
Tell me about your infra?
Lupino 🇮🇹
It's just a basic Django project with a couple of apps, using MariaDB/MySQL as a DB backend
Chaitanya
Is it personal or professional?
Lupino 🇮🇹
Personal, just a small site I'm working on
Lupino 🇮🇹
I have my old PC I'm using as a server at home so I'm trying to set this up on a local connection
Dorin
Is there someone who is experienced in react/django, CI/CD?
Rajan
Sorry, if m asking very silly question , m quite new to programming and learning django, when i run my first project - using :- python3 manage.py runserver
and go to chrome and access localhost:8000
then i get operational error
Rajan
OperationalError at /
no such table: adoptions_pet
Request Method: GET
Request URL: http://localhost:8000/
Django Version: 3.2.9
Exception Type: OperationalError
Rajan
No problem, i found the resolution
Rajan
ignore my previous post
V10r
Any one help me please. Can you suggest me a django 3.2.9 version udemy 4.8 ★ rating course with minimur 3 real project .???
Doragonsureiyā
Andrey
Anurag
Looking for a payton developer having experience in django and bootstrap. Preferably from india. If anyone is interested please DM.
SriSreedhar
William
Andrey
William
Kushagra Nalwaya
Ok
Almaz
celery -A core multi start 3 -l INFO -Q:1 queue1 -Q:2 queue1 -Q:3 queue3,celery -c:1-2 1 \
--pidfile=./acelery-%n.pid
Guys runned 3 celery workers with celery multi, but when I look at flower there is only one worker working while other 2 workers are relaxing =)
Rafael
No changes detected? Django
How i can solve ?
Rafael
All app in install apps exist
Anonymous
Anyone can guide me in establishing communication over multiple dockerized Django microservices running in different VMs over celery?
SteadyHost
I do not want to add links, I want to make them temporary, how can I solve this problem?
Direct assignment to the forward side of a many-to-many set is prohibited. Use user_permissions.set () instead.
Rutherford
Rafael
Rutherford
Yes
Is there an empty init.py file in it??
Also did you run makemigrations ?
Rafael
Rafael
Make migrations
Rafael
Also
Mirco
George
Hey guys, Django 4.0 is ON. 🎉🎉🎉🎉🎉🎉
https://www.djangoproject.com/weblog/2021/dec/07/django-40-released/
анатолий
oh fuck. we're still on 2.2
IDK
Bujji Hemanth
i am doing login_page here i struck in the singup page is cant work it shows error like this.
you're seeing this error because you have DEBUG=True in your Django setting file. change that to False, and Django will display a standarf 404 page .
please help me how to clear this error
Mirco