Posts

Showing posts with the label python

github start project

See below for new machine user settings... Follow these instructions: Ensure the Repository is already created in the github website.  (Add .gitignore for project-type, and MD file) Then: 1. Clone the Repository Open VS Code . Open the Command Palette ( Ctrl + Shift + P or Cmd + Shift + P on Mac). Type "Git: Clone" and select it. Paste the URL: https: //github.com/bendecko/projectname.git Choose a folder where you want to store the project.  IT WILL create the projectname folder Wait for the repository to be cloned, then click Open when prompted. 2. Open the Project Manually (If Needed) If VS Code doesn't prompt you to open the folder: Click File > Open Folder (or Ctrl + K, Ctrl + O ). Navigate to the cloned project directory. Click Open . 3. Install Dependencies (If Required) If it's a Python project, check for requirements.txt or pyproject.toml : pip install -r requirements.txt If it's a Node.js project, check for package.json and run: npm install ...

Django Journey

Image
15APR2025 python manage.py runserver 0.0.0.0:80 for LAN access python manage.py flush   to restart DB from scratch. pip -V    will confirm if you in the venv 02APR2025 Probably better to use . foldername, while ensuring ,gitignore has this. python -m venv .v env .venv \Scripts\activate pip install django 22FEB2025 python -m venv env env \Scripts\activate pip install django deactivate env \Scripts\activate 13FEB2025 python manage.py makemigrations and then python manage.py migrate python manage.py createsuperuser    python manage.py changepassword < user_name > 06FEB2025 Use the setup instructions for creating a github project in website first, then clone it locally. Now you have  C:\Source\github\bendecko\projectname\ Navigate to that folder and run  django-admin startproject longtermreviews .      (note .) This creates the standard structure: Where my_site is projectname (master) and blog,reviews,user,login etc is modu...