Make a login signup using Django with Password Hashing and Proper Backend Validation

We can see how to make a Login , Signup using Django with Password Hashing and Proper Back-end Validation Using Django inbuilt Auth User.  Features: Email Should Unique. Username doesn’t contain special characters. Password saved in the database with the hash method. Email format: Validate with Django email verification. Registration entry can’t be blank. Creating …

Make a login signup using Django with Password Hashing and Proper Backend Validation Read More »

Django KeyPoints

Want to Register All the models in Django Admin Panel(admin.py) import django.appsmodels=django.apps.apps.get_model()print(models)for model in models: try: admin.site.register(model) except admin.sites.AlreadyRegistered: pass Want to UnRegister model in Django Admin Panel(admin.py) admin.site.unregister(django.contrib.sessions.models.Session) Render A html page form passing the list view after submission(add.html) <!DOCTYPE html><html lang=”en”><head> <meta charset=”UTF-8″> <title>Add Item</title></head><body><form action=”{% url ‘add_bidding_item’ %}” method=”post”> {% csrf_token %} …

Django KeyPoints Read More »

How To Add New Fields and Views To Existing Module (APP)

Let’s talk about How To Add New Fields and Views To the Existing Module (APP)  in Odoo ERP. You can also change the properties of the existing field with bonus part. Custom_addons Add this path on odoo.conf file addons_path = C:publicRavi Guptaodoo15.0addons,custom_addons Odoo_customization __init__.py from . import models __manifest__.py # -*- coding: utf-8 -*-{ ‘name’: …

How To Add New Fields and Views To Existing Module (APP) Read More »

How To Setup Odoo 15 Development Environment

How to Setup Odoo 15 Development Environment Using Pycharm in Ubuntu 22.04 Step : 1 Update the system sudo apt-get update  sudo apt-get upgrade Step : 2 Install Pycharm IDE Community edition sudo snap install pycharm-community –classic Step : 3 Install Python-3 and the necessary packages sudo apt-get install -y python3-pip sudo apt-get install python-dev …

How To Setup Odoo 15 Development Environment Read More »

How to Setup Odoo 16 Development Environment

How to Setup Odoo 16 Development Environment Using Pycharm in Ubuntu 22.04 Step : 1 Update the system sudo apt update sudo apt upgrade Step : 2 Install Pycharm IDE Community edition sudo snap install pycharm-community –classic Step : 3 Install Python-3 and the necessary packages sudo apt install python3-pip sudo apt-get install python3-dev build-essential …

How to Setup Odoo 16 Development Environment Read More »

How to Install Odoo 16 ERP on Ubuntu 22.04

In this article, we setup Odoo ERP on Ubuntu 22.04 LTS Server with step by step. Step : 1 Update the system sudo apt update sudo apt upgrade Step : 2 Install Dependencies sudo apt install build-essential wget git python3-pip python3-dev python3-venv python3-wheel libfreetype6-dev libxml2-dev libzip-dev libsasl2-dev python3-setuptools libjpeg-dev zlib1g-dev libpq-dev libxslt1-dev libldap2-dev libtiff5-dev libopenjp2-7-dev …

How to Install Odoo 16 ERP on Ubuntu 22.04 Read More »

How to Create a Custom Module in Odoo 15

Custom_addons Add this path on odoo.conf file addons_path = C:publicRavi Guptaodoo15.0addons,custom_addons Restaurant_Project __init__.py from . import model __manifest__.py # -*- coding: utf-8 -*-{ ‘name’: “Restaurant Project”, ‘version’ : “15.0.1”, ‘summary’: “””Restaurant Project will help in the management of Restaurant”””, ‘sequence’ : -101, ‘description’: “””Manage All Data In your Description”””, # Categories can be used to …

How to Create a Custom Module in Odoo 15 Read More »

Creating a login Register login/Register with  session authentication using Python Flask

In This, We can learn How to make a  login/Register with  session authentication using Flask 1. APP.PY from flask import Flask, render_template, request, redirect, session,get_flashed_messages, flashimport mysql.connectorimport osimport randomapp=Flask(__name__)app.secret_key=os.urandom(24) conn= mysql.connector.connect(host=”localhost”, user=”root”, password=”Batman”, database=”flasklogin”)cursor= conn.cursor()@app.route(‘/’)def home():    return render_template(“main.html”)@app.route(‘/login’)def login():    if session.get(‘user_id’):   # Check session exists or not        return redirect(“/dashboard”)  …

Creating a login Register login/Register with  session authentication using Python Flask Read More »

Create Session in Django | Login Session

Assuming you are created models & Login , Register html Template Go to URLS.PY path(‘login/’, views.login, name=’login’), path(‘register/’, views.register, name=’register’), path(‘index/’, views.index, name=’index’), path(‘logout/’, views.logout, name=’logout’), Go to VIEWS.PY def register(request): if request.method==’POST’: username=request.POST.get(‘username’) email = request.POST.get(’email’) password = request.POST.get(‘password’) user_list= models.administrator.objects.filter(username= username) error_name=[] if user_list: error_name=’The user name already exists’ return render (request, ‘register.html’,{‘error_name’: …

Create Session in Django | Login Session Read More »