Created
May 11, 2020 00:07
-
-
Save godfather68/eb23e7a3a7d352713771e4ab20002e3d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
from django.core.management.base import BaseCommand | |
import os # <= new | |
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) # <= new | |
class Command(BaseCommand): | |
help = "Templates Generator" | |
def handle(self, *args, **kwrags): | |
self.stdout.write("Generating _base.html template ...") | |
self.stdout.write('----------------------------------') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment