Simple Customer Management System with Basic CRUD Operations written in django.
Customer list can be exported as csv
file or pdf
file.
Python | Django | WeasyPrint | whitenoise | django-extensions | django-sslserver | django-debug-toolbar | django-crispy-forms
git clone https://github.com/chitkokooo/customer-management-system.git
cd customer-management-system
- Activate virtual environment
source Scripts/activate
in GNU/Linux (or)Scripts\activate.bat
in Windows - Install necessary packages
pip install -r requirements.txt
cd cms
python manage.py makemgrations
python manage.py migrate
python manage.py collectstatic
python manage.py createsuperuser
and enter information as instructionspython manage.py runserver
orpython manage.py runsslserver
forhttps
- Open
http://127.0.0.1:8000
orhttps://127.0.0.1:8000
in web browser
- I used
weasyprint
for pdf exporting function and it will be needed additional steps for windows machine. - Install weasyprint module:
pip install weasyprint
- Check installed python architecture 32bits (i686) or 64bits (x64) with
python --version --version
- Dowload msys2xxxx.exe based on python architecture and install as their descriptions.
- Download and install GTK3 Runtime
- add
msys2
andgtk3 runtime
bin path to system environmentPATH
, so they can be accessed from anywhere within system. - You can test with following command
python -m weasyprint http://weasyprint.org weasyprint.pdf
to check whether weasyprint is working or not.
Moreover, you can also try django-weasyprint package.
Create a group named Authorizers
and give permissions customers | customer | Customer CRUD Operations
Create a group named Tellers
and give permissions customers | customer | Can view customer
Add a user and add to Tellers
Group, and Add a user and add to Authorizers
Group.
They have different permissions.
python manage.py show_urls
from django-extensions
package
Email: chitkokooo.cu (at) gmail (dot) com