Skip to content
This repository has been archived by the owner on Nov 23, 2023. It is now read-only.

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
YJ-AnthonyJo committed Sep 11, 2021
0 parents commit b6d76a5
Show file tree
Hide file tree
Showing 71 changed files with 13,103 additions and 0 deletions.
Empty file added Anthony/__init__.py
Empty file.
Binary file added Anthony/__pycache__/__init__.cpython-38.pyc
Binary file not shown.
Binary file added Anthony/__pycache__/admin.cpython-38.pyc
Binary file not shown.
Binary file added Anthony/__pycache__/apps.cpython-38.pyc
Binary file not shown.
Binary file added Anthony/__pycache__/models.cpython-38.pyc
Binary file not shown.
Binary file added Anthony/__pycache__/urls.cpython-38.pyc
Binary file not shown.
Binary file added Anthony/__pycache__/views.cpython-38.pyc
Binary file not shown.
7 changes: 7 additions & 0 deletions Anthony/a.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


<h3> YOU are admin ???? </h3>

!!YOU ARE NOT Admin <p>
<img src="https://cdn.topstarnews.net/news/photo/first/201508/img_147304_1.jpg"></p>

6 changes: 6 additions & 0 deletions Anthony/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.contrib import admin

# Register your models here.
from .models import Introduction

admin.site.register(Introduction)
6 changes: 6 additions & 0 deletions Anthony/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class AnthonyConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'Anthony'
25 changes: 25 additions & 0 deletions Anthony/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by Django 3.2.7 on 2021-09-10 15:17

import datetime
from django.db import migrations, models


class Migration(migrations.Migration):

initial = True

dependencies = [
]

operations = [
migrations.CreateModel(
name='Introduction',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(default='조용재', max_length=20)),
('birthdate', models.DateTimeField(default=datetime.date(2002, 2, 5))),
('hackingnickname', models.CharField(default='An4hoNYJ0', max_length=100)),
('selfintroducteion', models.TextField(default='Tony Stark가 되고싶은 컴공과생.🤩\n그래서 이름도 anThONY로 지었다는 소문이.. 있지만 사실은 아니라고 한다. 하핳')),
],
),
]
18 changes: 18 additions & 0 deletions Anthony/migrations/0002_alter_introduction_birthdate.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.7 on 2021-09-10 16:04

from django.db import migrations, models


class Migration(migrations.Migration):

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

operations = [
migrations.AlterField(
model_name='introduction',
name='birthdate',
field=models.DateField(),
),
]
Empty file added Anthony/migrations/__init__.py
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
38 changes: 38 additions & 0 deletions Anthony/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Create your models here.
import datetime
from django.db import models
from django.utils import timezone
import inspect

class Introduction(models.Model):
name = models.CharField(max_length=20,default='조용재')
birthdate = models.DateField()
hackingnickname = models.CharField(max_length=100, default='An4hoNYJ0')
selfintroducteion = models.TextField(default=inspect.cleandoc(
f'''
Tony Stark가 되고싶은 컴공과생.🤩
그래서 이름도 anThONY로 지었다는 소문이.. 있지만 사실은 아니라고 한다. 하핳
'''))
def __str__(self):
return self.name
def dict__(self):
return self.__dict__




# class Question(models.Model):
# question_text = models.CharField(max_length=200)
# pub_date = models.DateTimeField('date published')
# def __str__(self):
# return self.question_text
# def was_published_recently(self):
# return self.pub_date >= timezone.now() - datetime.timedelta(days=1)


# class Choice(models.Model):
# question = models.ForeignKey(Question, on_delete=models.CASCADE)
# choice_text = models.CharField(max_length=200)
# votes = models.IntegerField(default=0)
# def __str__(self):
# return self.choice_text
Loading

0 comments on commit b6d76a5

Please sign in to comment.