Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spokanetech/web_demo_python
python based demo of the SpokaneTech website
https://github.com/spokanetech/web_demo_python
Last synced: 9 days ago
JSON representation
python based demo of the SpokaneTech website
- Host: GitHub
- URL: https://github.com/spokanetech/web_demo_python
- Owner: SpokaneTech
- License: mit
- Created: 2023-12-02T21:39:13.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-17T03:48:46.000Z (12 months ago)
- Last Synced: 2024-11-08T01:45:02.710Z (2 months ago)
- Language: Python
- Size: 164 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SpokaneTech web app
![](static/demo.png)
## Local Development
### prerequisites
1. git installed on the dev system
2. python installed on the dev system### setup steps (in a terminal)
1. clone the repo:```
git clone [email protected]:SpokaneTech/web_demo_python.git
```-- or --
```
git clone https://github.com/SpokaneTech/web_demo_python.git
```2. cd into the repo directory
```
cd web_demo_python
```3. create a python virtual environment
```
python -m venv venv
```4. activate the python virutal environment
```
source venv/bin/activate
```5. install the python dependancies
```
pip install .[dev]
```6. cd to the django_project directory
```
cd django_project
```7. create a local sqlite3 database by running django migrations
```
./manage.py migrate
```8. create a local admin user
```
./manage.py add_superuser --group admin
```9. generate some test data
```
./manage.py generate_data
```10. start the local demo server
```
./manage.py runserver
```11. open a browser and navigate to http://127.0.0.1:8000 (log in with admin/admin)
** you can stop the local demo server anytime via ```ctrl + c ```
FYI:- steps 1-9 only need to be done once (unless you need to apply new migrations or start over);
- restart the demo server anytime with the django management command: ```./manage.py runserver```