0.0.30 3th section main_block_w_subblocks
This commit is contained in:
0
PortfolioApp/__init__.py
Normal file
0
PortfolioApp/__init__.py
Normal file
3
PortfolioApp/admin.py
Normal file
3
PortfolioApp/admin.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
6
PortfolioApp/apps.py
Normal file
6
PortfolioApp/apps.py
Normal file
@@ -0,0 +1,6 @@
|
||||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class PortfolioappConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'PortfolioApp'
|
||||
0
PortfolioApp/migrations/__init__.py
Normal file
0
PortfolioApp/migrations/__init__.py
Normal file
18
PortfolioApp/models.py
Normal file
18
PortfolioApp/models.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from django.db import models
|
||||
from BaseModels.base_models import BaseModelViewPage, BaseModel, validate_file_extension
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
# from ckeditor.fields import RichTextField
|
||||
from ckeditor_uploader.fields import RichTextUploadingField
|
||||
# from colorfield.fields import ColorField
|
||||
from django.contrib.contenttypes.models import ContentType
|
||||
from django.contrib.contenttypes.fields import GenericForeignKey
|
||||
from django.contrib.contenttypes.fields import GenericRelation
|
||||
from colorfield.fields import ColorField
|
||||
|
||||
class Project(BaseModelViewPage):
|
||||
|
||||
|
||||
class Meta:
|
||||
verbose_name = _('Проект')
|
||||
verbose_name_plural = _('Проекты')
|
||||
|
||||
3
PortfolioApp/tests.py
Normal file
3
PortfolioApp/tests.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
3
PortfolioApp/views.py
Normal file
3
PortfolioApp/views.py
Normal file
@@ -0,0 +1,3 @@
|
||||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
||||
Reference in New Issue
Block a user