Browse Source

Renamed app and Django template

master
Jim Martens 1 year ago
parent
commit
06cd1e4291
31 changed files with 46 additions and 45 deletions
  1. +2
    -2
      README.md
  2. +0
    -2
      app/__init__.py
  3. +0
    -7
      app/apps.py
  4. +2
    -0
      food_planner/__init__.py
  5. +2
    -2
      food_planner/account_urls.py
  6. +3
    -2
      food_planner/admin.py
  7. +7
    -0
      food_planner/apps.py
  8. +1
    -1
      food_planner/forms.py
  9. +0
    -0
      food_planner/migrations/__init__.py
  10. +0
    -0
      food_planner/models.py
  11. +0
    -0
      food_planner/templates/food_planner/.gitkeep
  12. +0
    -0
      food_planner/templates/food_planner/base.html
  13. +1
    -1
      food_planner/templates/food_planner/home.html
  14. +1
    -1
      food_planner/templates/food_planner/landing.html
  15. +1
    -1
      food_planner/templates/food_planner/legal.html
  16. +1
    -1
      food_planner/templates/food_planner/privacy.html
  17. +1
    -1
      food_planner/templates/registration/edit_profile.html
  18. +1
    -1
      food_planner/templates/registration/login.html
  19. +1
    -1
      food_planner/templates/registration/password_change_form.html
  20. +1
    -1
      food_planner/templates/registration/password_reset_complete.html
  21. +1
    -1
      food_planner/templates/registration/password_reset_confirm.html
  22. +1
    -1
      food_planner/templates/registration/password_reset_done.html
  23. +1
    -1
      food_planner/templates/registration/password_reset_form.html
  24. +1
    -1
      food_planner/templates/registration/register.html
  25. +0
    -0
      food_planner/tests.py
  26. +0
    -0
      food_planner/translation.py
  27. +0
    -0
      food_planner/urls.py
  28. +12
    -12
      food_planner/views.py
  29. +1
    -1
      package.json
  30. +1
    -1
      project/settings.py
  31. +3
    -3
      project/urls.py

+ 2
- 2
README.md View File

@ -1,9 +1,9 @@
# Django template
# Food planner
Template repository for Django applications
## ToDos
- change ``app``into something more appropriate wherever you find it
- change ``Django template`` and ``DjangoTemplate`` into something more appropriate wherever you find it
- change ``Food planner`` and ``DjangoTemplate`` into something more appropriate wherever you find it

+ 0
- 2
app/__init__.py View File

@ -1,2 +0,0 @@
# coding=utf-8
default_app_config = 'chaos_dating.apps.ChaosDatingConfig'

+ 0
- 7
app/apps.py View File

@ -1,7 +0,0 @@
# coding=utf-8
from django.apps import AppConfig
class DjangoTemplateConfig(AppConfig):
name = 'app'
verbose_name = 'Django template app'

+ 2
- 0
food_planner/__init__.py View File

@ -0,0 +1,2 @@
# coding=utf-8
default_app_config = 'food_planner.apps.FoodPlannerConfig'

app/account_urls.py → food_planner/account_urls.py View File


app/admin.py → food_planner/admin.py View File


+ 7
- 0
food_planner/apps.py View File

@ -0,0 +1,7 @@
# coding=utf-8
from django.apps import AppConfig
class FoodPlannerConfig(AppConfig):
name = 'food_planner'
verbose_name = 'Food planner app'

app/forms.py → food_planner/forms.py View File


app/migrations/__init__.py → food_planner/migrations/__init__.py View File


app/models.py → food_planner/models.py View File


app/templates/app/.gitkeep → food_planner/templates/food_planner/.gitkeep View File


app/templates/app/base.html → food_planner/templates/food_planner/base.html View File


app/templates/app/home.html → food_planner/templates/food_planner/home.html View File


app/templates/app/landing.html → food_planner/templates/food_planner/landing.html View File


app/templates/app/legal.html → food_planner/templates/food_planner/legal.html View File


app/templates/app/privacy.html → food_planner/templates/food_planner/privacy.html View File


app/templates/registration/edit_profile.html → food_planner/templates/registration/edit_profile.html View File


app/templates/registration/login.html → food_planner/templates/registration/login.html View File


app/templates/registration/password_change_form.html → food_planner/templates/registration/password_change_form.html View File


app/templates/registration/password_reset_complete.html → food_planner/templates/registration/password_reset_complete.html View File


app/templates/registration/password_reset_confirm.html → food_planner/templates/registration/password_reset_confirm.html View File


app/templates/registration/password_reset_done.html → food_planner/templates/registration/password_reset_done.html View File


app/templates/registration/password_reset_form.html → food_planner/templates/registration/password_reset_form.html View File


app/templates/registration/register.html → food_planner/templates/registration/register.html View File


app/tests.py → food_planner/tests.py View File


app/translation.py → food_planner/translation.py View File


app/urls.py → food_planner/urls.py View File


app/views.py → food_planner/views.py View File


+ 1
- 1
package.json View File

@ -1,7 +1,7 @@
{
"name": "django-template",
"version": "1.0.0",
"description": "Django template",
"description": "Food planner",
"main": "index.js",
"dependencies": {
"bootstrap": "^4.4.1",


+ 1
- 1
project/settings.py View File

@ -35,7 +35,7 @@ ALLOWED_HOSTS = ['localhost', '127.0.0.1', '[::1]']
# Application definition
INSTALLED_APPS = [
'app.apps.DjangoTemplateConfig', # TODO: change to your app config class
'food_planner.apps.FoodPlannerConfig',
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',


+ 3
- 3
project/urls.py View File

@ -17,11 +17,11 @@ Including another URLconf
from django.contrib import admin
from django.urls import include
from django.urls import path
from app import views
from food_planner import views
urlpatterns = [
path('admin/', admin.site.urls),
path('app/', include('app.urls')),
path('accounts/', include('app.account_urls')),
path('app/', include('food_planner.urls')),
path('accounts/', include('food_planner.account_urls')),
path('', views.index)
]

Loading…
Cancel
Save