Skip to content

Commit

Permalink
Uninews 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Ezequiel Lagos committed Dec 12, 2018
0 parents commit 8040b90
Show file tree
Hide file tree
Showing 117 changed files with 5,785 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense para saber los atributos posibles.
// Mantenga el puntero para ver las descripciones de los existentes atributos
// Para más información, visite: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.pythonPath": "C:\\Miniconda3\\envs\\uninews\\python.exe"
}
Empty file added core/__init__.py
Empty file.
Binary file added core/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
Binary file added core/__pycache__/admin.cpython-37.pyc
Binary file not shown.
Binary file added core/__pycache__/models.cpython-37.pyc
Binary file not shown.
Binary file added core/__pycache__/views.cpython-37.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions core/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
5 changes: 5 additions & 0 deletions core/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class CoreConfig(AppConfig):
name = 'core'
27 changes: 27 additions & 0 deletions core/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Generated by Django 2.1.3 on 2018-12-12 04:05

from django.db import migrations, models


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='Email',
fields=[
('id', models.IntegerField(primary_key=True, serialize=False)),
('email', models.CharField(max_length=200)),
('register', models.DateTimeField(auto_now_add=True, verbose_name='Fecha de creación')),
],
options={
'verbose_name': 'correo',
'verbose_name_plural': 'correos',
'ordering': ['register'],
},
),
]
18 changes: 18 additions & 0 deletions core/migrations/0002_auto_20181212_0109.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 2.1.3 on 2018-12-12 04:09

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('core', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='email',
name='email',
field=models.CharField(max_length=200, unique=True),
),
]
Empty file added core/migrations/__init__.py
Empty file.
Binary file not shown.
Binary file not shown.
Binary file added core/migrations/__pycache__/__init__.cpython-37.pyc
Binary file not shown.
15 changes: 15 additions & 0 deletions core/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from django.db import models

# Create your models here.
class Email(models.Model):
id = models.IntegerField(primary_key=True)
email = models.CharField(max_length=200, unique=True)
register = models.DateTimeField(auto_now_add=True, verbose_name="Fecha de creación")

class Meta:
verbose_name = "correo"
verbose_name_plural = 'correos'
ordering = ["register"]

def __str__(self):
return self.email
7 changes: 7 additions & 0 deletions core/static/css/bootstrap.min.css

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions core/static/css/font-awesome.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit 8040b90

Please sign in to comment.