https://djangoex.herokuapp.com
A simple CRUD app building for prototyping purposes while at work, using Django 3+.
Basically, a user can create a DB entry and update it afterwards. Nothing spectacular to see here. 😗
heroku run python3 manage.py makemigrations
heroku run python3 manage.py migrateOr if it doesn't work:
heroku run bash
python3 manage.py makemigrations
python3 manage.py migrateOn production server, there is no access to the internet, hence static resources must be concatenated served within app.
cd webpack_js_css
sudo npm install
gulp # works only if all packages from package.json were installed-
https://www.postgresql.org/download/linux/ubuntu/
1.5. Install optionally
sudo apt install pgadmin4due to a great GUI for PG.Launch with
pgadmin4. -
You must change DB password, so execute
sudo -u postgres psql postgres
alter user postgres with password 'postgres';-
In pgadmin4, create a new DB called
django -
Run django migrations, see above.
-
Launch gitpod from here
-
createdb -h localhost -p 5432 -U gitpod django -
see
gitpod.yml
