Welcome to the World of Kid's Drawings project! This is a Django-based web application that allows parents, visitors, and staff to engage with a platform centered around children's drawings. Parents can register, add their kids, and associate drawings with them. Visitors can explore drawings and user profiles, while staff members have additional privileges to manage kids and drawings.
Not authenticated users
: Can explore drawings only.Parent
: Can register, log in, add kids, and associate drawings with their kids.Visitor
: Can explore drawings, view user profiles, and profiles of their linked kids.Staff
: Can manage kids for other parents and add drawings for any kid.
-
Parents can add and manage their kids. /Here is logged staff user so they can add kid to every user with account. Regular user can add only to themselves/
-
Staff can manage kids for all parents and add drawings for any kid.
- Clone this repository to your local machine using git clone
[https://github.com/1van101/Final-Django-Project-Exam.git]
- Navigate to the project directory:
cd Final-Django-Project-Exam
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
On Windows: venv\Scripts\activate
On macOS and Linux: source venv/bin/activate
- Install the project dependencies:
pip install -r requirements.txt
- Set up the database:
- Run migrations:
python manage.py migrate
- Create a superuser (for full access):
python manage.py createsuperuser
- Start the development server:
python manage.py runserver
- Access the application in your web browser at
http://127.0.0.1:8000/
- Run migrations:
- Register as a parent or visitor using the provided registration forms.
- Parents can log in and add their kids.
- Parents can upload drawings and associate them with their kids.
- Visitors can explore drawings and view user profiles.
- Staff can log in and manage kids for all parents, as well as add drawings.
This project is licensed under the MIT License.