Skip to main content

A django application to login with steemconnect.

Project description

[Join and Contact us on Discord](


#### How to use this project in my project ?

Firstly, we need to set up the libraries that in requirements files.

after we need to set up this project.

pip install -r requirements.txt
pip install steemconnect_auth

open a new steem application in this address, []( like this

Set up your Django project and open your project's file, you must set the following codes by your project, django_steemconnect uses these settings.

##steemconnect settings
app_secret="your app secret",
##steemconnect settings
You should type **REDIRECT_URL** as in the photo below.


**LOGIN_REDIRECT**, after the user logged in, you should write it to which page you want to redirect it to.

access_token has a limited lifetime, thus if you need to refresh them in your own without authenticating the user again, you can set **CODE** = True.

then, add the django_steemconnect to the list of applications.

and finally, add the django_steemconnect URLs to the list of your project URLs.

# /
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin

urlpatterns = [
url(r"^accounts/", include('steemconnect_auth.urls')), # signup, login or create new user
url(r'^web/admin/',, # admin panel

if settings.DEBUG:
urlpatterns += static(settings.MEDIA_URL, document_root = settings.MEDIA_ROOT)

##### if access_token expires, you should use this function should be used.

from steemconnect_auth.models import SteemConnectUser

steem_connect_user = SteemConnectUser.objects.filter(user="username")
new_access_token = steem_connect_user.update_access_token("your app secret")

#### Let's place URLs in a template

##### for logout operation
{% url 'logout' %}

##### for login operation
{% url 'login' %}

After all these operations, we must do them for the database settings.

python makemigrations
python migrate

#### fLet's look at the admin panel.







It's all that.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
steemconnect_auth-0.0.5.tar.gz (9.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page