Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

make new app folder in django templates dir

#settings.py
TEMPLATES = [
    {
        ...
        'DIRS': [os.path.join(BASE_DIR, 'templates'),
                 os.path.join(BASE_DIR, 'templates', 'the_folder_you_created'),
                ...
                ]
    }
]
Comment

how to create an app under a folder in django

mkdir apps/polls
startapp polls apps/polls
Comment

PREVIOUS NEXT
Code Example
Python :: DIF_GCD solution 
Python :: string remove suffix python 
Python :: customise the django rest api view 
Python :: python list include 
Python :: how to make a square in python 
Python :: python sympy symbols 
Python :: python catch int conversion error 
Python :: run multiprocesses on flask 
Python :: python coding practice 
Python :: python strftime cheat sheet 
Python :: pip install 
Python :: duplicate a list with for loop in python 
Python :: python concatenate dictionaries 
Python :: sorted python 
Python :: np.random.choice 
Python :: false in py 
Python :: operators in python 
Python :: apps to help in coding python exmas 
Python :: Python enumerate Using enumerate() 
Python :: how to declare a lambda in python 
Python :: reversing in python 
Python :: Adding a new column in pandas dataframe from another dataframe with different index 
Python :: python read xlsx file 
Python :: serialize list to json python 
Python :: zip function python 
Python :: Python re.subn() 
Python :: using shebang python 
Python :: python recursion example 
Python :: joining lists python 
Python :: qr detector 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =