Felex
how should i edit it to serve my project not the default nginx homepage
Anonymous
Hello, I have an image stored inside a table, with his two coordinates, and in another model I have a polygone and ROIPolygone( contains all the points of this polygone i.e 6 points ). And I want to calculate the positions of this points on the image. In the first, I have an idea to how calculate this points with a given coordinates of each point, But I don't know to modelize this. So, can someone here suggest me a solution?
Yan
Hi, I'm trying to import "from django.contrib.auth.forms import UserCreationForm" but I get this error: "django.core.exceptions.AppRegistryNotReady: Apps are not loaded yet." I eliminate that import and everything works fine!
Anonymous
Hi, I'm trying to import "from django.contrib.auth.forms import UserCreationForm" but I get this error: "django.core.exceptions.AppRegistryNotReady: Apps are not loaded yet." I eliminate that import and everything works fine!
I would have to see your code but those might help you : https://stackoverflow.com/questions/34114427/django-upgrading-to-1-9-error-appregistrynotready-apps-arent-loaded-yet https://stackoverflow.com/questions/33186413/djangodjango-core-exceptions-appregistrynotready-apps-arent-loaded-yet/33550079
Yan
Hi, mi code is simple: https://pastebin.com/itE55Xc5
Anonymous
Is there any method to do data binding in channels 2
🏳️‍🌈Robby [ Private Message = Spam]
Anonymous
read the docs.
Is there a pdf format for the Django project docs?
🏳️‍🌈Robby [ Private Message = Spam]
Anonymous
Pinned message.
"pinned message"?
Anonymous
I googled but
Anonymous
I couldn't find it
Anonymous
And i tried to mirror it, alot of contents
Anonymous
Or does anyone has it mirrored?
Anonymous
read the docs.
It is provided in 1.8 but not in 2
🏳️‍🌈Robby [ Private Message = Spam]
It is provided in 1.8 but not in 2
ok then, why'd you ask?
pylance
https://media.readthedocs.org/pdf/django/2.2.x/django.pdf
Anonymous
ok then, why'd you ask?
Because I'm working on channels 2
Anonymous
And need a way around
🏳️‍🌈Robby [ Private Message = Spam]
And need a way around
have you done any research?
Anonymous
Not much
Michail
how to enable detailed logging in django? I have a Kibana via bonsai.io - django-haystack lib and want to dump info there
N S
Is there a way to store django server logs to a file
Mirco
Is there a way to store django server logs to a file
Yup, for example when u use gunicorn to run Django you can specify error-logfile and access-logfile ( just an example )
N S
Ok any other way other than this
Mirco
Ok any other way other than this
It depends, if u give us more details we can help ya better You can also send your stdoutput to a file etc .
pvs
Any group specifically for django rest framework
Vishu Tyagi
Hey ! Can anyone suggest me the best book for django from begginer to pro
Vishu Tyagi
i m a begginer
Vishu Tyagi
i have intermediate knowledge of python
Vishu Tyagi
soo please suggest me the best book
Vishu Tyagi
or you can provide me the notes to learn django
Mirco
Read pinned message and @pythonres first
Michail
How I can enable logging entry on item creation? I tried overwriting the save method like so def save(self, *args, **kwargs): logger.debug(“New Car created") # if self.pk is None: - what to do here? return super(models.Model, self).save(*args, **kwargs) in my Car class in /cars/models.py but then I get AttributeError: 'super' object has no attribute 'save'
Mirco
Legend 💪
Nope , just docs reader 😂 and python lover
Macurrent
use a clean, new, shiny, virtual environment
Hello. In your settings.py. I see you importing environ. What is this environ coz its the one giving me errors??
Macurrent
Hello. In your settings.py. I see you importing environ. What is this environ coz its the one giving me errors??
I tried to do a project same to the one you did. Am surprised to see the same error i saw when doing mine
Macurrent
It's django-environ package or u can use python-decouple
That import is giving error which says unresolved import 'environ'Python(unresolved-import)
Macurrent
I thought after installing environ it would accept the import. Or do i need to install it in a given folder?
Macurrent
https://django-environ.readthedocs.io/en/latest/
On the how to use it part... Is there any approach i can use apart from that. Python shell is giving me errors on some of its commands
Corteis
hy guys!! someone recomend one website to practise django with tutorial??
Muflone
Mozilla website has good tutorials
Guillermo
Macurrent
@Macurrent did you watch this video I sent?
I did not see the video... Where did you sent it coz its not in the readme
cj
🤷🏻‍♂🤦🏻‍♂
cj
sorry, I can't do anything with people without reading skills
cj
I'm done, I tried my best
Macurrent
I did not see the video... Where did you sent it coz its not in the readme
Sorry sir, I jxt saw it. Its in the link and am trying to follow it
Macurrent
Sorry sir, I jxt saw it. Its in the link and am trying to follow it
Its still not working for me and not giving any error. Here is what i did... i copy pasted your settings.py files, made relevant changes, installed django environ,Set an environment variable called DJANGO_SECRET_KEY to 123abc made migrations and run server.. Still not saving..
Macurrent
what do u need to do??
I was using a ck editor in my text field. Its working perfectly but not saving the data
Macurrent
🤷🏻‍♂🤦🏻‍♂
You can check my code at github account @ Macurrent. Its called first-blog
cj
that's why you're having that environ not found error
Oleksandr
Hi, can I upload a screenshot here with an error?
Oleksandr
can you?
Yes, I need help. for a screenshot I was not banned?
cj
Yes, I need help. for a screenshot I was not banned?
have you tried uploading it already?
Oleksandr
no
cj
🤷‍♂️
Oleksandr
ohh. iocked
Oleksandr
sry
Oleksandr
😊
Oleksandr
idk
cj
ohh. iocked
have you read this group rules yet? 🙄 https://t.me/django/5562
Oleksandr
just now
cj
just now
well... alongside using google first, reading groups rules are a "must to do" in the Internet too