{"id":26487157,"url":"https://github.com/couapy/django-user-app","last_synced_at":"2025-09-02T12:41:50.718Z","repository":{"id":44340845,"uuid":"280379584","full_name":"Couapy/django-user-app","owner":"Couapy","description":"Application for user system for a Django 3 project","archived":false,"fork":false,"pushed_at":"2022-11-22T07:40:12.000Z","size":30,"stargazers_count":2,"open_issues_count":2,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-17T14:09:13.076Z","etag":null,"topics":["django","management","quick","quickstart","system","usefull","user"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/django-user-app/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Couapy.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-07-17T09:10:29.000Z","updated_at":"2023-11-20T08:43:10.000Z","dependencies_parsed_at":"2023-01-23T02:16:16.307Z","dependency_job_id":null,"html_url":"https://github.com/Couapy/django-user-app","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Couapy%2Fdjango-user-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Couapy%2Fdjango-user-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Couapy%2Fdjango-user-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Couapy%2Fdjango-user-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Couapy","download_url":"https://codeload.github.com/Couapy/django-user-app/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244566970,"owners_count":20473451,"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":["django","management","quick","quickstart","system","usefull","user"],"created_at":"2025-03-20T06:34:57.509Z","updated_at":"2025-03-20T06:34:57.957Z","avatar_url":"https://github.com/Couapy.png","language":"HTML","readme":"# django-user-app\n\nThis package contains a user app for Django 3 projects.\n\nThis application is based on Bootstrap v4.5.0.\n\n## What does provides the user app ?\n\nThe following features are availables :\n\n- Social Network connections\n    - Github\n    - Google\n    - Twitter\n    - Facebook\n- Profile edition\n- User edition\n- Bootstrap style\n\n## How to install ?\n\nInstall the app in settings.py :\n\n```python\nINSTALLED_APPS = [\n    [...]\n    'social_django',\n    'crispy_forms',\n    'user_app',\n]\n```\n\nSpecify static files and media files in settings :\n\n```python\nSTATIC_URL = '/static/'\nSTATIC_ROOT = os.path.join(BASE_DIR, 'var/static/')\nMEDIA_URL = '/media/'\nMEDIA_ROOT = os.path.join(BASE_DIR, 'var/media/')\n```\n\nThen add the settings for `social-auth-app-django` and 'django-crispy-froms' packages, for example :\n\n```python\nCRISPY_TEMPLATE_PACK = 'bootstrap4'\n\nUSER_APP_PROVIDERS = [\n    {\n        \"provider\": \"google-oauth2\",\n        \"name\": \"Google\",\n        \"link\": None,\n        \"username\": None,\n    },\n    {\n        \"provider\": \"github\",\n        \"name\": \"Github\",\n        \"link\": \"https://github.com/{{ data.login }}\",\n        \"username\": \"{{ data.login }}\",\n    },\n    {\n        \"provider\": \"twitter\",\n        \"name\": \"Twitter\",\n        \"link\": \"https://twitter.com/{{ data.access_token.screen_name }}/\",\n        \"username\": \"@{{ data.access_token.screen_name }}\",\n    },\n    {\n        \"provider\": \"facebook\",\n        \"name\": \"Facebook\",\n        \"link\": None,\n        \"username\": None,\n    },\n]\n\nAUTHENTICATION_BACKENDS = (\n    'django.contrib.auth.backends.ModelBackend',\n    'social_core.backends.google.GoogleOAuth2',\n    'social_core.backends.github.GithubOAuth2',\n    'social_core.backends.twitter.TwitterOAuth',\n    'social_core.backends.facebook.FacebookOAuth2',\n)\n\nSOCIAL_AUTH_GOOGLE_OAUTH2_KEY = \"\"\nSOCIAL_AUTH_GOOGLE_OAUTH2_SECRET = \"\"\nSOCIAL_AUTH_GITHUB_KEY = \"\"\nSOCIAL_AUTH_GITHUB_SECRET = \"\"\nSOCIAL_AUTH_TWITTER_KEY = \"\"\nSOCIAL_AUTH_TWITTER_SECRET = \"\"\nSOCIAL_AUTH_FACEBOOK_KEY = \"\"\nSOCIAL_AUTH_FACEBOOK_SECRET = \"\"\n\nLOGIN_REDIRECT_URL = \"/accounts/profile/\"\nSOCIAL_AUTH_URL_NAMESPACE = 'social'\nAUTH_PROFILE_MODULE = 'user_app.Profile'\n\nSOCIAL_AUTH_PIPELINE = (\n    'social_core.pipeline.social_auth.social_details',\n    'social_core.pipeline.social_auth.social_uid',\n    'social_core.pipeline.social_auth.social_user',\n    'social_core.pipeline.user.get_username',\n    'social_core.pipeline.social_auth.associate_by_email',\n    'social_core.pipeline.user.create_user',\n    'social_core.pipeline.social_auth.associate_user',\n    'social_core.pipeline.social_auth.load_extra_data',\n    'social_core.pipeline.user.user_details',\n)\n\nSOCIAL_AUTH_LOGIN_REDIRECT_URL = '/accounts/profile/'\nSOCIAL_AUTH_NEW_USER_REDIRECT_URL = '/accounts/profile/'\nSOCIAL_AUTH_DISCONNECT_REDIRECT_URL = '/'\n```\n\nThen add the urls to the urlpattern of the project :\n\n```python\nfrom django.conf import settings\nfrom django.conf.urls.static import static\n#from django.contrib import admin\nfrom django.urls import path, include\n\nurlpatterns = [\n    #path('admin/', admin.site.urls),\n    path('accounts/', include('user_app.urls')),\n    path('accounts/', include('django.contrib.auth.urls')),\n    path('', include(\"social_django.urls\", namespace=\"social\")),\n] + static(\n    settings.STATIC_URL,\n    document_root=settings.STATIC_ROOT\n) + static(\n    settings.MEDIA_URL,\n    document_root=settings.MEDIA_ROOT\n)\n```\n\nAnd finally add the context_processor :\n\n```python\nuser_app.context_processors.providers_settings\n```\n\nThen you have to migrate the database with `python3 manage.py migrate`\n\n## How to overdrive the templates ?\n\nFirst, you have to locate the templates into the `site-packages/user_app/templates` folder.\n\nThen create a new template with the same name and you will be able to overdrive templates.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouapy%2Fdjango-user-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcouapy%2Fdjango-user-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcouapy%2Fdjango-user-app/lists"}