Error using Django Facebook - django

I am trying to use Django Facebook to register users in my app.
Right now I am in local develoment and after giving persmissions to the app in Facebook and following all indications in readthedocs, I get the next error:
Please specify a Facebook app id and ensure the context processor is enabled
Django version: 1.8
Python version: 3.8

This was an error django-facebook code, which has been fixed. Make sure you are using django-facebook 6.0.4 or later. Even if the latest model is not yet shipped you can get it by doing pip install git+git://github.com/tschellenbach/Django-facebook.git

Related

Django All Auth Google Login Prevent extra page

I have enabled google login in my Django web application. right now what happens is, when i click on login the url is as follows: it takes me to this page (please find the image below) which i want to prevent but can't figure out how do i.
here is the image
Please assist.
I have uninstalled Django-allauth using the following command :
pip uninstall django-allauth
After that I have installed an older version of that using:
pip install django-allauth==0.45
Then:
python manage.py makemigrations
pytthon manage.py migrate
Done. This solved the problem
This behavior was released in version 0.47.0:
Added a new setting SOCIALACCOUNT_LOGIN_ON_GET that controls whether or not the endpoints for initiating a social login (for example, “/accounts/google/login/”) require a POST request to initiate the handshake. As requiring a POST is more secure, the default of this new setting is False.
You can add the flag in your settings.py file to avoid the intermediate page:
SOCIALACCOUNT_LOGIN_ON_GET=True
And keep using the latest version of the library.

Anyone able to integrate Django-Wiki app on Django 3.0.X project?

Has anyone been successful in being able to run the Django-wiki app on Django 3.0.1/2 project?. On their docs page, it says that v0.5 supports Django 3.0, but when I try to install it via pip, it downgrades my Django version from 3.0.1 -> 2.2.9. In their requirements file, I see this:
Django>=2.2,<3.0
If someone is able to get it working, it'd be great if they can point me to some instructions.

Django development server quits itself when accessing admin page

I am following the django docs tutorial to build a polls app i just created the superuser but whenever i try to access the admin page the server quits on its own with no error message that's in both chrome and firefox i'm on windows
You need to check your version numbers of Django and Python to ensure compatibility. There is a problem with Django 3.0 (the latest version) and with version 3.7.0 of Python and potentially its older versions as well.
Try updating your Python installation to see if that fixes the issue.

Error: No module named messages Django 1.1.3

I was working on a Django project in version 2.0, but my client was unhappy about it as he wants that project to be made with Django 1.1.3. So, I switched back to old version and tried to setup the project on that version but was unable to do so.
After that, I created a new project in Django 1.1.3 and created a Django app too. I tried to run command python manage.py syncdb but I got this error message:
Error: No module named messages
What's the issue? I am not able to find Django 1.1.3 documentation on this.
The module django.contrib.messages is available only for Django versions >= 1.2, unfortunately.
You could maybe convince your client to switch to 1.2.X, or write your own messages as part of your server's responses, and create your own client-side message renderer.

Django/Jython ImproperlyConfigured error

As specified in the tutorial (http://www.jython.org/jythonbook/en/1.0/JythonDjango.html), I am using doj.backends.zxjdbc.postgresql as Django's DB engine. However, when I do
jython manage.py syncdb
I get an ImproperlyConfigured error, stating that doj.backends.zxjdbc.postgresql is not an available backend and that no module named postgresql exists. Strangely, if I enter the Jython shell, I can do
import doj.backends.zxjdbc.postgresql
without any error messages.
Ideas on what is going on here?
Solution: django-jython is out of date. 1.4 is not currently supported, so there is no solution to this issue other than to revert to a supported version of django.
Unfortunately it seems like django-jython is not seeing much/any active development anymore...
However, I have found that development versions available at the Google code repository below do work in Django 1.5 (and I assume they may work with 1.4 too, if you pick the right version):
https://code.google.com/p/django-jython/source/list
In particular, I have found that this dev version works with Django 1.5:
https://code.google.com/p/django-jython/source/detail?r=c4a0dd949a6d86a4baf8d1bed3b1926fa5318e87