Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

ChromiumOS-Guy/test-webstie

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 

Repository files navigation

test-webstie

a simple test website with django

parameters that you need to change at: (test-webstie/mywebsite/mywebsite/settings.py)

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'test_db', # change
        'USER': 'root', # change
        'PASSWORD': 'password', # change
        'HOST': '172.0.0.1', # change
        'PORT': '3306' # change
        #'OPTIONS':{
        #    'init_command': "SET sql_mode='STRICT_TRANS_TABELS'"
        #}
    }
}

drop-in copy-paste prep for debian 11 and ubuntu 22.04 LTS

sudo apt update
sudo apt install libmariadb-dev
pip3 install -U pip
pip3 install django
pip3 install mysqlclient

drop in copy-paste run on project direcotry

python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver

About

a simple test website with django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published