Artur Galyamov
2 years ago
6 changed files with 61 additions and 33 deletions
@ -0,0 +1,22 @@ |
|||||||
|
# Generated by Django 4.1.4 on 2022-12-16 07:24 |
||||||
|
|
||||||
|
from django.db import migrations, models |
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration): |
||||||
|
|
||||||
|
dependencies = [ |
||||||
|
('cms', '0001_initial'), |
||||||
|
] |
||||||
|
|
||||||
|
operations = [ |
||||||
|
migrations.RemoveField( |
||||||
|
model_name='article', |
||||||
|
name='title', |
||||||
|
), |
||||||
|
migrations.AddField( |
||||||
|
model_name='article', |
||||||
|
name='link', |
||||||
|
field=models.CharField(default='https://zakonvremeni.ru/news/', max_length=100), |
||||||
|
), |
||||||
|
] |
@ -1,6 +1,7 @@ |
|||||||
from .views import ArticleView |
|
||||||
from django.urls import path |
from django.urls import path |
||||||
|
|
||||||
|
from .views import ArticleView |
||||||
|
|
||||||
urlpatterns = [ |
urlpatterns = [ |
||||||
path('articles/', ArticleView.as_view()) |
path('articles/', ArticleView.as_view()) |
||||||
] |
] |
||||||
|
Loading…
Reference in new issue