{"id":15651042,"url":"https://github.com/idlesign/django-sitegate","last_synced_at":"2025-04-30T07:27:32.882Z","repository":{"id":57422003,"uuid":"10015857","full_name":"idlesign/django-sitegate","owner":"idlesign","description":"Reusable application for Django to ease sign up \u0026 sign in processes","archived":false,"fork":false,"pushed_at":"2022-11-27T06:01:23.000Z","size":329,"stargazers_count":33,"open_issues_count":1,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-13T23:33:57.840Z","etag":null,"topics":["authentication","authorization","django","python","signin","signup"],"latest_commit_sha":null,"homepage":"https://github.com/idlesign/django-sitegate","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/idlesign.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-05-12T16:01:39.000Z","updated_at":"2024-11-28T16:27:11.000Z","dependencies_parsed_at":"2023-01-22T01:54:57.767Z","dependency_job_id":null,"html_url":"https://github.com/idlesign/django-sitegate","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fdjango-sitegate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fdjango-sitegate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fdjango-sitegate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idlesign%2Fdjango-sitegate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idlesign","download_url":"https://codeload.github.com/idlesign/django-sitegate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246326595,"owners_count":20759436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","authorization","django","python","signin","signup"],"created_at":"2024-10-03T12:36:46.102Z","updated_at":"2025-03-31T13:31:12.334Z","avatar_url":"https://github.com/idlesign.png","language":"Python","readme":"django-sitegate\n===============\nhttp://github.com/idlesign/django-sitegate\n\n.. image:: https://img.shields.io/pypi/v/django-sitegate.svg\n    :target: https://pypi.python.org/pypi/django-sitegate\n\n.. image:: https://img.shields.io/pypi/l/django-sitegate.svg\n    :target: https://pypi.python.org/pypi/django-sitegate\n\n.. image:: https://img.shields.io/coveralls/idlesign/django-sitegate/master.svg\n    :target: https://coveralls.io/r/idlesign/django-sitegate\n\n\nWhat's that\n-----------\n\n*django-sitegate is a reusable application for Django to ease sign up \u0026 sign in processes.*\n\nThis application will handle most common user registration and log in flows for you.\n\n**Sign in**\n\n* username/e-mail + password\n* username + password\n* Yandex\n* Google\n\n**Sign up**\n\n* username/e-mail + password\n* invitation code + username/e-mail + password\n* username + password\n* username + e-mail + password\n* username + password + password confirmation\n* username + e-mail + password + password confirmation\n\n\nQuick example\n-------------\n\nHere follows the most straightforward way possible with ``django-sitegate`` to have both sign up \u0026 sign in\nfunctionality on your page.\n\n\n1. Use ``sitegate_view`` decorator to mark your view as the one handling both signups and signins:\n\n    .. code-block:: python\n\n        from django.shortcuts import render\n\n        from sitegate.toolbox import sitegate_view\n\n        @sitegate_view  # This also prevents logged in users from accessing our sign in/sign up page.\n        def entrance(request):\n            return render(request, 'entrance.html', {'title': 'Sign in \u0026 Sign up'})\n\n\n2. Then in your template load ``sitegate`` tag library and put ``sitegate_signup_form`` \u0026 ``sitegate_signin_form`` tags\n   in place where you want a registration and sign in forms to be.\n\n    .. code-block:: html\n\n        {% extends \"_base.html\" %}\n        {% load sitegate %}\n\n        {% block page_contents %}\n            \u003cdiv class=\"my_signin_block\"\u003e\n                {% sitegate_signin_form %}\n            \u003c/div\u003e\n            \u003cdiv class=\"my_signup_block\"\u003e\n                {% sitegate_signup_form %}\n            \u003c/div\u003e\n        {% endblock %}\n\n\nYou're done. Now your site visitors have an e-mail + password form to register and username/e-mail + password form to log in.\n\nAnd mind that we've barely made a scratch of **sitegate**. Read the docs.\n\n\nDocumentation\n-------------\n\nhttp://django-sitegate.readthedocs.org/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidlesign%2Fdjango-sitegate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidlesign%2Fdjango-sitegate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidlesign%2Fdjango-sitegate/lists"}