Skip to content

Commit

Permalink
Merge pull request #14 from JunkyDeveloper/master
Browse files Browse the repository at this point in the history
Updated for django version 5.0.6
  • Loading branch information
dancaron authored Jun 15, 2024
2 parents e43b212 + 5a25d72 commit d2db7eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ With this project template you can write regular python scripts and use Django's

:gear: Requirements
-------------------
- Last tested successfully with Python 3.9.5 and Django 4.0.6
- Last tested successfully with Python 3.10.4 and Django 5.0.6
- Create venv and pip install django to import the required modules.

:open_file_folder: File Structure
Expand Down
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
import sys
sys.dont_write_bytecode = True

# Import settings
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'settings')

# setup django environment
import django
django.setup()
Expand Down

0 comments on commit d2db7eb

Please sign in to comment.