Skip to content

Commit 38f2874

Browse files
set django basic structure of the project
1 parent e247506 commit 38f2874

File tree

17 files changed

+32
-17
lines changed

17 files changed

+32
-17
lines changed

gallery/__init__.py

Whitespace-only changes.
161 Bytes
Binary file not shown.
202 Bytes
Binary file not shown.
379 Bytes
Binary file not shown.
495 Bytes
Binary file not shown.

gallery/admin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from django.contrib import admin

gallery/app.py

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 EngineConfig(AppConfig):
5+
name = 'gellery'

gallery/urls.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from django.conf.urls import url
2+
from django.urls import path
3+
from . import views
4+
5+
urlpatterns = [
6+
path('', views.index, name='index_main'),
7+
path('view', views.view, name='view_main'),
8+
]

gallery/views.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from django.shortcuts import render
2+
import random
3+
4+
5+
def index(request):
6+
return render(request, 'index.html', {'var_test': 's'})
7+
8+
def view(request):
9+
return render(request, 'view.html', {'var_test': 's2'})
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)