0.5.0 documentation
This commit is contained in:
0
DocsApp/__init__.py
Normal file
0
DocsApp/__init__.py
Normal file
3
DocsApp/admin.py
Normal file
3
DocsApp/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
DocsApp/apps.py
Normal file
6
DocsApp/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class DocsappConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'DocsApp'
|
||||
0
DocsApp/migrations/__init__.py
Normal file
0
DocsApp/migrations/__init__.py
Normal file
3
DocsApp/models.py
Normal file
3
DocsApp/models.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
3
DocsApp/tests.py
Normal file
3
DocsApp/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
9
DocsApp/urls.py
Normal file
9
DocsApp/urls.py
Normal file
@@ -0,0 +1,9 @@
|
||||
from django.contrib import admin
|
||||
from django.urls import path, include
|
||||
from django.conf.urls.static import static
|
||||
from django.conf import settings
|
||||
from .views import *
|
||||
|
||||
urlpatterns = [
|
||||
path('documentation/', DocsView, name='docs_main'),
|
||||
]
|
||||
17
DocsApp/views.py
Normal file
17
DocsApp/views.py
Normal file
@@ -0,0 +1,17 @@
|
||||
import json
|
||||
|
||||
from django.http import HttpResponse, Http404, FileResponse
|
||||
from django.template import loader, RequestContext
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from .models import *
|
||||
from django.conf import settings
|
||||
from GeneralApp.funcs import get_inter_http_respose
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
|
||||
def DocsView(request):
|
||||
|
||||
Dict = {}
|
||||
|
||||
t = loader.get_template('pages/p_documentation.html')
|
||||
return get_inter_http_respose(t, Dict, request)
|
||||
Reference in New Issue
Block a user