stuff
This commit is contained in:
BIN
9-simple-migrations/simple_migrations/app/__init__.pyc
Normal file
BIN
9-simple-migrations/simple_migrations/app/__init__.pyc
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3
9-simple-migrations/simple_migrations/app/admin.py
Normal file
3
9-simple-migrations/simple_migrations/app/admin.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
@ -0,0 +1,32 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import models, migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Employee',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', auto_created=True, serialize=False, primary_key=True)),
|
||||
('first_name', models.CharField(max_length='32')),
|
||||
],
|
||||
options={
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='Team',
|
||||
fields=[
|
||||
('id', models.AutoField(verbose_name='ID', auto_created=True, serialize=False, primary_key=True)),
|
||||
],
|
||||
options={
|
||||
},
|
||||
bases=(models.Model,),
|
||||
),
|
||||
]
|
Binary file not shown.
Binary file not shown.
8
9-simple-migrations/simple_migrations/app/models.py
Normal file
8
9-simple-migrations/simple_migrations/app/models.py
Normal file
@ -0,0 +1,8 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
class Employee(models.Model):
|
||||
first_name = models.CharField( max_length="32")
|
||||
|
||||
class Team(models.Model):
|
||||
pass
|
BIN
9-simple-migrations/simple_migrations/app/models.pyc
Normal file
BIN
9-simple-migrations/simple_migrations/app/models.pyc
Normal file
Binary file not shown.
4
9-simple-migrations/simple_migrations/app/seeds.py
Normal file
4
9-simple-migrations/simple_migrations/app/seeds.py
Normal file
@ -0,0 +1,4 @@
|
||||
# Don't forget to import the models you will need
|
||||
from faker import Factory
|
||||
import datetime
|
||||
import random
|
3
9-simple-migrations/simple_migrations/app/tests.py
Normal file
3
9-simple-migrations/simple_migrations/app/tests.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
3
9-simple-migrations/simple_migrations/app/views.py
Normal file
3
9-simple-migrations/simple_migrations/app/views.py
Normal file
@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
Reference in New Issue
Block a user