dellis23 / django-wordpress-auth Goto Github PK
View Code? Open in Web Editor NEWDjango integration with Wordpress's authentication and roles / capabilities system.
Django integration with Wordpress's authentication and roles / capabilities system.
I have managed to get the basic @wordpress_logged_in functionality working following the instructions given in the readme. What I need to do next is to synchronise the django username with the wordpress username so that login in with wordpress makes the properties of the django user available.
Are there any documented examples of integrating the two usernames?
I followed the instruction but cant get it to work. I get the error
'NoneType' object has no attribute 'capabilities' or
'NoneType' object has no attribute 'roles' depending on what I was trying to pass. How can I solve this?
Add your WordPress's auth keys and salts (found in wp-config.php) to your settings.py.
The documentation should be clarified to specify that LOGGED_IN_KEY
and LOGGED_IN_SALT
from wp-config.py
is what should be used specifically.
Hi Dear
I am using Django==2.0.5 with this library.
I have add config to my Django setting.py
but while importing 'wordpress_auth.middleware.WordPressAuthMiddleware', I have got issue
how to fix this
thanks lots
mw_instance = middleware(handler)
TypeError: object() takes no parameters
Would be nice if this package was on PyPI, so we could install it with running pip install django-wordpress-auth
.
Hi there Dan, I'm making some significant improvements to the codebase as well crafting a setup.py so we can submit this app to the Python Package Index. Should I make a PR so you can submit to the PyPI yourself. Are you interested in continuing to maintain this package?
Cheers!
Hello,
great app, I can connect the flexibility of django with the huge plugin base ofWordpress, and avoid coding things in PHP. Thank you!
When is the next PyPi version planned? I installed it with pip and had some problems with Python 3.4. Now I installed it with pip from the repository, and everythings works. But I would like to avoid github links in my requirements.txt pip file.
Cheers,
Johannes
Hi dellis,
the wordpress root cookie plugin created some warning in Wordpresspress 4.2.3, so I helped myself by coding the following static class.
It can be included in functions.php.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.