Skip to content

Commit

Permalink
fixed some silly mistakes
Browse files Browse the repository at this point in the history
and change README to reflect newer release
  • Loading branch information
spielmannj committed Jun 24, 2021
1 parent 60eb6ae commit 35751db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ working with Django projects much more structured.

You can use these by referring to their release files during project/app creation:

django-admin startproject --template https://github.com/shezi/django-better-project-template/releases/download/1.0.0/project_template.zip <project_name>
./manage.py startapp --template https://github.com/shezi/django-better-project-template/releases/download/1.0.0/app_template.zip <app_name>
django-admin startproject --template https://github.com/shezi/django-better-project-template/releases/download/1.0.1/project_template.zip <project_name>
./manage.py startapp --template https://github.com/shezi/django-better-project-template/releases/download/1.0.1/app_template.zip <app_name>

4 changes: 2 additions & 2 deletions project_template/config/settings/base.py-tpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import sys
BASE_DIR = Path(__file__).resolve().parent.parent.parent

# make sure our apps directory is on the python path
sys.path.append(str(BASE_DIR) / "apps")
sys.path.append(str(BASE_DIR / "apps"))

# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/{{ docs_version }}/howto/deployment/checklist/
Expand Down Expand Up @@ -70,7 +70,7 @@ TEMPLATES = [
},
]

WSGI_APPLICATION = '{{ project_name }}.wsgi.application'
WSGI_APPLICATION = 'config.wsgi.application'


# Database
Expand Down
2 changes: 1 addition & 1 deletion project_template/manage.py-tpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import sys

def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.develop')
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings.development')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
Expand Down

0 comments on commit 35751db

Please sign in to comment.