Django prototype for finance website
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. 😗
Run Django migrations
heroku run python3 manage.py makemigrations
heroku run python3 manage.py migrate
Or if it doesn't work:
heroku run bash
python3 manage.py makemigrations
python3 manage.py migrate
Static (JS, CSS) files handling
On 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
Local Setup of PostgreSQL
-
https://www.postgresql.org/download/linux/ubuntu/
1.5. Install optionally
sudo apt install pgadmin4
due 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.
Setup on gitpod.io
-
Launch gitpod from here
-
createdb -h localhost -p 5432 -U gitpod django
-
see
gitpod.yml