olasitarska on master
Making post_detail.html more co… Merge pull request #362 from ve… (compare)
bmispelon on master
Provide alternative runserver c… Merge pull request #359 from Al… (compare)
bmispelon on master
fixing broken github link Merge pull request #358 from gs… (compare)
Do you know if you are behind a proxy? This error is raised from the socket package: https://docs.python.org/3.5/library/socket.html#socket.getaddrinfo and could be for many reasons, I've seen it if it cannot resolve a hostname when I'm behind a proxy server.
Are you trying to start the webserver locally, or are you trying to host on pythonanywhere?
Hi, I am new here and I am just trying to start with django, but I have a problem. Right at the beginning. When setting in console: django-admin.py startproject mysite . I get : #!c:\users\olga\djangogirls_venv_\scripts\python.exe
from django.core import management
if name == "main":
in models.py i have choices in a field-
APPROVAL_CHOICES = (
approvalstatus = models.CharField(("Approval Status"),max_length=8,null=False,blank=False,choices=APPROVAL_CHOICES, default='Approved')
i wants to update value of approval_status field from views.py-
if Splash.objects.filter(ip_address = ipaddress).exists():
obj.approval_status = 'Pending'
i also tried-
obj.approval_status = obj.APPROVAL_CHOICES
please suggest how can i update my approval_choices value from views.py.
Also, i'm unable to fetch session id using this statement-
obj.session_id = request.session.session_key
please also tell how can i fetch session key of a user.
Hi, I'm trying to run my new Django webapp on pythonanywhere.com, but after following all installing steps it says
ImportError: Your WhiteNoise configuration is incompatible with WhiteNoise v4.0
and doesn't load the webapp.
I'm using Python 3.8, Django 3.0.2 and the latest whitenoise 5.0.1
I tried to downgrade the whitenoise version to 4.0 and 3.31 but the error still raises :(