-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: not working when added to INSTALLED_APPS
- Loading branch information
1 parent
b9918ee
commit 33df4cf
Showing
4 changed files
with
20 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
import os | ||
from pathlib import Path | ||
|
||
from django.apps import AppConfig | ||
|
||
from django_lexpy.commands import lexpy | ||
|
||
|
||
class LexpyConfig(AppConfig): | ||
name = "django_lexpy" | ||
label = "lexpy" | ||
|
||
def __init__(self): | ||
self.dir_project = os.getcwd() | ||
verbose_name = "django-lexpy" | ||
dir_project = os.getcwd() | ||
|
||
def get(self): | ||
return self.dir_project | ||
def ready(self): | ||
lexpy.main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters