Skip to content

Commit

Permalink
Add All Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sinalalebakhsh committed Jul 10, 2024
1 parent c984519 commit 3c2bccd
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Steps /steps to create Django WebApp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,6 @@ python manage.py collectstatic



## write in terminal
docker-compose exec web python manage.py startapp pages
## ADD in config/setting.py -> INSTALLED_APPS = [ ... 'accounts', 'pages',]
1 change: 1 addition & 0 deletions config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@

# Installed myself:
'accounts',
'pages',
]

MIDDLEWARE = [
Expand Down
Empty file added pages/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions pages/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions pages/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class PagesConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'pages'
Empty file added pages/migrations/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions pages/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
3 changes: 3 additions & 0 deletions pages/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
3 changes: 3 additions & 0 deletions pages/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.shortcuts import render

# Create your views here.

0 comments on commit 3c2bccd

Please sign in to comment.