Initial commit
This commit is contained in:
0
departments/__init__.py
Normal file
0
departments/__init__.py
Normal file
BIN
departments/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
departments/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
BIN
departments/__pycache__/admin.cpython-310.pyc
Normal file
BIN
departments/__pycache__/admin.cpython-310.pyc
Normal file
Binary file not shown.
BIN
departments/__pycache__/apps.cpython-310.pyc
Normal file
BIN
departments/__pycache__/apps.cpython-310.pyc
Normal file
Binary file not shown.
BIN
departments/__pycache__/models.cpython-310.pyc
Normal file
BIN
departments/__pycache__/models.cpython-310.pyc
Normal file
Binary file not shown.
BIN
departments/__pycache__/urls.cpython-310.pyc
Normal file
BIN
departments/__pycache__/urls.cpython-310.pyc
Normal file
Binary file not shown.
BIN
departments/__pycache__/views.cpython-310.pyc
Normal file
BIN
departments/__pycache__/views.cpython-310.pyc
Normal file
Binary file not shown.
3
departments/admin.py
Normal file
3
departments/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
departments/apps.py
Normal file
6
departments/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class DepartmentsConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'departments'
|
||||
0
departments/migrations/__init__.py
Normal file
0
departments/migrations/__init__.py
Normal file
BIN
departments/migrations/__pycache__/__init__.cpython-310.pyc
Normal file
BIN
departments/migrations/__pycache__/__init__.cpython-310.pyc
Normal file
Binary file not shown.
3
departments/models.py
Normal file
3
departments/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
3
departments/tests.py
Normal file
3
departments/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
6
departments/urls.py
Normal file
6
departments/urls.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('', views.index, name='departments'),
|
||||
]
|
||||
7
departments/views.py
Normal file
7
departments/views.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
from django.http import HttpResponse
|
||||
|
||||
def index(request):
|
||||
return HttpResponse("Departments")
|
||||
Reference in New Issue
Block a user