git clone https://github.com/sasha-ajin/django-library.git
Before you do that, you should have installed python on your machine
python3 -m venv ~/.../environment
cd ~/.../environment
source bin/activate
pip install -r requirements.txt
In library/settings.py . More about connecting db here https://docs.djangoproject.com/en/4.0/ref/databases/
...
DATABASES = {
'default': {
'ENGINE': '',
'NAME': '...',
'HOST': '...',
'PORT': '...',
'USER': '...',
'PASSWORD': '...',
}
}
...
After that,you shoud install your engine to environment, if it is MySQL, it will be
pip install mysqlclient
pip install sqlparse
And now write in console
python manage.py migrate
python manage.py createsuperuser
After you will write user data.You should see:
Superuser created successfully.
python manage.py runserver
And now go to http://127.0.0.1:8000/