Skip to content

Commit f586e2c

Browse files
project 4
1 parent 6f44617 commit f586e2c

32 files changed

Lines changed: 811 additions & 0 deletions
136 KB
Binary file not shown.

newversion-2020/project4/manage.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env python
2+
"""Django's command-line utility for administrative tasks."""
3+
import os
4+
import sys
5+
6+
7+
def main():
8+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'project4.settings')
9+
try:
10+
from django.core.management import execute_from_command_line
11+
except ImportError as exc:
12+
raise ImportError(
13+
"Couldn't import Django. Are you sure it's installed and "
14+
"available on your PYTHONPATH environment variable? Did you "
15+
"forget to activate a virtual environment?"
16+
) from exc
17+
execute_from_command_line(sys.argv)
18+
19+
20+
if __name__ == '__main__':
21+
main()

newversion-2020/project4/network/__init__.py

Whitespace-only changes.
Binary file not shown.
335 Bytes
Binary file not shown.
Binary file not shown.
661 Bytes
Binary file not shown.
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
from django.contrib import admin
2+
from .models import UserProfile
3+
4+
admin.site.register(UserProfile)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from django.apps import AppConfig
2+
3+
4+
class NetworkConfig(AppConfig):
5+
name = 'network'

0 commit comments

Comments
 (0)