Simple CRUD application for managing art pieces and authors.
(ㅅ´ ˘ `) ✧ Project deployed here username: admin.user password: qwfpgj78
- User
- Genre
- ArtPiece
- Gallery
- Clone the project:
git clone https://github.com/mariiahorbova/gallery-django.git
- Navigate to the project directory:
cd gallery-mate
- Create .env file in gallery-mate directory and populate it with variables (see .env.example)
- Create virtual environment
python3 -m venv venv
- Activate virtual environment according to your OS
Platform | Shell | Command to activate virtual environment |
---|---|---|
POSIX | bash/zsh | $ source <path_to_venv>/bin/activate |
POSIX | fish | $ source <path_to_venv>/bin/activate.fish |
POSIX | csh/tcsh | $ source <path_to_venv>/bin/activate.csh |
POSIX | PowerShell | $ <path_to_venv>/bin/Activate.ps1 |
Windows | cmd.exe | C:\> <path_to_venv>\Scripts\activate.bat |
Windows | PowerShell | PS C:\> <path_to_venv>\Scripts\Activate.ps1 |
- Install dependencies
pip install -r requirements.txt
- Apply migrations to the project
python manage.py migrate
- Create superuser to login
python manage.py createsuperuser
- Start server
python manage.py runserver
- The Django application is accessible at
http://localhost:8000/
Remember to replace localhost
with the relevant IP address if you're not accessing these from the same machine where the services are running.