Changeset 3397a08 in firmaeventos
- Timestamp:
- Nov 20, 2017, 10:11:36 AM (6 years ago)
- Branches:
- master
- Children:
- 0138d11
- Parents:
- 3996539
- Files:
-
- 1 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
FirmaEventos/default.settings.py
r3996539 r3397a08 44 44 45 45 PROJECT_APPS = [ 46 ' utils',46 'base', 47 47 'users', 48 48 'eventos', … … 66 66 # Definir los Templates 67 67 68 BASE_TEMPLATES = os.path.join(BASE_DIR, "templates")69 UTILS_TEMPLATES = os.path.join(BASE_DIR, "utils/templates")70 USERS_TEMPLATES = os.path.join(BASE_DIR, "users/templates")71 EVENTS_TEMPLATES = os.path.join(BASE_DIR, "eventos/templates")72 PARTIC_TEMPLATES = os.path.join(BASE_DIR, "participantes/templates")73 74 68 75 69 TEMPLATES = [ 76 70 { 77 71 'BACKEND': 'django.template.backends.django.DjangoTemplates', 78 'DIRS': [ 79 BASE_TEMPLATES, UTILS_TEMPLATES, 80 USERS_TEMPLATES, EVENTS_TEMPLATES, 81 PARTIC_TEMPLATES 82 ], 72 'DIRS': [], 83 73 'APP_DIRS': True, 84 74 'OPTIONS': { -
FirmaEventos/urls.py
r3996539 r3397a08 39 39 url(r'^', include('base.urls', namespace="base")), 40 40 url(r'^', include('users.urls', namespace="users")), 41 url(r'^', include('eventos.urls', namespace="events")), 41 42 ] -
README.rst
rbf47591 r3397a08 75 75 76 76 (FirmaEventos)$ python manage.py makemigrations 77 (FirmaEventos)$ python manage.py makemigrations users78 (FirmaEventos)$ python manage.py makemigrations utils79 77 (FirmaEventos)$ python manage.py makemigrations eventos 80 78 (FirmaEventos)$ python manage.py makemigrations participantes -
base/views.py
r3996539 r3397a08 76 76 """ 77 77 template_name = "index.html" 78 -
eventos/forms.py
rbf47591 r3397a08 14 14 @version 1.0.0 15 15 """ 16 archivo = forms.FileField(widget=forms.ClearableFileInput( 17 attrs={'multiple': False})) 16 18 17 19 class Meta: … … 31 33 'placeholder': 'Nombre del evento'}) 32 34 self.fields['fecha'].widget.attrs.update( 33 {'class': ' form-control',34 'placeholder': 'Fecha' , 'data-provide': 'datepicker'})35 {'class': 'datepicker', 36 'placeholder': 'Fecha'}) 35 37 self.fields['serial'].widget.attrs.update( 36 {'class': 'form-control', 37 'placeholder': 'Serial'}) 38 {'placeholder': 'Serial'}) 39 self.fields['archivo'].widget.attrs.update( 40 {'class': 'file-path', 41 'placeholder': 'Subir Archivo'}) -
eventos/models.py
rbf47591 r3397a08 12 12 """ 13 13 nombre_evento = models.CharField(max_length=128, unique=True) 14 fecha o= models.DateField(null=False)14 fecha = models.DateField(null=False) 15 15 serial = models.IntegerField(unique=True) 16 16 activo = models.BooleanField(default=True)
Note: See TracChangeset
for help on using the changeset viewer.