GraphQL integration for AllianceAuth
Reason this release was yanked:
not stable
Project description
allianceauth-graphql
GraphQL integration for AllianceAuth
Free software: GNU General Public License v3
Usage
This version is still in pre-alpha, as of v0.1.1 it does nothing.
Setup
The following is assuming you have a functioning AllianceAuth installation.
Install plugin
-
pip install allianceauth-graphql
. -
Add
'allianceauth_graphql'
(note the underscore) to the bottom of yourINSTALLED_APPS
in the local.py settings file. -
Add the following setting at the bottom of your urls.py file:
GRAPHENE = { 'SCHEMA': 'allianceauth_graphql.schema.schema', }
-
Edit your projects url.py file:
It should look something like this
from django.conf.urls import include, url from allianceauth import urls urlpatterns = [ url(r'', include(urls)), ] handler500 = 'allianceauth.views.Generic500Redirect' handler404 = 'allianceauth.views.Generic404Redirect' handler403 = 'allianceauth.views.Generic403Redirect' handler400 = 'allianceauth.views.Generic400Redirect'
After the edit:
from django.conf.urls import include, url from allianceauth import urls from allianceauth_graphql import urls as aa_gql_urls urlpatterns = [ url(r'', include(urls)), url(r'graphql/', include(aa_gql_urls)), ] handler500 = 'allianceauth.views.Generic500Redirect' handler404 = 'allianceauth.views.Generic404Redirect' handler403 = 'allianceauth.views.Generic403Redirect' handler400 = 'allianceauth.views.Generic400Redirect'
Settings
Setting | Default | Description |
---|---|---|
SHOW_GRAPHIQL | True |
Shows the graphiql UI in the browser |
Credits
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.
History
v0.1.0 (2022-04-02)
* Working /graphql/ endpoint and updated requirements.
v0.1.0 (2022-03-18)
* First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for allianceauth_graphql-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0de60c68a02eec6f828339b44ffbe6b9dfda63e8ec546e3f0097d0f2793f0cd0 |
|
MD5 | f51e07c66c42967e686d7ff739c9c5d7 |
|
BLAKE2b-256 | f18e6e48561daaa53d686e40f3d058df324f077946939c4bf6958726580b48d4 |
Hashes for allianceauth_graphql-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ec33b4f1f72b6266e5a28260413e8ba96b18de27d3a1b23a87e3489e7328f15 |
|
MD5 | 386cb1dea5e72768d9d4a111822ef04e |
|
BLAKE2b-256 | 6a5eff6708757d233697d2333ce6affcc4af0830f19fe47ee3f648939966df9c |