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)
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 :(
@choi-seung-min According to the official django homepage (https://docs.djangoproject.com/en/3.0/releases/3.0/), Django 3.0.2 should be compatible with python 3.6, though they recommend using 3.8. I'm not sure about what the error you get in Pycharm is about. If you're comfortable with using the command line/terminal, then maybe you could try creating and running a django project without PyCharm? I've had trouble with PyCharm sometimes (probably because I don't understand it well enough), things like interpreter and virtual environment settings that lead to unexpected behavior.
About the debug mode: Just turn debug mode on again (DEBUG = True) in settings.py. It's best to leave debug mode on unless the tutorial says otherwise. Debug mode is great during production, it's only if you would make a live site that other people are to visit that you'll have to make sure it's off.
If you want to keep all changes and combine them, run
README.mdfile. This change doesn't share any history with your local changes, so
git pullwouldn't work.
git push --force-with-lease -u origin master