Skip to content

TeraBasedProgrammer/icap-test-task

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Icap test task

Test admin panel website made with Django

Technologies used

  • Django
  • HTML
  • Tailwind CSS

Installation

  • If you wish to run your own build, first ensure you have installed Python on your computer globally.
  • If everything is installed, clone this repository to your computer:
https://github.com/TeraBasedProgrammer/icap-test-task
  • Setup dependencies
    1. Cd into the project directory

      $ cd icap-test-task
    2. Create a python virtual environment

      $ python -m venv env
    3. Activate venv

      • Linux
      $ source env/bin/activate
      • Windows (run the file)
      $ env\Scripts\activate.bat
    4. Install dependencies

      $ pip install -r requirements.txt
  • Run the application
    • Makefile
    $ make run
    or
    • manage.py
    $ python manage.py runserver 8000

Usage

To apply migrations and create database use following command:

make migrate

or

python manage.py migrate
  • For now, website has no data. To make it look like it has to be, you should type following command in terminal:
make setupdb

or

python manage.py setup-db

It will activate the script that will automatically set up the database.

  • To clean the database use:
make resetdb

or

python manage.py reset-db
  • To use website as administrator you should create a superuser: In terminal write the following command:
$ python manage.py createsuperuser

Follow the steps, suggested by Django and then log in the system (localhost:8000/login/)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published