Skip to content

ahmedellaban1/CIS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CIS Task

Python 3.10.8

after getting this repo in your pc :

  • for windows user :
    • open CMD in the (repo) folder
    • py -m venv venv
    • venv\Scripts\activate

      Screenshot from 2023-01-09 03-02-27
    • pip install -r requirements.txt
    • cd backend
    • py manage.py runserver
  • for linux user :
    • open terminal in the (repo) folder
    • python3 -m venv venv
    • source venv/bin/activate

      Screenshot from 2023-01-09 03-20-30
    • pip install -r requirements.txt
    • cd backend
    • python3 manage.py runserver

      Screenshot from 2023-01-09 03-23-48

folders structure:

Screenshot from 2023-01-09 03-52-21

endpoint in py_client app make sure that venv is activate and the server is ready :

  • cd py_client         (linux or windows)
  • py list.py             (windows)
  • python3 list.py   (linux)
    or
    Screenshot from 2023-01-09 04-06-28

Admin User :

  • username,password = ahmed

Staff User :

  • username = staff
  • password = staffstaff

additional info

to get django base files path in your PC

  • you should active your venv
  • run this command : python3 -c "import django; print(django.path)"

    Screenshot from 2023-02-05 23-17-54

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages