Alegrosz is a simple training repository for learning Django. This project was developed as a practice environment to explore Django's core functionalities, including models, views, forms, and templates, along with integration of Bootstrap for styling.
This application was made as part of CodersLab Python Course.
- Django Forms and Views:
- Use of Django forms, generic views, and
crispy-formsfor form rendering. - Contact form model with integration into the Django Admin interface.
- Use of Django forms, generic views, and
- Product Management:
- Basic product models with associated admin configurations and views for displaying product information.
- Bootstrap Integration:
- Responsive design using Bootstrap's grid system and basic styling for images.
- Django Template Setup:
- Configured templates with a basic setup for rendering pages.
- Environment Configuration:
- Database configuration using environment variables for enhanced security and flexibility.
To run the project locally, ensure you have Python and Django installed. Follow these steps:
- Clone the repository:
git clone https://github.com/Elrcx/alegrosz.git cd alegrosz - Install dependencies:
pip install -r requirements.txt
- Configure the environment variables for the database connection.
- Run the server:
python manage.py runserver
Licensed under the MIT License.
- Czy potrzebne nowe django apps?
django-admin startapp <name>- rejestruje w settings.py -> INSTALLED_APPS
- Czy potrzebne dane?
- tworzę model w
<appname>/models.py python manage.py makemigrations <app_label>python manage.py migrate <app_label>
- tworzę model w
- Czy potrzebuję obsługę w CMS (Django Admin)?
- rejestruję modele w
<app_name>/admin.py
- rejestruję modele w
- Czy potrzebuje pobierać dane od użytkownika?
- tworzę
forms.py - tworze klasę formularza
- tworzę
- Czy potrzebna jest logika? (View)
<app_name>/views.py
- Czy potrzebny jest routing?