- 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/lab-3-vcs-and-models.git - Open the repository with PyCharm. You can do this by going file->open and selecting the cloned folder called
lab-3-vcs-and-models - Configure your project interpreter. Go to file->settings, and selecting Python Interpreter under
Project: lab-3-vcs-and-models, and clicking Add Interpreter->Add Local Interpreter - Choose the default settings and click OK
- Then, you can install dependencies using PyCharm (django and python-decouple). Or, you can use the command line (
pip install django python-decouple)
- Create a run configuration:

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

- In your project folder (lab-3-vcs-and-models/studentdemo) create a file called
.env - 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
lab-3-vcs-and-models/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/lecture-13-github-actions
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
Releases
No releases published
Packages 0
No packages published