Build Status |
---|
You can also see the live demo here.
with user: admin
password: demoadmin
(The demo can take a time to load)
Read more the flowchart and the pattern models here
# Clone it git clone https://github.com/iColdPlayer/kasir.git cd kasir # create your own Virtual Environment on you local machine python -m venv env # then activate it source env/bin/activate # Install all the dependencies pip install -r requirements.txt # export your SECRET_KEY export SECRET_KEY='your_secret_key' # Migrate ./manage.py migrate # you can also create an admin for yourself (default username is admin, pass: admin) ./manage.py createsuperuser # Run it ./manage.py runserver
And go to your localhost:8000
, you should see the login page there.
You can also register as user at localhost:8000/register
.
You can also export and import your stock from the admin page itself.
Go to /admin/data/stock
, you should be able to see the example data over there.
Please do not forget to collectstatic
before you plan to use on production by running:
./manage.py collectstatic
or your site won't be able to load the staticfiles.
To make sure your staticfiles works correctly, you can running locally on your local machine with debug set to False
by typing this:
./manage.py runserver --insecure
If you plan to use on production, please do not forget to uncomment this line below in your settings
when DEBUG = 0
.
Check this option by running:
./manage.py check --deploy
SECURE_SSL_REDIRECT = True
SESSION_COOKIE_SECURE = True
SECURE_HSTS_SECONDS = True
SECURE_HSTS_PRELOAD = True
SECURE_HSTS_INCLUDE_SUBDOMAINS = True
SECURE_BROWSER_XSS_FILTER = True
SECURE_CONTENT_TYPE_NOSNIFF = True
X_FRAME_OPTIONS = 'DENY'
CSRF_COOKIE_SECURE = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
CONN_MAX_AGE = 60
from https://github.com/icoldplayer/kasir
---------------------------------------------
Blog using django and markdown editor
This made with Django2.2, bootstrap, and markdown.
See the Installation detail.
Run the project locally
# clone it
git clone https://github.com/iColdPlayer/django-blog.git
# move to blog dir
cd django-blog
# activate the virtual environment or you can create yourself
source env/bin/activate
# install all the dependencies
pip install -r requirements.txt
# run the project locally
./manage.py runserver
default password & user are admin
.
Note:
from https://github.com/iColdPlayer/django-blog
--------------------------------------------------------
Clone the repository to you local machine, and move to the project folder.
git clone https://github.com/iColdPlayer/django-shop.git
cd django-shop
Create the VirtualEnv for your Django project, learn more about Virtual Environment here (Indonesian).
python -m venv env
source env/bin/activate
Install the dependencies:
pip install -r requirements.txt
Run the server and you're ready to go.
./manage.py runserver
Visit your localhost : localhost:8000
from https://github.com/iColdPlayer/django-shop
No comments:
Post a Comment