Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xettrisomeman/djangoadvancedapp
Advanced django app using docker and postgresql
https://github.com/xettrisomeman/djangoadvancedapp
django docker postgresql python
Last synced: about 12 hours ago
JSON representation
Advanced django app using docker and postgresql
- Host: GitHub
- URL: https://github.com/xettrisomeman/djangoadvancedapp
- Owner: xettrisomeman
- License: mit
- Created: 2020-01-03T03:54:17.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-22T15:28:14.000Z (almost 3 years ago)
- Last Synced: 2024-11-09T02:21:13.744Z (about 2 months ago)
- Topics: django, docker, postgresql, python
- Language: Python
- Size: 1.07 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# djangoAdvancedapp
Advanced django app using docker and postgresql# First clone this repo
```
git clone
```## Then do the following
```
cd djangoadvancedapp
```## Build the app
```
docker-compose build
```## After building the app , migrate the database
```
docker-compose run web python manage.py migrate
```## Now run the app
```
docker-compose up
```## Go to http://localhost:8001/ and check
## if you are not using docker do this,
## create a new folder called app and inside the folder create virtual environment
```
mkdir app
cd app
python -m venv env
```## now clone this repo inside app folder
```
git clone
```## activate the virtual environment
```
cd env
cd scripts
activate
```## install the requirements
```
cd djangoadvancedapp
pip install -r requirements.txt
```## Do the migrations
```
python manage.py migrate
```## run the app
```
python manage.py runserver
```## Now go to http://localhost:8000 and check
## Note (to run this app using python server)-
- You have to have postgresql installed
- go to settings.py and change the database settings similiar to your postgres settings.