{"id":25471196,"url":"https://github.com/antojebi7/django_essentials_with_sql_db","last_synced_at":"2026-05-05T09:32:59.177Z","repository":{"id":255888887,"uuid":"850700685","full_name":"AntoJebi7/Django_Essentials_with_SQL_DB","owner":"AntoJebi7","description":"Implements a very simple user authentication system with registration and login features. It uses MySQL for database management, allowing users to register by providing details like username, password, and email and essential database migrations and connections of backend process.","archived":false,"fork":false,"pushed_at":"2025-04-03T18:08:55.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-17T17:39:48.235Z","etag":null,"topics":["authentication","backend","database","django","login","mysql","registration"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AntoJebi7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-01T14:37:06.000Z","updated_at":"2025-04-03T18:08:59.000Z","dependencies_parsed_at":"2024-09-07T17:56:57.931Z","dependency_job_id":"d56bf82a-d13d-4691-9648-6088444259e8","html_url":"https://github.com/AntoJebi7/Django_Essentials_with_SQL_DB","commit_stats":null,"previous_names":["antojebi7/django_essentials_with_sql_db"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AntoJebi7/Django_Essentials_with_SQL_DB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoJebi7%2FDjango_Essentials_with_SQL_DB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoJebi7%2FDjango_Essentials_with_SQL_DB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoJebi7%2FDjango_Essentials_with_SQL_DB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoJebi7%2FDjango_Essentials_with_SQL_DB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AntoJebi7","download_url":"https://codeload.github.com/AntoJebi7/Django_Essentials_with_SQL_DB/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AntoJebi7%2FDjango_Essentials_with_SQL_DB/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32643687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","backend","database","django","login","mysql","registration"],"created_at":"2025-02-18T09:36:56.276Z","updated_at":"2026-05-05T09:32:59.165Z","avatar_url":"https://github.com/AntoJebi7.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django with MYSQL DB for User Authentication and Dynamic Resources\n\n## Project Setup\n\n### Prerequisites\n- Python (version 3.7 or higher version)\n- Django (version 3.x or higher)\n- pip (Python package installer)\n- Virtual environment tool (optional but recommended)\n\n### Installation\n\n1. **Clone the Repository**:\n    ```bash\n    https://github.com/AntoJebi7/Django_Essentials_with_SQL_DB.git\n    ```\n\n2. **Create a Virtual Environment** (Optional but recommended):\n    ```bash\n    python3 -m venv env\n    source env/bin/activate  # On Windows use `env\\Scripts\\activate`\n    ```\n\n3. **Install Dependencies**:\n    Install Django and other dependencies from `requirements.txt`:\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n4. **Create a Django Project**:\n    If you haven’t already created the Django project:\n    ```bash\n    django-admin startproject myproject .\n    ```\n\n5. **Run Migrations**:\n    ```bash\n    python manage.py migrate\n    ```\n\n6. **Run the Development Server**:\n    ```bash\n    python manage.py runserver\n    ```\n    Access the server at `http://127.0.0.1:8000/`.\n\n### Creating a New Django App\n\n1. **Create an App**:\n    ```bash\n    python manage.py startapp myapp\n    ```\n\n2. **Register the App**:\n    Add your app to the `INSTALLED_APPS` in `settings.py`:\n    ```python\n    INSTALLED_APPS = [\n        # Other apps...\n        'myapp',\n    ]\n    ```\n\n3. **Create Initial Migrations**:\n    ```bash\n    python manage.py makemigrations myapp\n    ```\n\n4. **Apply Migrations**:\n    ```bash\n    python manage.py migrate\n    ```\n\n\n# Django User Authentication System\n\nThis project demonstrates a user authentication system in Django, including registration and login functionality with password hashing. This README outlines the setup process, database configuration, and important Django commands.\n\n## Table of Contents\n\n1. [Introduction](#introduction)\n2. [SQL Database Creation](#sql-database-creation)\n3. [Django Setup](#django-setup)\n4. [User Registration Process](#user-registration-process)\n5. [Login Process](#login-process)\n6. [Password Hashing](#password-hashing)\n7. [Django Commands for Migration](#django-commands-for-migration)\n8. [Important Topics](#important-topics)\n\n## Introduction\n\nThis project sets up a Django application that allows users to register and log in. The registration process includes password hashing for security. Successful login redirects users to a designated blog page.\n\n## SQL Database Creation\n\n1. **Install MySQL**:\n   - Ensure MySQL Server and MySQL Workbench are installed on your system.\n\n2. **Create a Database**:\n   - Open MySQL Workbench and run the following SQL command to create a new database:\n\n     ```sql\n     CREATE DATABASE mydatabase;\n     ```\n\n3. **Configure Django to Use MySQL**:\n   - Update your Django project's `settings.py` file to configure the database settings.\n\n## Django Setup\n\n1. **Install Dependencies**:\n   - Install Django and MySQL client library using pip:\n\n     ```bash\n     pip install django mysqlclient\n     ```\n\n2. **Create a Django Project**:\n   - Create a new Django project:\n\n     ```bash\n     django-admin startproject myproject\n     ```\n\n3. **Create a Django App**:\n   - Inside the project directory, create a new Django app:\n\n     ```bash\n     python manage.py startapp registration\n     ```\n\n## User Registration Process\n\n1. **Define the Model**:\n   - In the `registration` app, define the `Registration` model with fields for username, password, etc.\n\n2. **Create a Registration Form**:\n   - Create a Django form for user registration in the `registration/forms.py` file.\n\n3. **Implement the Registration View**:\n   - Create a view to handle user registration, validate the form, and save user details.\n\n4. **Create a Registration Template**:\n   - Design an HTML template for the registration form.\n\n## Login Process\n\n1. **Implement the Login View**:\n   - Create a view to handle user login, validate username and password, and handle redirects.\n\n2. **Create a Login Template**:\n   - Design an HTML template for the login form.\n\n## Password Hashing\n\n1. **Hash Passwords During Registration**:\n   - Use Django’s `make_password` to hash passwords before saving them to the database.\n\n2. **Verify Passwords During Login**:\n   - Use Django’s `check_password` to verify user passwords during login.\n\n## Django Commands for Migration\n\n1. **Create Migrations**:\n   - Generate migration files for your models:\n\n     ```bash\n     python manage.py makemigrations\n     ```\n\n2. **Apply Migrations**:\n   - Apply the migrations to create database tables:\n\n     ```bash\n     python manage.py migrate\n     ```\n\n3. **Create a Superuser** (optional):\n   - Create a superuser account to access the Django admin interface:\n\n     ```bash\n     python manage.py createsuperuser\n     ```\n\n## Important Topics\n\n- **Password Hashing**: Ensures passwords are stored securely in the database.\n- **User Authentication**: Validates user credentials during login.\n- **Django Migrations**: Manage changes to the database schema.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantojebi7%2Fdjango_essentials_with_sql_db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fantojebi7%2Fdjango_essentials_with_sql_db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fantojebi7%2Fdjango_essentials_with_sql_db/lists"}