Compare commits
5 Commits
0d5a34d366
...
feature/37
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
079f4e3806 | ||
|
|
6473a8348c | ||
| 1d7beadf96 | |||
|
|
5442a52ff6 | ||
| b852772c76 |
17
.dockerignore
Normal file
17
.dockerignore
Normal file
@@ -0,0 +1,17 @@
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
*.so
|
||||
.Python
|
||||
*.db
|
||||
*.sqlite3
|
||||
.env
|
||||
.venv
|
||||
venv/
|
||||
ENV/
|
||||
.git/
|
||||
*.egg-info/
|
||||
dist/
|
||||
build/
|
||||
.coverage
|
||||
htmlcov/
|
||||
@@ -5,4 +5,6 @@ WORKDIR /app/
|
||||
COPY requirements.txt ./
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
COPY tienda_ilusion/ ./
|
||||
|
||||
CMD ["python", "manage.py", "runserver", "0.0.0.0:9090"]
|
||||
|
||||
11
docker-compose.override.yml
Normal file
11
docker-compose.override.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
services:
|
||||
django:
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: django.Dockerfile
|
||||
volumes:
|
||||
- ./tienda_ilusion:/app/
|
||||
env_file:
|
||||
- .env
|
||||
ports:
|
||||
- "7000:9090"
|
||||
@@ -1,12 +1,8 @@
|
||||
services:
|
||||
django:
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: django.Dockerfile
|
||||
image: gitea.onecluster.org/oneteam/don_confiao_backend:latest
|
||||
env_file:
|
||||
- .env
|
||||
volumes:
|
||||
- ./tienda_ilusion:/app/
|
||||
ports:
|
||||
- "7000:9090"
|
||||
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 5.0.6 on 2026-03-15 04:39
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('don_confiao', '0043_customer_address_external_id'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='payment',
|
||||
name='type_payment',
|
||||
field=models.CharField(choices=[('CASH', 'Efectivo'), ('CONFIAR', 'Confiar'), ('BANCOLOMBIA', 'Bancolombia'), ('CREDIT', 'Crédito')], default='CASH', max_length=30),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='sale',
|
||||
name='payment_method',
|
||||
field=models.CharField(choices=[('CASH', 'Efectivo'), ('CONFIAR', 'Confiar'), ('BANCOLOMBIA', 'Bancolombia'), ('CREDIT', 'Crédito')], default='CASH', max_length=30),
|
||||
),
|
||||
]
|
||||
@@ -10,6 +10,7 @@ class PaymentMethods(models.TextChoices):
|
||||
CASH = 'CASH', _('Efectivo')
|
||||
CONFIAR = 'CONFIAR', _('Confiar')
|
||||
BANCOLOMBIA = 'BANCOLOMBIA', _('Bancolombia')
|
||||
CREDIT = 'CREDIT', _('Crédito')
|
||||
|
||||
|
||||
class Customer(models.Model):
|
||||
|
||||
@@ -21,3 +21,4 @@ class TestPaymentMethods(TestCase, LoginMixin):
|
||||
self.assertIn('CASH', [method.get('value') for method in methods])
|
||||
self.assertIn('CONFIAR', [method.get('value') for method in methods])
|
||||
self.assertIn('BANCOLOMBIA', [method.get('value') for method in methods])
|
||||
self.assertIn('CREDIT', [method.get('value') for method in methods])
|
||||
|
||||
Reference in New Issue
Block a user