Changeset 3397a08 in firmaeventos


Ignore:
Timestamp:
Nov 20, 2017, 10:11:36 AM (6 years ago)
Author:
lhernandez <lhernandez@…>
Branches:
master
Children:
0138d11
Parents:
3996539
Message:

Realizando formulario para el registro de eventos

Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • FirmaEventos/default.settings.py

    r3996539 r3397a08  
    4444
    4545PROJECT_APPS = [
    46     'utils',
     46    'base',
    4747    'users',
    4848    'eventos',
     
    6666#  Definir los Templates
    6767
    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 
    7468
    7569TEMPLATES = [
    7670    {
    7771        'BACKEND': 'django.template.backends.django.DjangoTemplates',
    78         'DIRS': [
    79                         BASE_TEMPLATES, UTILS_TEMPLATES,
    80                         USERS_TEMPLATES, EVENTS_TEMPLATES,
    81                         PARTIC_TEMPLATES
    82                     ],
     72        'DIRS': [],
    8373        'APP_DIRS': True,
    8474        'OPTIONS': {
  • FirmaEventos/urls.py

    r3996539 r3397a08  
    3939    url(r'^', include('base.urls', namespace="base")),
    4040    url(r'^', include('users.urls', namespace="users")),
     41    url(r'^', include('eventos.urls', namespace="events")),
    4142]
  • README.rst

    rbf47591 r3397a08  
    7575
    7676    (FirmaEventos)$ python manage.py makemigrations
    77     (FirmaEventos)$ python manage.py makemigrations users
    78     (FirmaEventos)$ python manage.py makemigrations utils
    7977    (FirmaEventos)$ python manage.py makemigrations eventos
    8078    (FirmaEventos)$ python manage.py makemigrations participantes
  • base/views.py

    r3996539 r3397a08  
    7676    """
    7777    template_name = "index.html"
    78 
  • eventos/forms.py

    rbf47591 r3397a08  
    1414    @version 1.0.0
    1515    """
     16    archivo = forms.FileField(widget=forms.ClearableFileInput(
     17                              attrs={'multiple': False}))
    1618
    1719    class Meta:
     
    3133             'placeholder': 'Nombre del evento'})
    3234        self.fields['fecha'].widget.attrs.update(
    33             {'class': 'form-control',
    34              'placeholder': 'Fecha', 'data-provide': 'datepicker'})
     35            {'class': 'datepicker',
     36             'placeholder': 'Fecha'})
    3537        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  
    1212    """
    1313    nombre_evento = models.CharField(max_length=128, unique=True)
    14     fechao = models.DateField(null=False)
     14    fecha = models.DateField(null=False)
    1515    serial = models.IntegerField(unique=True)
    1616    activo = models.BooleanField(default=True)
Note: See TracChangeset for help on using the changeset viewer.