Skip to content

Commit 3b94825

Browse files
committed
django 프로젝트 생성
1 parent e5534f5 commit 3b94825

File tree

11 files changed

+21
-15
lines changed

11 files changed

+21
-15
lines changed
-526 Bytes
Binary file not shown.

zimmyrabbit/config/urls.py

+2-15
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,8 @@
1-
"""config URL Configuration
2-
3-
The `urlpatterns` list routes URLs to views. For more information please see:
4-
https://docs.djangoproject.com/en/3.1/topics/http/urls/
5-
Examples:
6-
Function views
7-
1. Add an import: from my_app import views
8-
2. Add a URL to urlpatterns: path('', views.home, name='home')
9-
Class-based views
10-
1. Add an import: from other_app.views import Home
11-
2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
12-
Including another URLconf
13-
1. Import the include() function: from django.urls import include, path
14-
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
15-
"""
161
from django.contrib import admin
172
from django.urls import path
3+
from zimmyrabbit import views
184

195
urlpatterns = [
206
path('admin/', admin.site.urls),
7+
path('zimmyrabbit/', views.index),
218
]

zimmyrabbit/zimmyrabbit/__init__.py

Whitespace-only changes.
Binary file not shown.
Binary file not shown.

zimmyrabbit/zimmyrabbit/admin.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.contrib import admin
2+
3+
# Register your models here.

zimmyrabbit/zimmyrabbit/apps.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from django.apps import AppConfig
2+
3+
4+
class ZimmyrabbitConfig(AppConfig):
5+
name = 'zimmyrabbit'

zimmyrabbit/zimmyrabbit/migrations/__init__.py

Whitespace-only changes.

zimmyrabbit/zimmyrabbit/models.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.db import models
2+
3+
# Create your models here.

zimmyrabbit/zimmyrabbit/tests.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
from django.test import TestCase
2+
3+
# Create your tests here.

zimmyrabbit/zimmyrabbit/views.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from django.shortcuts import render
2+
from django.http import HttpResponse
3+
4+
def index(request) :
5+
return HttpResponse('zimmyrabbit');

0 commit comments

Comments
 (0)