WBC dev.
DEV - CODE ETHIC
Clone this repository and run on your PC/MAC/Linux:
- Make sure Python 3.6 or later is installed on your computer
- Make sure MySQL v8 or later is installed on your computer
- Clone the repository to your local destination and activate virtual env.
- Install the required packages: pip3 install -r ./requirements.txt
- Obtain .env file from adminstrator (ME!)
- Paste .env file to the root directory (same as the manage.py)
- Run django to test, type: python manage.py runserver
- Type in localhost:8000/admin, if you see the django admin page, congratulation! you got it.
- Do not forget to start a new branch before making ANY EDIT!
How to create a new APP
- Create a new file under the wbcplatform folder. Give the new file a name for the app you want to create.
- Register the APP in the wbcplatform/wbcplatform/settings.py, INSTALLED_APPS.
- Add paths in the wbcplatform/wbcplatform/urls.py (if any)
- Happy coding
DO NOT TOUCH anything in the settings.py (besides register apps), unless you know what you are doing.