GithubHelp home page GithubHelp logo

tadejpetric_eu's Introduction

My personal webpage registered to tadejpetric.eu

The page folder contains the application and implementation (as well as further README files); website contains the settings.

instruction notes:

Create a python virtual environment with python -m venv tadejpetric_eu and activate it with source bin/activate.sh (or the supported scripting language of your choice)

Clone the repository in the venv (using git clone [email protected]:tadejpetric/tadejpetric_eu.git)

Install the python requirements with pip. This is done using pip install -r requirements.txt

Lastly, you will need to set up the database. The project uses the postgres because of its array attributes (and simply because it's a great database). The following instructions are based on Arch Linux

sudo pacman -S postgresql

sudo -iu postgres
initdb -D /var/lib/postgres/data

exit

systemctl enable postgresql.service
systemctl start postgresql.service

sudo -iu postgres

psql
CREATE DATABASE page
CREATE USER pageuser WITH PASSWORD 'password'; -- set password to something secure
ALTER ROLE pageuser SET client_encoding TO 'utf8';
ALTER ROLE pageuser SET timezone TO 'UTC';
ALTER ROLE pageuser SET default_transaction_isolation TO 'read committed';
GRANT all PRIVILEGES ON DATABASE page TO pageuser;
\q
exit

python manage.py makemigrations
python manage.py makemigrations racuni
python manage.py migrate
python manage.py runserver 0:8080

This should get the server up and running. You can reach it on http://localhost:8080 but the relevant content is currently on http://localhost:8080/racuni

tadejpetric_eu's People

Contributors

tadejpetric avatar

Watchers

 avatar

tadejpetric_eu's Issues

Login page status

Login page should give you some feedback

For example a failed login attempt should give you a message that it failed (rather than just bland reload of the page). Things that I should implement

  • successful logout
  • user not logged in but tried to access a page that requires being logged
  • user registered successfully
  • registered unsuccessfully
  • login failed (in homepage, request.POST['confirm'] == 'login')

Fix dates not saving for edits

When you want to edit an existing receipt the <input type="date"> fields don't get assigned to the saved value (forcing you to reenter them)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.