- Open a terminal and navigate to the folder you want to create your project in (e.g.
cd ~Documents/Code) - Clone this repository with
git clone https://github.com/Carleton-BIT/ITEC4012-simple-backend-api.git - Open the repository with PyCharm. You can do this by going file->open and selecting the cloned folder called
ITEC4012-simple-backend-api - Configure your project interpreter. Go to file->settings, and selecting Python Interpreter under
Project: ITEC4012-simple-backend-api, and clicking Add Interpreter->Add Local Interpreter - Choose the default settings and click OK
- Then, you can install dependencies using
pip install -r requirements.txt - Create a run configuration:

- Configure it to run manage.py with the parameter runserver:

- Create a file called
.envin the lecture18-simple-backend-api folder - Generate a secret key by running
python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'in the terminal. Copy the output. - Edit
.env(created in part 9) with a text editor like notepad, and add a line that saysSECRET_KEY="your-secret-key-here". Paste the output from part 10 into 'your-secret-key-here'. - On the terminal, navigate to
lecture-18-simple-backend-api/studentdemoand runpython manage.py migrate - Run the server by clicking the play button for the run configuration you set up
- Navigate to 127.0.0.1:8000! Your app should load.
-
Notifications
You must be signed in to change notification settings - Fork 0
Carleton-BIT/simple-backend-api
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published