File: run-django-setup.patch

package info (click to toggle)
python-django-pyscss 2.0.3-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 372 kB
  • sloc: python: 474; makefile: 20
file content (30 lines) | stat: -rw-r--r-- 867 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Run django.setup()
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2024-09-10

Index: python-django-pyscss/testproject/testproject/settings.py
===================================================================
--- python-django-pyscss.orig/testproject/testproject/settings.py
+++ python-django-pyscss/testproject/testproject/settings.py
@@ -12,12 +12,13 @@ https://docs.djangoproject.com/en/1.6/re
 import os
 BASE_DIR = os.path.dirname(os.path.dirname(__file__))
 
-
+import django
 from django import VERSION as DJANGO_VERSION
 if DJANGO_VERSION[:2] < (1, 6):
     TEST_RUNNER = 'discover_runner.DiscoverRunner'
 
 
+
 # Quick-start development settings - unsuitable for production
 # See https://docs.djangoproject.com/en/1.6/howto/deployment/checklist/
 
@@ -151,3 +152,5 @@ TEMPLATES = [
         }
     },
 ]
+
+django.setup()