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 :: get date and time formatted python 
Python :: TinyDB 
Python :: setting a condition for perfect square in python 
Python :: how to open excel with more than one sheetpython 
Python :: make calculator in python 
Python :: python trace table generator 
Python :: python csv reader 
Python :: how to save unzipped files in python 
Python :: post request python 
Python :: creating dictionary using the keys 
Python :: python add to list with index 
Python :: python code to remove vowels from a string 
Python :: time.ctime(os.path.getmtime phyton in datetime 
Python :: turtle write 
Python :: request.body django 
Python :: how to count range in django template 
Python :: right angle triangle in python 
Python :: colab add library 
Python :: tensorfow list devices 
Python :: python matplotlib pyplot 
Python :: python limit float to 2 decimal places 
Python :: exec to return a value python 
Python :: maping value to data in pandas dataframe 
Python :: lock in python 
Python :: how to import file from a different location python 
Python :: how to create a label in tkinter 
Python :: python game engine 
Python :: with urllib.request.urlopen("https:// 
Python :: selenium chromeoptions user agent 
Python :: IntegrityError import in django 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =