Skip to content

Commit

Permalink
Make it generic
Browse files Browse the repository at this point in the history
  • Loading branch information
snnbotchway committed Jun 26, 2023
1 parent 99eacfc commit 4c263a9
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[flake8]
max-line-length = 100
exclude = migrations,__pycache__,manage.py,app/storeroom/settings/*,venv
exclude = migrations,__pycache__,manage.py,app/project_name/settings/*,venv
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Storeroom Backend
# project_name Backend

The backend of a storeroom management app, enables seamless inventory tracking, real-time notifications, and comprehensive data analysis.
To get started, rename all instances of `project_name` in the codebase to the name of your project.

## Development Environment Setup

Expand Down
2 changes: 1 addition & 1 deletion app/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def main():
"""Run administrative tasks."""
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "storeroom.settings.dev")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project_name.settings.dev")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions app/storeroom/asgi.py → app/project_name/asgi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
ASGI config for storeroom project.
ASGI config for project_name project.
It exposes the ASGI callable as a module-level variable named ``application``.
Expand All @@ -11,6 +11,6 @@

from django.core.asgi import get_asgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "storeroom.settings.dev")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project_name.settings.dev")

application = get_asgi_application()
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Django settings for storeroom project.
Django settings for project_name project.
Generated by 'django-admin startproject' using Django 4.2.1.
Expand Down Expand Up @@ -44,7 +44,7 @@
"django.middleware.clickjacking.XFrameOptionsMiddleware",
]

ROOT_URLCONF = "storeroom.urls"
ROOT_URLCONF = "project_name.urls"

TEMPLATES = [
{
Expand All @@ -62,7 +62,7 @@
},
]

WSGI_APPLICATION = "storeroom.wsgi.application"
WSGI_APPLICATION = "project_name.wsgi.application"


# Password validation
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion app/storeroom/urls.py → app/project_name/urls.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
URL configuration for storeroom project.
URL configuration for project_name project.
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/4.2/topics/http/urls/
Expand Down
4 changes: 2 additions & 2 deletions app/storeroom/wsgi.py → app/project_name/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
WSGI config for storeroom project.
WSGI config for project_name project.
It exposes the WSGI callable as a module-level variable named ``application``.
Expand All @@ -11,6 +11,6 @@

from django.core.wsgi import get_wsgi_application

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "storeroom.settings.dev")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "project_name.settings.dev")

application = get_wsgi_application()
2 changes: 1 addition & 1 deletion app/pytest.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[pytest]
DJANGO_SETTINGS_MODULE = storeroom.settings.dev
DJANGO_SETTINGS_MODULE = project_name.settings.dev

0 comments on commit 4c263a9

Please sign in to comment.