/django-mini-test-project

This project is a mini administration system that is for cars representance/shops with cars assigned to them, displaying the prices. All is build in pyhton 3.7 and using Django.

Primary LanguagePython

django-mini-test-project

This project is a mini administration system that is for cars representance/shops with cars assigned to them, displaying the prices.

  1. Min. Requirements:

    • python version 3.6.9

    • django 2.0.5

  2. first create a virtual envirement for python django, here is a good ex. how:

    https://tutorial.djangogirls.org/en/django_installation/

  3. Download this project and all content place it in project file.

  4. Start the envirement in a terminal ex. comand (this is for ubuntu):

    • To activate envirement:

      Path to the envirement:

      source YOUR_PATH_ENV_FOLDER/python-3-env/bin/activate
      

      Mine is:

      source ../../python-projects/python-3-env/bin/activate
      
    • open project folder in terminal:

      cd YOUR_PATH_ENV_PROJECTS_FOLDER/project01 
      

      Mine is:

      cd ../../python-projects/django-projects/project01
      
  5. If all is good start the server with comand:

    python manage.py runserver 0.0.0.0:7070

  6. (optional) if needed admin is active just a user needs to be created with comand:

    python manage.py createsuperuser

  7. (optional) if migration is neede just run comand:

     python manage.py migrate
    
  8. To run tests files, just run comand:

     ./manage.py test