Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lettuce
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
lettuce
Commits
fbcadfe3
Commit
fbcadfe3
authored
Oct 20, 2015
by
Ali Mohammad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use INSTALLED_APPS directly!
parent
b18b8fb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
lettuce/django/apps.py
+2
-1
No files found.
lettuce/django/apps.py
View file @
fbcadfe3
...
@@ -20,6 +20,7 @@ try:
...
@@ -20,6 +20,7 @@ try:
from
importlib
import
import_module
from
importlib
import
import_module
except
ImportError
:
except
ImportError
:
from
django.utils.importlib
import
import_module
from
django.utils.importlib
import
import_module
from
django.apps
import
apps
as
django_apps
from
django.conf
import
settings
from
django.conf
import
settings
...
@@ -53,7 +54,7 @@ def _filter_configured_avoids(module):
...
@@ -53,7 +54,7 @@ def _filter_configured_avoids(module):
def
get_apps
():
def
get_apps
():
return
map
(
import_module
,
settings
.
INSTALLED_APPS
)
return
[
app_cfg
.
module
for
app_cfg
in
django_apps
.
get_app_configs
()]
def
harvest_lettuces
(
only_the_apps
=
None
,
avoid_apps
=
None
,
path
=
"features"
):
def
harvest_lettuces
(
only_the_apps
=
None
,
avoid_apps
=
None
,
path
=
"features"
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment