dmpe / django-minisite

Another django attempt - simple CRUD app

Home Page:https://djangoex.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Django prototype for finance website

https://djangoex.herokuapp.com

Open in Gitpod Web IDE

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. 😗

homepage

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

  1. 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.

  2. You must change DB password, so execute

sudo -u postgres psql postgres

alter user postgres with password 'postgres';
  1. In pgadmin4, create a new DB called django

  2. Run django migrations, see above.

Setup on gitpod.io

  1. Launch gitpod from here

  2. createdb -h localhost -p 5432 -U gitpod django

  3. see gitpod.yml

About

Another django attempt - simple CRUD app

https://djangoex.herokuapp.com/


Languages

Language:Python 65.5%Language:HTML 23.1%Language:JavaScript 5.8%Language:CSS 5.2%Language:Procfile 0.4%